Hy ,
I am using netbeans to create an app.
I wanted to eliminate the windows buttons (minimize , maximize , exit) so i could have full control on the exit button , and i used setUndecorated(true) in the PuppetApp.java (main app that netbeans creates).
Now i created a exit button (which does what i want)in the PuppetView.java (which is lunched from PuppetApp.java and PuppetView.java does not have a "main" that creates a JFrame) and i want to create a minimize button and i don`t know how :
I tried :
private void buttonMinimizeMouseClicked(java.awt.event.MouseEvent evt) {
// TODO add your handling code here:
try{
PuppetApp.getApplication().getMainView().getFrame().setState(Frame.ICONIFIED);
}catch(Exception e){
System.out.println(e);
}
//System.exit(0);
}
and many other versions of it but still no result.
Can anybody help me?