Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Linux - Nimbus LookAndFeel : Table Grid Lines are not coming

908392Jan 2 2012 — edited Jan 2 2012
In my java application I am using NimBusLookAndFeel. I was trying to show grid lines in table.

Following code works perfectly fine on windows but not on Linux (table grid lines do not appear in linux)

UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
UIManager.put("Table.showGrid", true);
UIManager.put("Table.intercellSpacing", new Dimension (1,1));

Following are java version details on linux

java version "1.6.0_12" Java(TM) SE Runtime Environment (build 1.6.0_12-b04) Java HotSpot(TM) Server VM (build 11.2-b01, mixed mode)

I had also tried this on JDK 1.6 update 30 but in vain
This post has been answered by mKorbel on Jan 2 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 30 2012
Added on Jan 2 2012
2 comments
332 views