Seguinte:
Tenho um main gerado pelo NetBeanspublic class DesktopApplication1 extends SingleFrameApplication {
/**
* At startup create and show the main frame of the application.
*/
@Override protected void startup() {
show(new DesktopApplication1View(this));
}
@Override protected void configureWindow(java.awt.Window root) {
}
public static DesktopApplication1 getApplication() {
return Application.getInstance(DesktopApplication1.class);
}
/**
* Main method launching the application.
*/
public static void main(String[] args) {
launch(DesktopApplication1.class, args);
}
}
public class DesktopApplication1View extends FrameView {
public DesktopApplication1View(SingleFrameApplication app) {
super(app);
initComponents();
...
...
}
...
/* haves buttoms label textboxes*/
/*do something*/
...
}
this.getFrame().setDefaultCloseOperation(JFrames.DO_NOTHING_ON_CLOSE);
@Override
public void exit(EventObject event) {
}
@Override
public void end() {
}

