Im doing a personal project on UML class diagram tool in java and running in a few design/programming issues.
The very first thing is the class diagram boxes. I'm thinking if I build my own component to represent it but when it is drawn on a panel, it will be awkward to move around with mouse. Because all the layout managers in java wont let me put the box anywhere freely.
Or if I choose to draw my component as a rectangle box on the panel then it will be the simplest to implement but I can't move it around with mouse.
Any hint or pointer in how should I go on about this?
The Component Mover class can help you out with dragging components.
Also consider JGraph
, which serves as a foundation for several diagramming tools.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With