Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / December 2005

Tip: Looking for answers? Try searching our database.

GUI Advice

Thread view: 
Mike C. - 11 Dec 2005 08:11 GMT
Hi,

I'm wanting to create a GUI for editing the birth line of families, ala
ERWin style, where you have icons of people. You can drag drag the
people around and drag/drawing lines from one person to another creates
relationships, and right clicking on the person gives you editing
options, etc... Also perhaps double clicking on a person reveals/coceals
 all the people/offstringunder him.

I'm not too sure about how to approach this. What's the best way to get
the draggable behaviour? Should I create a Person class that extends a
JComponent? Are there any tutorials for this sort of thing out there? (I
tried Google but all it found was Drag and Drop data transfer tutorials
between Java and other apps).

Any pointers much appreciated. Cheers,

Mike
Andrew Thompson - 11 Dec 2005 09:09 GMT
> ...(I
> tried Google but all it found was Drag and Drop data transfer tutorials
> between Java and other apps).

The principles of D'n'D between apps. and within a single app.
are the same.  The reason tutorials concentrate on 'between apps.'
is probably to prove the Objects originated in the first app.,
before being dragged to the second.

I doubt you will find a more specific tutorial on D'n'D than
an inter-app. example.  Once you get your feet wet with a
single D'n'D app. (which can seem quite daunting at first)
D'n'D will cease to be as mysterious, and it should become
clear how to change the example app. to suite your needs
(it often comes down to making a single component responsible
for both drags and drops).

HTH

Signature

Andrew Thompson
physci, javasaver, 1point1c, lensescapes - athompson.info/andrew



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.