AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Drag and Drop, but not really.

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java GUI Toolkits
View previous topic :: View next topic  
Author Message
Daniel Pitts
Guest





PostPosted: Wed May 09, 2007 8:13 pm    Post subject: Drag and Drop, but not really. Reply with quote



I have a card game. There is a CardView component (extends
JComponent), and a TableTopView component (extends JPanel), and a
HandView component (extends JLayeredPane). The HandView contains many
CardViews. I'd like to allow the user to drag a CardView from the
HandView onto the TableTopView.

Is the Drag and drop support in swing what I want to use? If so, the
DnD tutorial hasn't been to helpful to me, and suggestions where I
should *start*? If it isn't DnD I should use, does anyone have a
suggestion? I have a glass pane that can be used to draw the cards as
I drag them, if I have to all the heavy lifting myself.
Back to top
Andrew Thompson
Guest





PostPosted: Thu May 10, 2007 7:10 am    Post subject: Re: Drag and Drop, but not really. Reply with quote



Daniel Pitts wrote:
...
Quote:
Is the Drag and drop support in swing what I want to use?

What D'n'D support in Swing? When an app. requires
D'n'D, I would look to ..
<http://java.sun.com/javase/6/docs/api/java/awt/dnd/package-summary.html>

--
Andrew Thompson
http://www.athompson.info/andrew/

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-gui/200705/1
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java GUI Toolkits All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.