Results 1 to 3 of 3
  1. #1
    romina is offline Member
    Join Date
    Jul 2007
    Rep Power

    Default Help with Move Shape

    I have been able to create simple forms that can accept and store user entered data, as well as perform multiple actions through the use of buttons. No Problem.

    Next I would like to work with drawing shapes and giving the user the ability to interact with them. This is where I’ve hit a wall.

    This is probably very simple just not sure where to start (aside from “googling”). Basically all I am trying to do is:
    • Have a window pop-up with a rectangle in it.
    • Allow the user to move that rectangle anywhere within that window.

    I have been searching the net but all the examples seem to go way above and beyond what I am after…
    Just looking for something to get the ball rolling.
    Can someone point me to some simple tutorials that perform the above, or provide some code?

    Currently researching different packages that may be useful/required.

  2. #2
    trill is offline Member
    Join Date
    Jul 2007
    Rep Power

  3. #3
    BeijingDuck is offline Member
    Join Date
    Nov 2010
    Rep Power

    Question the use of method translate()

    It that the best solution to drag the shape to move? Why it doesn't use the method translate to achieve that? Wouldn't that be easier?

Similar Threads

  1. implementing shape
    By sidkdbl07 in forum Java 2D
    Replies: 1
    Last Post: 01-12-2008, 07:42 PM
  2. weird looking shape JButton is it possible?
    By unhurt in forum AWT / Swing
    Replies: 8
    Last Post: 11-03-2007, 10:10 AM
  3. tool to create shape frame
    By boy22 in forum AWT / Swing
    Replies: 1
    Last Post: 08-05-2007, 05:10 AM
  4. How to Move a File to Another Directory
    By Ada in forum New To Java
    Replies: 1
    Last Post: 05-26-2007, 02:17 PM
  5. How to change shape of JButton
    By FaRuK in forum AWT / Swing
    Replies: 1
    Last Post: 05-19-2007, 01:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts