예제 #1
0
 public void actionPerformed(ActionEvent e) {
   ListFrame f = new ListFrame();
   try {
     f.initComponents();
   } catch (Exception ex) {
     log.error("Exception: " + ex.toString());
   }
   f.setVisible(true);
 }
예제 #2
0
 public static void main(String args[]) {
   ListFrame listFrame = new ListFrame(); // create ListFrame
   listFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
   listFrame.setSize(350, 150); // set frame size
   listFrame.setVisible(true); // display frame
 } // end main