This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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!!!