Background of Eclipse's method list description panel is black - java

I'm running Ubuntu 11.04 on my system and am using OpenJDK. When I installed the Java Eclipse IDE, everything seemed to work fine at first until I started a project. When the method/variable list appears, it looks fine except that the panel giving you information on the method has a black background with white text. I want to change that back to black text on white, but my search through the preferences turned up nothing.

That is a setting that you have to change in Gnome. I don't have Ubuntu installed currently, so the solution is from my memory, and maybe the menu entries are named a bit differently:
Go to System Settings -> Appearance. Then you have somewhere a button to change colors, and there is somewhere an entry for tooltips, which is black. Change that and the color setting for the font.

Related

How to change color of Editor in Eclipse

I know the preferences are under Preferences>General>Appearance, I played with the color themes and colors of TextEditor, I ended up with some ugly color scheme on top of the default white background (See attached). I tried to reset back to defaults, but nothing seems to get me back to the original default look. Attached is the ugly colors I am stuck with.
I think you installed Editbox plugin. Un-install this plug-in and manage colours with eclipse themes. Or try setting/preferences provided by Editbox plug-in itself. Refer this.
I think Editbox settings overrides the preferences in Preferences>General>Appearance.
You also can quickly enable/disable with such icon on Eclipse main toolbar.
Select more themes from EditBox, read at https://github.com/Nodeclipse/EditBox
or
You can get pre-defined color schemes in http://eclipsecolorthemes.org/
Download one you like and get started.
To reset your window perspective, you may go to:
Window Menu -> Reset Perspective

Blank but still somewhat working user interface

I've written a Java database program using Swing, and it looks and works fine on my Windows machine. I was expecting to be able to transfer it to my Linux (CentOS 6) machine with no problems, and while it compiles and runs just fine, the GUI is blank.
Specifically, a JDialog that I show appears as a solid grey rectangle, but I can still see my cursor change to an I bar when I hover over the text boxes, and I can type into them and press the invisible Ok button, and it works. (This is a database login dialog.)
Then, a JFrame that I've setup as an MDI parent is displayed, but it has zero size. If I drag it open it does have a border, but it does not visibly have the menu that I placed on it. I don't seem to be able to access the menu invisibly as I was able to on the JDialog.
I suspect that this must have something to do with some Java or library version, but I'm not sure. I tried installing Java 7 but it didn't change anything. I'm not sure if I should uninstall Java completely and try reinstalling it, or if maybe it has something to do with the project instead (I am using Eclipse Kepler if that helps.)
I see a few other "Java program is blank" questions, but they either do not have answers or are not the same issue I am having. (My program is only blank under CentOS so far; it works and looks just fine under Windows.)
I narrowed it down to a single line. In the JDialog I had the following:
setType(Type.POPUP);
as soon as I removed this line, the dialog became visible.
Additionally, I find that if I use the Test/Preview... feature (this is using the WindowBuilder) when that line is present, it shows the dialog blank, but it is non-interactive and effectively hangs Eclipse. This led me to "end-task" java.exe, which did unfreeze Eclipse, but it ended up causing even more problems, including the ones I was having with my MDI JFrame.
After rebooting, and removing the above POPUP line, everything is working great.

Eclipse Intellisense is unreadable in Windows 8

I am using Eclipse on Windows 8 x64. The problem I have is that the Eclipse IntelliSense pop-up (not sure what its actual name is) is unreadable:
This is because the background is cream and the foreground is white. I have only managed to find solutions for Ubuntu here but nothing for Windows.
How can I change either the background or the foreground color of the Eclipse IntelliSense pop-up to make it readable? Thanks!
The text in white are actually links, so I suspect that it's using the Windows default color for hyperlinks. I don't have use Windows so I can't tell you exactly where to change that, but I'd look at the standard Windows color/font settings and/or Internet Explorer settings.

Eclipse & Dark Juno - any way to make the console and other features dark?

Dark Juno really makes Eclipse look nice, but I find some of the UI elements, such as minimized perspectives and the console are glaringly white still, which is really hard on the eyes. Is it possible to change this as well?
Some of these colour preferences come from your operating system. This is one of the annoying things about the Eclipse colour preferences - what is in eclipse, what is in the OS. I really wish they would ignore all the OS colours for a more consistent look.
So, one solution is to set those colours in your OS. How you do that depends on your OS though. This can be problematic though, since it might make other applications look strange/unreadable.
You can override the console colour in Eclipse though: http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftasks-consoleAppearance.htm
Fonts and colors in Eclipse
Eclipse uses the fonts and colors provided by the operating system as
much as possible. On Windows the platform color and font settings are
found on the Preferences > Colors and Fonts page. The font used by
most widgets in Eclipse is the one set in the Message Box settings of
the properties. However, operating systems do not provide enough
colors to handle all of the extra information that colors and fonts
provide in Eclipse.
To set the types of output (and their colors) in the Console view:
Open the Run/Debug > Console preference page. Checking the Show when
program writes to standard out checkbox will make the Console view
visible each time new output is written to the console from the
program's standard output stream. If there is no Console view in the
current perspective, one will be created. Checking the Show when
program writes to standard err checkbox will make the Console view
visible each time new output is written to the console from the
program's standard error stream. If there is no Console view in the
current perspective, one will be created. Click any of the color
buttons to change the color for the corresponding text stream. To
set the fonts used in the Console view:
Open the General > Appearance > Colors and Fonts preference page.
Select Console font from the Debug category and use the Change...
button to change the font. (The Detail Pane Text Font can be used to
change the font of the debugger's default Detail Pane).

SingleFrameApplication that does NOT require ALT to activate menuitem mnemonics?

In the NetBeans 6.9 IDE, if you create a
New Project >> Java >> Java Desktop Application and run it, you will find that the menu items have mnemonics, but only after ALT is pressed.
(The netbeans program itself uses this style of menu.)
However, if you create a new File >> Swing GUI Forms >> JFrame Form, and add a simple menubar with mnemonics, then run the JFrame, the mnemonics will always appear without having to press ALT. This is what I would prefer.
(Firefox uses this style of menu)
My thoughts are that the org.jdesktop.application overrides the default setting, but that's just a guess. Anyone know how to make a SingleFrameApplication not require ALT to be pressed?
Thanks.
Edit:
The problem was found to be that JFrame and JDesktop use different default Look and Feels
It's a Windows setting. In XP go to:
Control Panel
Display
Appearance
Effects
Hide underlined letters for keyboard navigation until I press the Alt key
(Win7 should have a similar setting somewhere, I suppose.)
The default setting is on, so Java is right and Firefox is wrong (even Office 2003 doesn't respect that setting).
Uncheck it and you'll always see mnemonic underline in Java.
Note that only Windows LAF correctly respects the setting. Motif and Metal always show the underline. I don't use NetBeans or jDesktop but I guess it uses system LAF and thus the underline is correct.
If you still want to always show underline under Windows LAF (please think twice before you do), call UIManager.getLookAndFeelDefaults().put("Button.showMnemonics", false), which does NOT seem to work for XP because WindowsMenuItemUI#paintText only checks the flag under Vista. You could check Win7 JDK yourself.
Note that there's an accepted bug when the setting is on, which goes like this (saving you some time to parse the 2nd most awful bug tracking system in the universe. The worst is an in-house ColdFusion system my company used to have): create one menu with mnemonic, for example &File, press Alt-F, release, press Alt-F again, the underline is gone. They are back as soon as you do anything else, clicking, or just press Alt by itself.

Categories