Creating and moving boxes  
Author Message
odwrotnie





PostPosted: 2006-3-27 3:42:00 Top

java-programmer, Creating and moving boxes Hi,

I need help with creating GUI for application that can draw boxes and
links between them, write into boxes, resizing boxes... Something similar
to Poseidon (UML modeling engine).

Have you got any clues for me? Do I have to write it from scratch - "if
mouse is clicked over the box than select that box and than if it moves
move this box", "if mouse is over the edge and it is moving then resize",
etc.? Are there any libraries that can help me with that?

Thanks for any links and help.

--
Best regards,
Odwrotnie.
 
Andrey Kuznetsov





PostPosted: 2006-3-28 18:57:00 Top

java-programmer >> Creating and moving boxes > I need help with creating GUI for application that can draw boxes and
> links between them, write into boxes, resizing boxes... Something similar
> to Poseidon (UML modeling engine).
>
> Have you got any clues for me? Do I have to write it from scratch - "if
> mouse is clicked over the box than select that box and than if it moves
> move this box", "if mouse is over the edge and it is moving then resize",
> etc.? Are there any libraries that can help me with that?

JGui contains easy to use handlers for dragging and resizing.

see http://jgui.imagero.com/examples/DragAndResize/ (don't worry about
expired signature:)

Andrey

--
http://uio.imagero.com Unified I/O for Java
http://reader.imagero.com Java image reader
http://jgui.imagero.com Java GUI components and utilities


 
Paul Hamaker





PostPosted: 2006-3-28 21:30:00 Top

java-programmer >> Creating and moving boxes If you're using Eclipse, you can plugin VE to ease the GUI-building.
http://www.eclipse.org/vep/
--------------------
Paul Hamaker, SEMM, teaching ICT since 1987
http://javalessons.com