i need help with random number in GUI

hello

i have home work about the random number with gui. and i hope that you can help me doin this application. and thank you very much

-

Q1)

Write an application that generates random numbers. The application consists of one JFrame,

with two text fields (see the figures) and a button. When the user clicks on the button, the

program should generate a random number between the minimum and the maximum numbers

entered in the text fields. The font of the number should be in red, size 100, bold and italic.

Moreover, if the user clicks on the generated number (or around it), the color of the background

should be changed to another random color. The possible colors are red, green blue , black ,cyan

and gray.

Notes:

?#61472;The JFrame size is 40 by 200

?#61472;The text fields size is 10

this is a sample how should the programe look like.

http://img235.imageshack.us/img235/9680/outputgo3.jpg

Message was edited by:

jave_cool

[1039 byte] By [jave_coola] at [2007-11-27 5:16:31]
# 1
see java.util.Random
tjacobs01a at 2007-7-12 10:39:15 > top of Java-index,Desktop,Core GUI APIs...