wat do
Issue:
I have this sick GUI for a script right? How do I get it to start/load a class from a different package?
Select option from a JComboBox
Hit "start"
Start selected item with a matching class name?
I've tried populating the JComboBox values two different ways, but neither prevailed, when trying to start the other class.
My onLoop method: (I want to assume that the problem is in this hopefully)
@Override
public int onLoop() throws InterruptedException {
try {
Class.forName(getName(), true, null);
// Class.forName((String) questName);
log("trying to start: " + questName);
} catch (Exception e) {
log("failed to start: " + questName);
e.printStackTrace();
}
return 500;
}