Hi friends,
I downloded a
java file from sun's swing tutorial. (
http://java.sun.com/docs/books/tutorial/uiswing/components/example-1dot4/MenuLookDemo.java)
I edited the code and added the following two lines.
menu.setBackground(Color.RED);// This is the first line that I added
submenu.setBackground(Color.GREEN);// This is the seccond line that I added
It worked as expected when I tested with java version "1.4.2_04"
But, unfortunately, it is not working with java version "1.5.0"
The background color is set properly when I use java version other than "1.5.0"
But when I use java version "1.5.0", The back ground is still the default background color.
Am I doing anything wrong..?
Or is this a bug..?
I tested in windows 98 and XP. Both produced the same result.
So I guess the problem is with jre.
Here is the code
Thanks
Shahabas E Shabeer