I'm making a Drag and Drop map maker. I've got the drag and drop working for the terrain, you drag and drop little icons into the squares. I've also tried to have it so that you can drag and drop items onto the terrains, but instead of going over the terrains, they overwrite them. I'm using JLabels
for this. I'm sorry that I can't provide a source code because I'm on someone elses computer in a different country on holiday.
Asked
Active
Viewed 94 times
-1

Dave Clemmer
- 3,741
- 12
- 49
- 72

Russell
- 795
- 11
- 18
-
3The source would help us figure out what you're doing wrong. :( Regardless -- enjoy your holiday! – Hovercraft Full Of Eels Dec 18 '11 at 13:29
2 Answers
1
why dont you use panels instead (of labels) and drag labels into it for each image? So create a label per image.

Sid Malani
- 2,078
- 1
- 13
- 13
0
JLabel outsideLabel = new JLabel("Hello");
JLabel insideLabel = new JLabel("World");
outsideLabel.add(insideLabel);
thank you coobird (user) JLabel on top of another JLabel