Can you toggle between look and feel, want to make different "themes"
Can you?
Or is there some other way to change "themes".
if not, can anyone help with a lamer "theme"?
In my GUI I have a method called: theme3()
that basically uses a loop to change my button backgrounds.
Code:
public static void theme3(){
for (int a = 0; a < 9; a++){
for (int b = 0; b < 9; b++){
Grid[a][b].setBackground(Color.ORANGE);
}
}
}
Code:
final JRadioButtonMenuItem three = new JRadioButtonMenuItem("Theme: Third");
three.setSelected(true);
three.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
theme3();
}
});
the radio button is in "MenuBar" that extends JMenuBar that is a inner class in my GUI.
whether I type theme3(); or GUI.theme3(); there isn't any error, the thing is, clicking the button doesn't do anything either.