This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with paint method.

 
Giri Regu
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i am developing a paint application .in that i draw lines and i can move it . the problem is when i am moving a line then the paint method called and draw all the lines once again. but the lines is not showed properly
here i attached java file.
plese take a look with my coding.
give me a solution
(i am using jdk1.1.8)
thanks in advance.
regards
Giri


[ March 14, 2007: Message edited by: Ulf Dittmer ]
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but the lines is not showed properly

What does this mean? What exactly happens, and what do you want to happen?

Also, I have added code tags around the code, which make it much easier to read because the formatting is kept intact. Please do that next time you post code of any length.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic