public static void main(String args[]) 
    {
        //
        try 
        {
            //
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) 
            {
                //Sets the windows look and feel for the user interface.
                if ("Windows".equals(info.getName())) 
                {
                    //
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    //
                    break;
                }
            }
        } 
        //
        catch (ClassNotFoundException | InstantiationException | IllegalAccessException | javax.swing.UnsupportedLookAndFeelException ex) 
        {
            //
        }
        //
        //
        java.awt.EventQueue.invokeLater(new Runnable() 
        {
           /*
            * Description:
            *
            * Example:
            *
            * Status:
            */
            @Override
            public void run() 
            {
                //Defines interface or GUI.
                UserInterface GUI = new UserInterface();
                //Gets screen size.
                Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
                //Sets the position of the user interface to the center of the screen.
                GUI.setLocation((dim.width-GUI.getContentPane().getWidth())/2, (dim.height-GUI.getContentPane().getHeight())/2);
                //Sets the user interface visible on the screen.
                GUI.setVisible(true);
                //Trys to enumerate serial ports.
                try 
                {
                    //At the start of the program, the comm port menu is populated with all available comm ports.
                    enumerate_serial_ports();
                } 
                //
                catch (PortInUseException | UnsupportedCommOperationException | IOException ex) 
                {
                    //
                    Terminal.systemLogMessage("Failed to enumerate available serial ports on the system.");
                }
            }
        });
        //Begins the System Log thread.
        (new Thread(new Terminal())).start();
        //Begins the available comm port scanner thread.
        (new Thread(new ConnectionListenerThread())).start();
        //Begins the joystick thread.
        (new Thread(new Controller())).start();
        //Begins the calibrate coordinates thread.
        (new Thread(new CoordinateTransformThread())).start();
        //Begins the automated navigation listener thread.
        (new Thread(new AutomatedNavigationListenerThread())).start();
        //Begins Tension Sensor Thread.
        (new Thread(new TensionSensor())).start();
    }