Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issue with setting different Look and Feel in a Single Application

 
buntha Choudhary
Ranch Hand
Posts: 136
Android Eclipse IDE Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having a Frame named Frame1 and I am setting a look and feel L&F1.
Now in frame1, on clicking to a menu event and new Frame named Frame2 opens and there I set a look and feel L&F2.
Now I found that this kind of scenario is breaking the Frame1 and entire Frame1 gets hang
How to resolve this scenario.
 
Rob Spoor
Sheriff
Pie
Posts: 20751
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hanging? That's new for me. I know that the existing user interface usually doesn't get repainted when changing the look&feel, but this can be solved by using SwingUtilities.updateComponentTreeUI().

Can you show us how you change the look&feel? Perhaps you have an infinite loop somewhere.
 
buntha Choudhary
Ranch Hand
Posts: 136
Android Eclipse IDE Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Spoor wrote:Hanging? That's new for me. I know that the existing user interface usually doesn't get repainted when changing the look&feel, but this can be solved by using SwingUtilities.updateComponentTreeUI().

Can you show us how you change the look&feel? Perhaps you have an infinite loop somewhere.



Rob, actually it is not hanging. The frame1 gets blurred as soon as I click for Frame2(repainting issue).
As per you suggestion, I will work on it and update.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic