Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

programatically close a jframe

// Sending a Event with the Window
// to be closed this way, will initiate
// the **closing** behaviour.
frame.dispatchEvent(new WindowEvent(frame, WindowEvent.WINDOW_CLOSING));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #programatically #close #jframe
ADD COMMENT
Topic
Name
8+7 =