If I'm getting it right you want to set the size (200,100) the first time the button is clicked, (300,200) the second time so on.
So if you want to do this with one button only you can use the index...
Type: Posts; User: andreas90
If I'm getting it right you want to set the size (200,100) the first time the button is clicked, (300,200) the second time so on.
So if you want to do this with one button only you can use the index...
What do you mean by "i just want to change 2 difference type"?
Can you post your current code and elaborate your requirements?
Firstly, I don't think the last posted code will compile. To be more specific the following line will give you an error.
if(e.getSource() == 0)
e.getSource() should equal the button you have...
Do you have a problem with it (error, exception, unexpected behaviour)?
Hello vitorloke!
You are not changing only one time the size. You are changing it every time you click the button. The problem is that every time you are setting it to the same size....