Results 1 to 2 of 2
  1. #1
    Haraldjjones is offline Member
    Join Date
    Jan 2011
    Posts
    1
    Rep Power
    0

    Default Moving java shapes with mouse and buttons

    i have been working on a program for some time now. i have created shapes which can be customized in several ways: color, size etc.

    i also managed to configure two buttons which move the shapes from left to right.

    after writing some code which enabled the mouse to drag the shapes around the canvas the buttons no longer worked properly.

    i was wondering if anyone had any help to going around solving this problem?


    also one shape which was not a java.awt preset and i had to create using a polygon will not be dragged around at all while the others do.

    can anyone help me with this problem also?

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by Haraldjjones View Post
    after writing some code which enabled the mouse to drag the shapes around the canvas the buttons no longer worked properly.

    i was wondering if anyone had any help to going around solving this problem?
    Without code and explanation of code -- how?

Similar Threads

  1. randomly moving shapes
    By marlon in forum New To Java
    Replies: 3
    Last Post: 10-05-2012, 10:37 AM
  2. Mouse Buttons
    By xael in forum New To Java
    Replies: 1
    Last Post: 09-08-2010, 12:39 AM
  3. Help with mouse moving object and colisions
    By macwadu in forum AWT / Swing
    Replies: 12
    Last Post: 07-02-2010, 12:18 AM
  4. java shapes
    By Kyle227 in forum New To Java
    Replies: 7
    Last Post: 05-20-2010, 01:21 AM
  5. Replies: 2
    Last Post: 02-01-2010, 06:45 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
  •