[TASK] Removed random number

Also bumped version
This commit is contained in:
Emmastone
2017-11-21 10:41:49 +00:00
parent 610778597f
commit 47570cbce0
4 changed files with 7 additions and 4 deletions
+4 -1
View File
@@ -157,7 +157,10 @@ public class BotUI extends JFrame implements ActionListener, ComponentListener,
case "Create screenshot":
try {
Robot robot = new Robot();
Rectangle parabotScreen = new Rectangle((int) getLocation().getX(), (int) getLocation().getY() + (menuBar.getHeight() + file.getHeight()), getWidth(), getHeight() - 43);
int menuBarHeight = menuBar.getHeight() + file.getHeight();
Rectangle parabotScreen = new Rectangle(
(int) getLocation().getX(), (int) getLocation().getY() + menuBarHeight,
getWidth(), getHeight() - menuBarHeight);
BufferedImage image = robot.createScreenCapture(parabotScreen);
String randString = StringUtils.randomString(10);
boolean search = true;