Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Drag and Drop, but not really.

Reply
Thread Tools

Drag and Drop, but not really.

 
 
Daniel Pitts
Guest
Posts: n/a
 
      05-09-2007
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
It does not work to drag a web user control into a web page Tony Johansson ASP .Net 0 05-16-2011 10:52 AM
Re: "But..but...but...I can see Russia from my porch!" mrLookout@sewage.com Computer Support 0 04-15-2010 12:02 AM
2.0 allows drag and drop for Crystal report but not 3.5, so how to JB ASP .Net 0 04-06-2010 12:01 AM
Can not drag controls onto the design view of a page AAaron123 ASP .Net 1 01-11-2009 09:26 PM
drag and drop picture not being sent in TB email - version 2.0.0.12(20080213) bob from oz Firefox 2 05-31-2008 05:25 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57