All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gov.nih.nlm.nls.lvg.Tools.GuiTool.GuiLib.LibCloseableFrame Maven / Gradle / Ivy

The newest version!
package GuiTool.GuiLib;
import java.awt.event.*;
import javax.swing.*;
public class LibCloseableFrame extends JFrame
{
    public LibCloseableFrame()
    {
        // make the window closable, using inner class
        addWindowListener(new WindowAdapter()
            {
                public void windowClosing(WindowEvent e)
                {
                    System.exit(0);
                }
            });
    }
    
    public LibCloseableFrame(String title)
    {
        this();
        setTitle(title);
    }
    private final static long serialVersionUID = 5L;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy