umm quite confused. 
if nobody else gets in first just wait like 2-3 mins whilst i find an example in my folders 
 
@ScriptManifest(author="Isolate", info="Project FTB! We Will Succeed!", name="DarkCore ", version=0.1D)
public class Skele extends Script {
      GUI_CLASS_NAME g = new GUI_CLASS_NAME();
    @Override
    public void onStart() {
         g.setVisible(true);
         while(g.isVisible){
            //hold the god damn phone
            }
    }
    @Override
    public void onExit() throws InterruptedException {
    }
    @Override
    public int onLoop() throws InterruptedException {
        Inventory i = client.getInventory();
        Player p = client.getMyPlayer();
        Bank b = client.getBank();
        return random(200, 500);
    }
    @Override
    public void onPaint(Graphics a) {
    }
class GUI_CLASS_NAME extends JFrame{
   //function where you want to close gui{
    g.dispose();
}
   //some pretty buttons
   //sexy functions
   //maybe a radial button or two !
}
}