• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Enter # in JTextField, draw = # ovals, use JBottons to color ovals???

 
Douglas Braxton
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
all
i have an assignment that requires the user to enter a JTextField integer value.
that value is then used to draw an equal # of ovals.
after the ovals are drawn user selects a color button (red/blue) to fill the ovals already drawn based on the button color.
i have everything coded and working except the coloring.
i need help because i can't seem to figure out where or how to fill the ovals with the colors of the button pushed.
OvalDriver7b invokes OvalFrame7B invokes OvalPanel7B.
thanx
75gator



[ April 27, 2004: Message edited by: Douglas Braxton ]
[ April 27, 2004: Message edited by: Douglas Braxton ]
[ April 27, 2004: Message edited by: Douglas Braxton ]
[ April 27, 2004: Message edited by: Douglas Braxton ]
[ April 28, 2004: Message edited by: Douglas Braxton ]
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try this
 
Douglas Braxton
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks michael!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic