mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-07 00:38:16 +00:00
Fix for mac users
This commit is contained in:
@@ -29,9 +29,8 @@ public class BotDialog extends JDialog {
|
|||||||
botUI.setVisible(true);
|
botUI.setVisible(true);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setDimensions(Dimension dimension) {
|
||||||
public void setDimensions(Dimension dimension) {
|
|
||||||
setUndecorated(true);
|
setUndecorated(true);
|
||||||
getRootPane().setOpaque(false);
|
getRootPane().setOpaque(false);
|
||||||
setBackground(new Color(0, 0, 0, 0));
|
setBackground(new Color(0, 0, 0, 0));
|
||||||
|
|||||||
@@ -53,6 +53,13 @@ public class BotUI extends JFrame implements ActionListener, ComponentListener,
|
|||||||
JMenu scripts = new JMenu("Script");
|
JMenu scripts = new JMenu("Script");
|
||||||
|
|
||||||
JMenuItem proxy = new JMenuItem("Network");
|
JMenuItem proxy = new JMenuItem("Network");
|
||||||
|
final JMenuItem dialog = new JCheckBoxMenuItem("Disable dialog");
|
||||||
|
dialog.addActionListener(new ActionListener() {
|
||||||
|
@Override
|
||||||
|
public void actionPerformed(ActionEvent e) {
|
||||||
|
BotDialog.getInstance().setVisible(!dialog.isSelected());
|
||||||
|
}
|
||||||
|
});
|
||||||
JMenuItem exit = new JMenuItem("Exit");
|
JMenuItem exit = new JMenuItem("Exit");
|
||||||
|
|
||||||
run = new JMenuItem("Run");
|
run = new JMenuItem("Run");
|
||||||
@@ -74,6 +81,7 @@ public class BotUI extends JFrame implements ActionListener, ComponentListener,
|
|||||||
stop.addActionListener(this);
|
stop.addActionListener(this);
|
||||||
|
|
||||||
file.add(proxy);
|
file.add(proxy);
|
||||||
|
file.add(dialog);
|
||||||
file.add(exit);
|
file.add(exit);
|
||||||
|
|
||||||
scripts.add(run);
|
scripts.add(run);
|
||||||
|
|||||||
Reference in New Issue
Block a user