Page 477 - 2
P. 477

private static JPanel SMS_panel;

                    public static void main(String[] args) {


                            EventQueue.invokeLater(new Runnable() {
                                    public void run() {
                                            try {
                                                    HUD frame = new HUD();


                                                    GraphicsEnvironment gEnvironment = GraphicsEnvironment.get
            LocalGraphicsEnvironment();
                                                    GraphicsDevice gDevice = gEnvironment.getDefaultScreenDevice
            ();
                                                    frame.setUndecorated(true);
                                                    gDevice.setFullScreenWindow(frame);

                                                    frame.setVisible(true);
                                                    Thread t1 = new Thread(new Bluetooth_Connecter());
                                                    t1.start();
                                            } catch (Exception e) {
                                                    e.printStackTrace();
                                            }
                                    }
                            });
                    }
                    public HUD() {
                            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                            setBounds(100, 100, 810, 515);
                            contentPane = new JPanel();
                            setContentPane(contentPane);
                            contentPane.setLayout(null);

                            SMS_panel = new JPanel();
                            SMS_panel.setOpaque(false);
                            SMS_panel.setBounds(466, 279, 113, 101);
                            contentPane.add(SMS_panel);


                            scrollPane = new JScrollPane();
                            scrollPane.setBounds(12, 450, 376, 21);
                            contentPane.add(scrollPane);



                            //Log GUI
                            LogArea = new JTextArea();
                            LogArea.setForeground(Color.WHITE);
                            LogArea.setBackground(Color.LIGHT_GRAY);
                            LogArea.setEditable(false);
                            LogArea.setFont(new Font(Font.DIALOG, Font.PLAIN, 10));
                            LogArea.setLineWrap(true);
                            scrollPane.setViewportView(LogArea);


                                                         - 477 -
   472   473   474   475   476   477   478   479   480   481   482