I am using Eclipse WindowBuilder to build a GUI for my Java program. I am currently stuck as I have created a button and I have give the X and Y locations different variables. These variables change in a 'While' loop when the button is clicked and sends out an event.
I have tried looking at multi-threading. However I don't think this is the most viable option. Also if I did multi-thread I don't know which bit of the code I would have to put in the separate thread.
New button = Button button(X, Y, 100,100);
I am trying to increase the x and Y coords