I just switched my program from Java 1.42 to Java 6 because I wanted to take advantage of Substance Look and Feel (is 5.0 and up only). After sorting out a few things it didn’t like in my code I got everything up and running and then plugged in Substance, but it didn’t go together very well -
a) There was terrible flicker (I suppose substance doesn’t like direct rendering)
b) It drew it’s own button images behind mine
c) I got deadlocks on comboBoxes (never seen that before)
d) Other more minor stuff
So I decided to just change the gui stuff by myself with UIManager since just changing a few imageIcons and colors for the objects I’m using (JComboBox, JFormattedTextField, ScrollBar, JSpinner JColorChooser and a few others) will give me the results I need. I’ve had a few problems so far -
- Java 6 draws this annoying light blue border around my comboboxes and I’ve tried everything but can’t get rid of it
- I’ve created a color chooser with only the first panel (the palette array thing) and can’t get it to make it transparent
AbstractColorChooserPanel panels[] = colorChooser.getChooserPanels();
panels[0].setOpaque(false);
panels[0].setBackground(new Color(0f,0f,0f,0f));
AbstractColorChooserPanel panels2[] = {panels[0]};
colorChooser.setChooserPanels(panels2);
And
UIManager.put("ColorChooser.background ", new Color(0f,0f,0f,0f));
- Having trouble changing the color of the scrollbar including buttons and the color of the arrows on the buttons
That’s about all I can think of for now. Thanks