コード例 #1
0
  /** EdiDialog constructor comment. */
  public static void test() {
    JFrame frame = new JFrame();
    frame.addWindowListener(new CloseSaveWindowsListener());
    frame.setBackground(ConfigurableSystemSettings.backgroundColor.getAWTColor());
    frame.getContentPane().setLayout(new java.awt.BorderLayout());
    frame.setBounds(50, 50, 400, 400);
    frame.show();

    DialogNewElement dialog = new DialogNewElement(frame);
    dialog.show();
  }
コード例 #2
0
 /** EdiDialog constructor comment. */
 public static void main(String args[]) throws Exception {
   try {
     System.out.println("started");
     DialogNewElement.test();
     System.out.println("Finished");
   } catch (Exception e) {
     e.printStackTrace();
   }
 }