Hey
I wonder why I can't get the progress bar green like the XP theme. I create a frame with a new JProgressBar like this:I also set the theme to the system theme (I'm running Windows XP, theme blue) like this:Code:JFrame frame = new JFrame(); JProgressBar progressBar = new JProgressBar(0, 100); frame.add(progressBar);The new theme makes the progress bar blue (ugly ;P). Does anyone know how to get it green (like the blue XP theme)?Code:try{ UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); SwingUtilities.updateComponentTreeUI(frame); }catch(Exception e){}
If someone don't understand what I mean, I can upload a picture of how it looks like and how I want it to be.
Thanks for your help!


Reply With Quote

Bookmarks