use of main.swing.panels.misc.G_InputPanel 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) {
}
});
}
Aggregations