Link to home
Start Free TrialLog in
Avatar of jedistar
jedistarFlag for Singapore

asked on

Close button

How do i make a close button that will close a jframe window
ASKER CERTIFIED SOLUTION
Avatar of hoomanv
hoomanv
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jedistar

ASKER

whats this?
SwingUtilities.windowForComponent(source).dispose();
Returns the first Window ancestor of the given component, or null if source is not contained inside a Window
that was the description of windowForComponent(Component c) method
:-)

>>frame.setVisible(false);

would of course be redundant in that context