• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java JTable - Transparence with Nimbus/System L&F  RSS feed

 
Francesco Rizzi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have this JTable:



MyTuple, MyTable and MyTableModel classes don't set any custom rendering.

This is how my table looks like under System L&F (which I really like):



This is how my table looks like under Nimbus L&F (note the added big rectangle):



i want my table to look like the one with System L&F. The problem is that if i set one L&F like i want, the other gets ugly, i want a sort of "compatibility", is there a way to do so?

Maybe using the UIManager.put() method?
 
Francesco Rizzi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think i just solved it... all i needed was to call setViewPortBorder() method on my ScrollPane with EmptyBorder as parameter...

but What if i would like to have also the columns titles with transparent background?

the following code works in Nimbus L&F, but not with System L&F... what do you think about this?:

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!