[NetBeans][JFrame] - JFrame Button

HI !

Im trying to make the application that is base on the multiple windows(JFrames ). When im opening window and somebody gonna enter wrong information i would likt to make a warning window with one button for example 'OK'. i puting action for the button

this.dispose();

but when im doing like that,when im pressing button the warning windows is being closed and that is ok and my additional window is being cloesed to. Can i use another function just to close this one window/?

Krystian,

[524 byte] By [krystiancza] at [2007-11-27 0:21:04]
# 1

Check out the JOptionPane functions.

Also, if your main application frame is "this," this.dispose() will destroy your application (or at the very least, the GUI portion of it). Try getting whatever child pane is causing the problem and destroying that.

For example:

ParentFrame.getChildFrame().dispose();

Joe H

Joe_ha at 2007-7-11 22:14:25 > top of Java-index,Java Essentials,Java Programming...