Search:

Type: Posts; User: copeg

Search: Search took 0.07 seconds.

  1. Replies
    6
    Views
    4,604

    Re: Moving content (graphics) inside a JPanel

    If you want to move everything, have a look at using AffineTransforms
    Transforming Shapes, Text, and Images (The Java™ Tutorials > 2D Graphics > Advanced Topics in Java2D)
    Have your MouseListeners...
  2. Replies
    6
    Views
    4,604

    Re: Moving content (graphics) inside a JPanel

    Change the x,y coordinates of the drawn object. There are hundreds of ways to implement this, and I'm still unclear if you want to move a single object or all of them at the same time, so I recommend...
  3. Replies
    6
    Views
    4,604

    Re: Moving content (graphics) inside a JPanel

    For listening to Mouse actions, see
    How to Write a Mouse Listener (The Java™ Tutorials > Creating a GUI With JFC/Swing > Writing Event Listeners)
    How to Write a Mouse-Motion Listener (The Java™...
Results 1 to 3 of 3