|
@@ -208,8 +208,9 @@ public class GUI implements CategoryListener {
|
|
|
|
|
|
tree.addMouseListener(new MouseAdapter() {
|
|
tree.addMouseListener(new MouseAdapter() {
|
|
public void mouseReleased(MouseEvent e) {
|
|
public void mouseReleased(MouseEvent e) {
|
|
- try {
|
|
|
|
|
|
+ try {//wenn ein bild "gedraged" wird
|
|
if (dragging) {
|
|
if (dragging) {
|
|
|
|
+ //neues Object
|
|
HolonObject h = new HolonObject((HolonObject)tempCps);
|
|
HolonObject h = new HolonObject((HolonObject)tempCps);
|
|
h.setPos((int) canvas.getMousePosition().getX(), (int) canvas.getMousePosition().getY());
|
|
h.setPos((int) canvas.getMousePosition().getX(), (int) canvas.getMousePosition().getY());
|
|
controller.addObject(h);
|
|
controller.addObject(h);
|
|
@@ -218,6 +219,7 @@ public class GUI implements CategoryListener {
|
|
}
|
|
}
|
|
} catch (Exception e2) {
|
|
} catch (Exception e2) {
|
|
}
|
|
}
|
|
|
|
+ //Cursor normalisieren
|
|
frmCyberPhysical.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
|
|
frmCyberPhysical.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
|
|
}
|
|
}
|
|
});
|
|
});
|