Totte_ch
11-22-2008, 11:45 AM
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:JFrame frame = new JFrame();
JProgressBar progressBar = new JProgressBar(0, 100);
frame.add(progressBar);I also set the theme to the system theme (I'm running Windows XP, theme blue) like this:try{
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
SwingUtilities.updateComponentTreeUI(frame);
}catch(Exception e){}The new theme makes the progress bar blue (ugly ;P). Does anyone know how to get it green (like the blue XP theme)?
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!
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:JFrame frame = new JFrame();
JProgressBar progressBar = new JProgressBar(0, 100);
frame.add(progressBar);I also set the theme to the system theme (I'm running Windows XP, theme blue) like this:try{
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
SwingUtilities.updateComponentTreeUI(frame);
}catch(Exception e){}The new theme makes the progress bar blue (ugly ;P). Does anyone know how to get it green (like the blue XP theme)?
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!