Beispiel #1
0
 public static void main(String... args) {
   EventQueue.invokeLater(
       new Runnable() {
         @Override
         public void run() {
           createAndShowGUI();
         }
       });
 }
Beispiel #2
0
 public static void main(String[] args) {
   EventQueue.invokeLater(
       new Runnable() {
         public void run() {
           JFrame frame = new SwingDnDFrame();
           frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
           frame.setVisible(true);
         }
       });
 }
Beispiel #3
0
  public static void main(String[] args) {
    EventQueue.invokeLater(
        new Runnable() {
          public void run() {
            // int rows, int cols, int hgap, int vgap
            new Test(
                AwtLayoutAdapter.of(GridLayout2.of(40, 10, 4, 2)), generateRandomComponents(400));
            // new Test(new GridLayout(4, 4, 4, 2), generateRandomComponents(14));
            // new Test(4, new Insets(1, 2, 1, 2), generateRandomComponents(14));

            // new Test(new GridLayout(3, 2, 2, 2), generateChangePasswordComponents());
            // new Test(new GridLayout2(3, 2, 2, 2), generateChangePasswordComponents());
            // new Test(2, new Insets(1, 1, 1, 1), generateChangePasswordComponents());
          }
        });
  }