NotoriousPP Posted August 24, 2014 Share Posted August 24, 2014 then you are stupider than you look, iv'e said about 4 times now i have made the GUI but i dont know how to implement it into my already existent script Yes I am stupid, yet I write the API your using... #Logic 3 Link to comment Share on other sites More sharing options...
Joseph Posted August 24, 2014 Share Posted August 24, 2014 why all this fighting notriouspp: isnt stupid hes part of the api team. op: You need to know java to script. What you said earlier i dont need to know java is completely stupid. We scripters arent here to spoon feed you. You ask a question and we help as much as we can. And for you question: Make an instance of your gui, and in the onstart make it visible. Within your gui make public getter methods so you could grab your variables easier. Link to comment Share on other sites More sharing options...
PwneRL33T Posted August 24, 2014 Author Share Posted August 24, 2014 why all this fighting notriouspp: isnt stupid hes part of the api team. op: You need to know java to script. What you said earlier i dont need to know java is completely stupid. We scripters arent here to spoon feed you. You ask a question and we help as much as we can. And for you question: Make an instance of your gui, and in the onstart make it visible. Within your gui make public getter methods so you could grab your variables easier. you obv didnt read other posts by me, saying i didnt mean how that sounded.... but thankyou... thats whta i was asking for...not for spoonfeed "Make an instance of your gui, and in the onstart make it visible. Within your gui make public getter methods so you could grab your variables easier." would that have been sooo hard guys??? Link to comment Share on other sites More sharing options...
Reid Posted August 24, 2014 Share Posted August 24, 2014 (edited) i cant stop laughing public class GUI extends JFrame { public GUI(){ //code here } } public class woodcutter extends Script { @manifest GUI gui; public void onStart(){ gui = new GUI(); gui.setVisible(true);} } this should help you out, if not then pls learn java Edited August 24, 2014 by Reid Link to comment Share on other sites More sharing options...
Swizzbeat Posted August 24, 2014 Share Posted August 24, 2014 @OP We're not trying to be dicks, none of us are coding legends that know absolutely everything so we to are asking questions all the time, however the difference is we'll try different things out until we discover the answer to our question. Not only that, but when we ask and question and it is answered (like here when we said to go back and learn basic Java concepts) we buckle down and tackle whatever we need to do head on. I know it can be frustrating, but there's a reason why there's a limited number of scripters. Link to comment Share on other sites More sharing options...
Isolate Posted August 25, 2014 Share Posted August 25, 2014 @OP We're not trying to be dicks, none of us are coding legends that know absolutely everything so we to are asking questions all the time, however the difference is we'll try different things out until we discover the answer to our question. Not only that, but when we ask and question and it is answered (like here when we said to go back and learn basic Java concepts) we buckle down and tackle whatever we need to do head on. I know it can be frustrating, but there's a reason why there's a limited number of scripters. OT: @Swizzbeat i seem unable to PM you.. every time i try osbot goes offline... and i thought i had you on skype but i dont Link to comment Share on other sites More sharing options...
Wizard Posted August 25, 2014 Share Posted August 25, 2014 i cant stop laughing public class GUI extends JFrame { public GUI(){ //code here } } public class woodcutter extends Script { @manifest GUI gui; public void onStart(){ gui = new GUI(); gui.setVisible(true); } } this should help you out, if not then pls learn java SwingUtilities.InvokeLater(new Runnable() { @Override public void run() { Gui g = new Gui(); g.setVisible(true); } }); while(g.isVisible()) { sleep(50); } 1 Link to comment Share on other sites More sharing options...