JPanel mygame = new JPanel();
mygame.setLayout(new BorderLayout());
mygame.add(new JButton("Start Game"),
mygame.setForeground(Color.red);
BorderLayout.WEST);
This is how I input the code, and I tried diff ways following tutorials but colour of "start game" text will not change. also set background to gray but it stays default color? Can't see what I'm doing wrong, followed tutorial only changed bits for my specific code? help appreciated