• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Look and feel with Custom UI delegate

 
Ganesha Kumar
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am unable to understand how Swing works when you have look and feel and you are having a custom ComponentUI for a component. Here is the sample code:



In this example, if a look and feel is set in the beginning and after that a custom UI is set for TextField(MyTextUI), the custom UI is taking the priority. If Look and Feel is set later, the look and feel will override the custom UI. I want know to what is the appropriate way to create custom ui. Should one always create Look and feel set for all the components and set it to the UIManager. What if I want to have custom look and feel only for a few components?

Thanks,
Ganesh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic