Answers for "exitonclose swing"

0

exitonclose swing

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);
}
Posted by: Guest on September-27-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language