Jump to content

GUI use


PwneRL33T

Recommended Posts

why all this fighting facep.gif

 

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

why all this fighting facep.gif

 

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

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 by Reid
Link to comment
Share on other sites

@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

@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

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);
	}
  • Like 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...