• Post Reply Bookmark Topic Watch Topic
  • New Topic

JLabel default color different under JDK1.4.1?

 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I developed my project under JDK1.3.1, and when I ran it under JDK1.4.1, I noticed that all labels are black (as opposed to blue under 1.3). Why such a change? What's the current "Java Look and Feel Guideline" regarding the color of JLabel?
Thanks,
Eugene.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What look and feel are you using? I don't recall the default color of JLabels being blue under 1.3...
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

What look and feel are you using? I don't recall the default color of JLabels being blue under 1.3...

I am using default Java look and feel, i.e. metal. The labels should be blue according to
Java Look And Feel Guidelines
Eugene.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wow! I really never noticed that! Yep... they changed it in 1.4. If you read the bug report it looks like the change is intentional, but the Look and Feel Guidelines haven't been updated yet. Maybe the L&F guidelines will be changed?

If you want, you can make all labels the old color by doing this at the beginning of your program:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!