mirror of
https://github.com/2006-Scape/2006RebottedClient.git
synced 2026-07-03 00:31:48 +00:00
remove useless, requestFocus
This commit is contained in:
@@ -33,6 +33,8 @@ public final class BotFrame extends JFrame implements ActionListener {
|
|||||||
setLocationRelativeTo(getParent());
|
setLocationRelativeTo(getParent());
|
||||||
setLocationRelativeTo(getOwner());
|
setLocationRelativeTo(getOwner());
|
||||||
setVisible(true);
|
setVisible(true);
|
||||||
|
requestFocus();
|
||||||
|
toFront();
|
||||||
applet.initClientFrame(766, 536);
|
applet.initClientFrame(766, 536);
|
||||||
System.out.println("Client Launched.");
|
System.out.println("Client Launched.");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ public class BotMenuBar extends JMenuBar {
|
|||||||
private BotFrame botUI;
|
private BotFrame botUI;
|
||||||
private JButton startButton, pauseButton, stopButton;
|
private JButton startButton, pauseButton, stopButton;
|
||||||
private JMenu features, file, scripts;
|
private JMenu features, file, scripts;
|
||||||
private JMenuItem cacheClear, notifications, run, pause, stop;
|
private JMenuItem run, pause, stop;
|
||||||
|
|
||||||
public BotMenuBar(BotFrame botUI) {
|
public BotMenuBar(BotFrame botUI) {
|
||||||
this.botUI = botUI;
|
this.botUI = botUI;
|
||||||
@@ -28,14 +28,7 @@ public class BotMenuBar extends JMenuBar {
|
|||||||
features = new JMenu("Features");
|
features = new JMenu("Features");
|
||||||
scripts = new JMenu("Script");
|
scripts = new JMenu("Script");
|
||||||
|
|
||||||
JMenuItem screenshot = new JMenuItem("Create screenshot");
|
final JMenuItem exit = new JMenuItem("Exit");
|
||||||
JMenuItem proxy = new JMenuItem("Network");
|
|
||||||
JMenuItem randoms = new JMenuItem("Randoms");
|
|
||||||
JMenuItem dialog = new JCheckBoxMenuItem("Disable dialog");
|
|
||||||
JMenuItem logger = new JCheckBoxMenuItem("Logger");
|
|
||||||
|
|
||||||
JMenuItem explorer = new JMenuItem("Reflection explorer");
|
|
||||||
JMenuItem exit = new JMenuItem("Exit");
|
|
||||||
|
|
||||||
|
|
||||||
run = createNewJMenuItem( "Run", true);
|
run = createNewJMenuItem( "Run", true);
|
||||||
@@ -44,38 +37,14 @@ public class BotMenuBar extends JMenuBar {
|
|||||||
|
|
||||||
stop = createNewJMenuItem("Stop", false);
|
stop = createNewJMenuItem("Stop", false);
|
||||||
|
|
||||||
cacheClear = new JMenuItem("Clear cache");
|
|
||||||
//cacheClear.setIcon(new ImageIcon(Images.getResource("/storage/images/trash.png")));
|
|
||||||
|
|
||||||
notifications = new JMenuItem("Notifications");
|
|
||||||
//notifications.setIcon(new ImageIcon(Images.getResource("/storage/images/bell.png")));
|
|
||||||
|
|
||||||
|
|
||||||
screenshot.addActionListener(botUI);
|
|
||||||
proxy.addActionListener(botUI);
|
|
||||||
randoms.addActionListener(botUI);
|
|
||||||
dialog.addActionListener(botUI);
|
|
||||||
logger.addActionListener(botUI);
|
|
||||||
explorer.addActionListener(botUI);
|
|
||||||
exit.addActionListener(botUI);
|
exit.addActionListener(botUI);
|
||||||
cacheClear.addActionListener(botUI);
|
|
||||||
notifications.addActionListener(botUI);
|
|
||||||
|
|
||||||
scripts.add(run);
|
scripts.add(run);
|
||||||
scripts.add(pause);
|
scripts.add(pause);
|
||||||
scripts.add(stop);
|
scripts.add(stop);
|
||||||
|
|
||||||
file.add(screenshot);
|
|
||||||
file.add(proxy);
|
|
||||||
file.add(randoms);
|
|
||||||
file.add(dialog);
|
|
||||||
file.add(logger);
|
|
||||||
file.add(explorer);
|
|
||||||
file.add(exit);
|
file.add(exit);
|
||||||
|
|
||||||
features.add(cacheClear);
|
|
||||||
features.add(notifications);
|
|
||||||
|
|
||||||
|
|
||||||
/* startButton = createNewButton(new ImageIcon(Images.getResource("/storage/images/run_button.png")), "Run Script", "Run", true);
|
/* startButton = createNewButton(new ImageIcon(Images.getResource("/storage/images/run_button.png")), "Run Script", "Run", true);
|
||||||
|
|
||||||
@@ -125,14 +94,6 @@ public class BotMenuBar extends JMenuBar {
|
|||||||
return file;
|
return file;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JMenuItem getCacheClear() {
|
|
||||||
return cacheClear;
|
|
||||||
}
|
|
||||||
|
|
||||||
public JMenuItem getNotifications() {
|
|
||||||
return notifications;
|
|
||||||
}
|
|
||||||
|
|
||||||
public JButton getStartButton() {
|
public JButton getStartButton() {
|
||||||
return startButton;
|
return startButton;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user