Help Wanted

java question – mikeyp

mikeyp
Junior Member

Posts: 1
From: sumner, wa usa
Registered: 04-02-2003
i have an array of buttons that i want to add to my content pane in random order adding each button only once. any help would be great.
CobraA1

Member

Posts: 926
From: MN
Registered: 02-19-2001
A for loop?

------------------
There are only 10 types of people - those who understand binary, and those who don't.

CobraA1

Member

Posts: 926
From: MN
Registered: 02-19-2001
Do the buttons HAVE to be added in random order? What exactly are you trying to do?

------------------
There are only 10 types of people - those who understand binary, and those who don't.

GUMP

Member

Posts: 1335
From: Melbourne, FL USA
Registered: 11-09-2002
I think I know what you're asking for, your description is a bit vague, but is this for school? Because I can't think of a reason to do this outside of some inane assignment. If so, I won't give you the answer... but I will point you to a forum if you have further problems getting your already partially written code to work:

http://forum.java.sun.com/

Also, for java.util.Random:

http://java.sun.com/j2se/1.4.1/docs/api/java/util/Random.html

[This message has been edited by GUMP (edited April 03, 2003).]