• Post Reply Bookmark Topic Watch Topic
  • New Topic

swing lookandfeel Change at runtime affecting JButtonBar

 
Dave Brown
Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i All,

Anyone any ideas why this is happening to me ?

I have a frame with various panels all GridBagLayout, one being on the left containing a JButtonbar, with 4 buttons all stacked on top of each other again GB Layout..

Everything is cool, but when I call my Change Appearence dialog and select a new skin, as soon as I call

SwingUtilities.updateComponentTreeUI(this.getParent());

in the dialog to update the application with the new lookandfeel the JBUttonBar layout changes..

Instead of the buttons being

X

X

X

X

they are now

XXXX


Any ideas anyone ? It's really got me stumped :'(

Thanks in advance,

Dave.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!