开发者

frame background colour

how to give backgr开发者_如何学JAVAound colour in a frame using java swing?


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.


Did you try JComponent.setBackground(Color c)?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜