hi...
i have problem with button.. exactly, i want to pass the value from button"jana" to another environment or class.. when user click the "generate" button it will get value from before operation then pass to some else... please how...
here the sub code
[ code]
public void actionPerformed(ActionEven
t e){
if(e.getSource() == jana){
??????? }
//get value from this operation:
if(first == 2){ //b1
g.drawLine(325, 225, 395, 225); //line s11&b1 3
g.drawLine(325, 255, 325, 225); //line s9&s11 2
g.drawLine(325, 285, 325, 255); //line s1&s9 1
g.drawLine(425, 285, 325, 285); //line s0&s1 0
// ????? must return coordinate x,y to actionPerformed above.... how?
}
[/code]
..... hope will give me some guide
Start Free Trial