D
Daniel Pitts
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.
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.