开发者

How can I hide a "java desktop application"

开发者 https://www.devze.com 2023-01-28 12:22 出处:网络
I\'m newbie in Java so I deicide make an application use \"java desktop application\" in Netbeans. It creates 3 file (ProjectNameAboutBox.java (JFrame Form), ProjectNameApp.java, ProjectNameView.java

I'm newbie in Java so I deicide make an application use "java desktop application" in Netbeans. It creates 3 file (ProjectNameAboutBox.java (JFrame Form), ProjectNameApp.java, ProjectNameView.java (JFrame Form and all my code in this file)).

Now, I want to ask how can I hide and restore this application when run? I already made a systemTray for it

开发者_JAVA技巧Thank you


Simply frame.setVisible(false) to hide and frame.setVisible(true) to show.

0

精彩评论

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