hello guys i have problem coloring those buttons the background allways change color but the other stay in grey color, any way to change that to other color? /sorry for my english/
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Prepinac extends JFrame
{
JToggleButton prepinac1 = new JToggleButton("prepinac");
public static void main(String [] args)
{
Prepinac prepinace = new Prepinac();
Container kontainer = prepinace.getContentPane();
kontainer.setLayout(new FlowLayout());
kontainer.add(prepinace.prepinac1);
kontainer.add(new JButton("tlacidlo"));
prepinace.setDefaultCloseOperation(EXIT_ON_CLOSE);
prepinace.pack();
prepinace.setVisible(true);
}
}