HOW WOULD I MAKE A BUTTON MOVE?

J

justineee

I'm just wondering how would I make a JButton move. I am supposed to
make a program that uses queueing.
I am supposed to make a "Diner Dash"-like simulation. However, it is
only a simulation so when the user press start, there will be a screen
where the buttons move as the waitress and customers.

Any tips? Please?

Thanks
 
A

awec

justineee said:
I'm just wondering how would I make a JButton move. I am supposed to
make a program that uses queueing.
I am supposed to make a "Diner Dash"-like simulation. However, it is
only a simulation so when the user press start, there will be a screen
where the buttons move as the waitress and customers.

Any tips? Please?

Thanks

Not 100% sure, but to move a button you could just update the JButtons
position and then redraw it?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top