 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Daniel Pitts Guest
|
Posted: Wed May 09, 2007 8:13 pm Post subject: Drag and Drop, but not really. |
|
|
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
|
Posted: Thu May 10, 2007 7:10 am Post subject: Re: Drag and Drop, but not really. |
|
|
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 |
|
 |
|
|
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
|
|