how to give background colour in a frame using java swing?
A:
Read the section from the Swing tutorial on Using Top Level Container. It explains the structure of the frame. In general the "content pane" is used to hold the components you add to the frame. So you need to set the background of the content pane, not the frame.
camickr
2010-09-15 15:36:03