Java swing exit on close event

h‮tt‬ps://www.lautturi.com
Java swing exit on close event
public static void main(String[] args){
  JFrame window=new JFrame();
  JLabel pane=new JLabel();
  pane.setText(D80TableGenerator.getHtml(getExample()));
  window.add(pane);
  window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  window.pack();
  window.setVisible(true);
}
Created Time:2017-09-05 13:58:06  Author:lautturi