-
Best practice for drag and drop shapes
I'm looking at creating a (simple) gui that allows users to highlight and drag connected shapes around a canvas - much like MS Visio or Rational Rose.
I'm fairly new to GUIs, but I would have thought that this was something that was fairly common. The only way I can see of doing it seems rather primitive, ie the Java 2D API using custom code for basically everything from drawing the shapes, to determining which shape should highlighted and moved.
Are there other ways of doing this? Is there a "best practice"?
Thanks,
Stephen.
-
Yes, its a common problem, and I think what you describe is the "best practice", if
you don't want to pay for some fancy software package. When you describe it, it
may look like a lot of coding, but it isn't.
eschew obfuscation
-
You're right - it wasn't much work.
I managed to get a "proof of concept" gui with movable boxes and connected lines up and running in well under a day.
Thanks,
Stephen.
Similar Threads
-
By Jim Pragit in forum .NET
Replies: 5
Last Post: 08-10-2005, 07:16 AM
-
By kalpana in forum Architecture and Design
Replies: 0
Last Post: 03-24-2003, 01:39 AM
-
Replies: 0
Last Post: 03-13-2002, 05:03 AM
-
Replies: 2
Last Post: 12-21-2001, 09:10 AM
-
By John C. Gunvaldson in forum Database
Replies: 4
Last Post: 10-19-2000, 12:37 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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks