View Single Post
  #1  
Old 03-21-2011, 04:12 PM
Java Java is offline
Senior Member
 
Join Date: Jun 2009
Posts: 8,402
Default geting value from paintComponent

hey, i have got a class that extends JPanel called viewPanel and in there, there is paint method. in the paint method there is a oval point drawn on it. the coordinates x and y for the point are generated by using math.random so when the program executes the point is randomly placed on the screen...
__________________
Java
domain name forum
Reply With Quote