For Programmers: Free Programming Magazines  


Home > Archive > Java Help > March 2006 > Creating and moving boxes









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Creating and moving boxes
odwrotnie

2006-03-26, 7:03 pm

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

2006-03-28, 7:04 pm

> 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

2006-03-28, 7:04 pm

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

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com