• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is setUI( TableUI table )?

 
Kevin Cary
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In JTable I noticed a method setUI( TableUI table ). Does anyone know what this is? I think it might have something to do with painting components.
 
Emerson Dunne
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SetUI() is in most extensions of JComponent. You can call getUI() to get the component's UI delegate, and setUI() to set it.
The javax.swing.plaf package contains abstract classes which define the basic behavior of UI Delegates.
Components delegate the implementation of their UI to UI Delegates. This system is how you can switch between Metal, Windows and Motif Look & Feels.
If you are really bored with your Fly By Night project you could start subclassing the abstract UI Delagate classes in javax.swing.plaf and write your own L&F.
 
Kevin Cary
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Emerson.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic