
jframe background color is not showing. please suggest.

Just add the background color to JPanel and then add it to JFrame. For example ..
JFrame myFrame = new JFrame();
JPanel myPanel = new JPanel();
JButton myButton = new JButton("myButton");
myPanel.add(myButton);
myPanel.setBackground(Color.BLACK);
myFrame.add(myPanel);
myFrame.pack();
myFrame.setVisible(true);
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
