开发者

Is it possible to show a JPanel without putting it in a JFrame? Or full screen GUI

Okay this is probably a rookie question, but I have never done GUI programming in Java before. Is it possible to use a JPanel that 开发者_如何学Cis not in a JFrame? or essentially create a GUI that does not have the system Max, Min, Close buttons or a border?

If that seems confusing please let me know and I will be more clear with what I am trying to accomplish (I might be going about it all wrong);


You can use a JWindow instead of a JFrame.


You can use jFrame.setUndecorated(true);


Yes, you don't need a JPanel inside of a JFrame. You should take a look at this article: http://download.oracle.com/javase/tutorial/uiswing/components/panel.html

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜