Simple drag and drop from library to stage.

This commit is contained in:
Jindra Petřík
2024-10-29 16:55:43 +01:00
parent fa4d5f7320
commit 3dd6e6fad8
7 changed files with 298 additions and 58 deletions
@@ -430,5 +430,11 @@ public class TimelineBodyPanel extends JPanel implements MouseListener, KeyListe
rect.y = depth * FRAME_HEIGHT;
return rect;
}
public void refresh() {
Dimension dim = new Dimension(FRAME_WIDTH * timeline.getFrameCount() + 1, FRAME_HEIGHT * (timeline.getMaxDepth() + 1));
setSize(dim);
setPreferredSize(dim);
}
}