Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by roong

  1. roong

    close box on JFram

    you can use setDefaultCloseOperation() JFrame frame = new JFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); if you don't want to do somethings before close your frame if you must do somethings (e.g. save, change some properties) you must use Window Listener.
  2. roong

    Closing a JFrame programmatically

    if you use dispose() when you show frame again that frame will appear same as before you called dispose() I think you should clear data in Object(s) by yourself before call dispose() or affter you show its again.
  3. roong

    Closing a JFrame programmatically

    // try this code // if you didn't uncomment line: textField = new JTextField(); // data in textField will not be clear // uncomment line: textField = new JTextField(); // and try again, you will got new child with no data in textFiled import javax.swing.*; import java.awt.event.*; public...

Part and Inventory Search

Back
Top