• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java JTable - Transparence with Nimbus/System L&F

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?:

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic