• 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

swing lookandfeel Change at runtime affecting JButtonBar

 
Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic