Terry56
October 7th, 2009, 01:39 PM
Hi to all,
Hope all will be fine. Actually i want to ask that how can i change the applet color. By google i found that use
setBackground(Color.Blue) // or whatever color you want
In the init() method but its not working. I also put this is paint() method but still no result . Actually i gave my recorder applet the window look and feel by putting the code
static {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
}catch (Exception ex) {
ex.printStackTrace();
}
}
When you see the attachment the applet is of gray color and on another computer is of windows like yellow color. If i want to change the color how can i do it please guide me.
Also in the recorder you see when slider moves the space it's left from its left is empty i want to fill it with some color. I used the code
progressSlider = new JSlider(SwingConstants.HORIZONTAL, 0, TOTAL_MINS * 60, 0);
progressSlider.putClientProperty("JSlider.isFilled", Boolean.TRUE);
but it is not working also, so please tell me how can i fill the slider with some color from it's left when it is moving.
Thanks in advance
Hope all will be fine. Actually i want to ask that how can i change the applet color. By google i found that use
setBackground(Color.Blue) // or whatever color you want
In the init() method but its not working. I also put this is paint() method but still no result . Actually i gave my recorder applet the window look and feel by putting the code
static {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
}catch (Exception ex) {
ex.printStackTrace();
}
}
When you see the attachment the applet is of gray color and on another computer is of windows like yellow color. If i want to change the color how can i do it please guide me.
Also in the recorder you see when slider moves the space it's left from its left is empty i want to fill it with some color. I used the code
progressSlider = new JSlider(SwingConstants.HORIZONTAL, 0, TOTAL_MINS * 60, 0);
progressSlider.putClientProperty("JSlider.isFilled", Boolean.TRUE);
but it is not working also, so please tell me how can i fill the slider with some color from it's left when it is moving.
Thanks in advance