code: public static void main(String[] args) {
          // Use the standard swing code to start this demo inside a swing thread.
          SwingUtilities.invokeLater(new Runnable() {
              @Override
              public void run() {
                  // Create an instance of the demo.
                  BasicDemo basicDemo = new BasicDemo();
                  // Make the demo visible on the screen.
                  basicDemo.setVisible(true);
              }
          });
      }
docs: main, This is the entry point for the basic demo.