File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes broken color display in Java 5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "broken color display in Java 5" Watch "broken color display in Java 5" New topic
Author

broken color display in Java 5

aj king
Greenhorn

Joined: Oct 01, 2004
Posts: 1
I've got a small app that displays a monthly calendar as a JTable, has some JComboboxes and textfields for inputting data, etc. When it runs it displays today's date in the calendar in blue background -- or rather, it should, and it used to with J2SE 1.4.

Instead, now running on the Java 5 platform (with recompiled source), when it first displays, the background color of the cell is green. It changes to blue when the user clicks somewhere inside the window.

Furthermore, the first time the user clicks in a combobox, the default color of the "selection bar" is a kind of khaki shade of green. Which then changes to the blue of the new "Ocean" Look & Feel.

This is very weird behavior, and I haven't a clue what to change in the code to prevent it. It didn't do this running under 1.4!!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: broken color display in Java 5
 
Similar Threads
Java applet window: color
check tr background color
JTable Focus differences in Java version 1.4 vs 1.5+ when editing
programmatic change of text item color in JLIst
how to use rgb color values to set JPanel background color