mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-07 08:39:12 +00:00
Proper style
This commit is contained in:
@@ -38,13 +38,13 @@ public class BotUI extends JFrame implements ActionListener, ComponentListener,
|
|||||||
private BotUI() {
|
private BotUI() {
|
||||||
JPopupMenu.setDefaultLightWeightPopupEnabled(false);
|
JPopupMenu.setDefaultLightWeightPopupEnabled(false);
|
||||||
|
|
||||||
this.setTitle("Parabot");
|
setTitle("Parabot");
|
||||||
this.setResizable(false);
|
setResizable(false);
|
||||||
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||||
this.setIconImage(Images.getResource("/org/parabot/core/ui/images/icon.png"));
|
setIconImage(Images.getResource("/org/parabot/core/ui/images/icon.png"));
|
||||||
this.setLayout(new BorderLayout());
|
setLayout(new BorderLayout());
|
||||||
this.addComponentListener(this);
|
addComponentListener(this);
|
||||||
this.addWindowListener(this);
|
addWindowListener(this);
|
||||||
|
|
||||||
JMenuBar menuBar = new JMenuBar();
|
JMenuBar menuBar = new JMenuBar();
|
||||||
|
|
||||||
@@ -86,7 +86,7 @@ public class BotUI extends JFrame implements ActionListener, ComponentListener,
|
|||||||
menuBar.add(file);
|
menuBar.add(file);
|
||||||
menuBar.add(scripts);
|
menuBar.add(scripts);
|
||||||
|
|
||||||
this.setJMenuBar(menuBar);
|
setJMenuBar(menuBar);
|
||||||
|
|
||||||
add(GamePanel.getInstance());
|
add(GamePanel.getInstance());
|
||||||
GamePanel.getInstance().addLoader();
|
GamePanel.getInstance().addLoader();
|
||||||
|
|||||||
Reference in New Issue
Block a user