I'd also like some help with this. I used to do it in other bot clients by:
GUI gui = new GUI();
gui.setVisible(true);
gui.setLocationRelativeTo(null);
while (gui.isVisible())
{
try {sleep(50);} catch (InterruptedException e) {
} finally {};
}
But it works horribly. When I dispose my GUI, it takes about 10 seconds to load whatever settings were chosen, and then the bot gets ~15 fps, from 50 before the script start.