Added RandomHandler#setActive and enabled all randoms by default

This commit is contained in:
JKetelaar
2014-12-26 12:10:07 +01:00
parent 10080277f8
commit a04aadf5fd
3 changed files with 11 additions and 0 deletions
+1
View File
@@ -70,6 +70,7 @@ public final class Landing {
}
/**
* TODO
* Returns an array of string containing only the username and password
* @return String array with username and password
*/
@@ -37,6 +37,7 @@ public class BotUI extends JFrame implements ActionListener, ComponentListener,
throw new IllegalStateException("BotUI already created");
}
instance = this;
//WebLookAndFeel.install();
JPopupMenu.setDefaultLightWeightPopupEnabled(false);
setTitle("Parabot");
@@ -37,6 +37,15 @@ public class RandomHandler {
}
}
randoms.add(random);
setActive(random);
}
/**
* Adds a random to the active randoms
* @param random
*/
public void setActive(Random random){
this.activeRandoms.add(random);
}
/**