Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-17-2007, 04:32 PM
Member
 
Join Date: Jul 2007
Posts: 26
romina is on a distinguished road
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.
Thanks.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-07-2007, 06:27 AM
Member
 
Join Date: Jul 2007
Posts: 40
trill is on a distinguished road
Just found a good site with some example code...

Move Shape with mouse : Mouse : Event : Java examples (example source code) Organized by topic

Greetings.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT +3. The time now is 11:54 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org