aspose file tools
The moose likes Java in General and the fly likes set up buttons randomly Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "set up buttons randomly" Watch "set up buttons randomly" New topic
Author

set up buttons randomly

Per kermel
Greenhorn

Joined: Feb 22, 2004
Posts: 9
i havew tre buttons and every time i click on them i want them 2 switch sides.. aka 1 - 2 - 3. 3 - 1 - 2


how 2 do so?
Nigel Browne
Ranch Hand

Joined: May 15, 2001
Posts: 673
If you dont need to physically move the buttons, just add a switch case to each of the listeners for the buttons and change the text on the button.

Hope this helps
Nigel
 
I agree. Here's the link: jrebel
 
subject: set up buttons randomly
 
Similar Threads
How to repaint/refresh/redraw JPanel
Can I distinguish JButtons?
Please need help with calculator program...
Troble working with JButtons..
Adding JButton Array to a applet issue