Search in sources :

Example 1 with G_LogPanel

use of main.swing.panels.misc.G_LogPanel in project Eidolons by IDemiurge.

the class DebugPanel method initGUI.

private void initGUI() {
    // KEY LISTENER!
    logPanel = new G_LogPanel();
    buttonPanel = new FunctionPanel(master);
    inputPanel = new G_InputPanel();
    ip = new DC_InfoPanel(null, null, DC_Game.game.getState());
    G_Panel panel = new G_Panel();
    panel.setBackground(ColorManager.getTranslucent());
    panel.setOpaque(false);
    panel.add(ip, "id ip, pos 0 0");
    panel.add(buttonPanel, "id btns, pos ip.x2 0");
    frame.add(panel);
    // setUndecorated(true);
    // setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
    frame.setSize(new Dimension(getPanelWidth(), getPanelHeight()));
    frame.setVisible(true);
    frame.addWindowListener(new WindowListener() {

        @Override
        public void windowOpened(WindowEvent e) {
        }

        @Override
        public void windowIconified(WindowEvent e) {
        }

        @Override
        public void windowDeiconified(WindowEvent e) {
        }

        @Override
        public void windowDeactivated(WindowEvent e) {
        }

        @Override
        public void windowClosing(WindowEvent e) {
        }

        @Override
        public void windowClosed(WindowEvent e) {
            frame.setVisible(false);
        }

        @Override
        public void windowActivated(WindowEvent e) {
        }
    });
}
Also used : G_LogPanel(main.swing.panels.misc.G_LogPanel) G_InputPanel(main.swing.panels.misc.G_InputPanel) WindowListener(java.awt.event.WindowListener) G_Panel(main.swing.generic.components.G_Panel) WindowEvent(java.awt.event.WindowEvent) DC_InfoPanel(eidolons.swing.components.panels.DC_InfoPanel)

Aggregations

DC_InfoPanel (eidolons.swing.components.panels.DC_InfoPanel)1 WindowEvent (java.awt.event.WindowEvent)1 WindowListener (java.awt.event.WindowListener)1 G_Panel (main.swing.generic.components.G_Panel)1 G_InputPanel (main.swing.panels.misc.G_InputPanel)1 G_LogPanel (main.swing.panels.misc.G_LogPanel)1