File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Help showing drawing items Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

Help showing drawing items

Jeff Ciaccio
Greenhorn

Joined: Nov 26, 2008
Posts: 25
Hi all,

I am trying to show a rectangle "flying" across a panel, but it just sits there Any suggestions?



and here is MyPanel:


Jeff Ciaccio, Java novice <br />Physics and AP Physics Teacher<br />Sprayberry High School <br />Marietta, GA
Larry Frissell
Ranch Hand

Joined: May 16, 2008
Posts: 82
    
    2
The MyPanel should work as written, the box will move if the X and Y are incremented. So I would suggest inserting a print line statement in the setCurrentX, and setCurrentY to see what is happening. For example:
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37900
    
  22
You have had a similar post on the Swing forum, where I think we should continue the discussion. Please don't ask the same question twice.

Closing thread.
 
wood burning stoves
 
subject: Help showing drawing items
 
Similar Threads
Keylisteners and AppletViewer
Help showing drawing items
slowing down movement in an applet.... doesn't have anything to do with the applet.
for loop in paint method........
Errors when I get to run()