Resizable, movable and draggable rectangle widget?

  • Follow


Hi,

Can anybody tell me where I can find an easy-to-integrate Java2D
rectangular component with draggable handles for resizing at its edges
and which can be moved around on a JPanel?
Uh, free stuff only please.

Thanks.

F.

0
Reply fahruz (3) 12/15/2004 7:56:23 AM

> Can anybody tell me where I can find an easy-to-integrate Java2D
> rectangular component with draggable handles for resizing at its edges
> and which can be moved around on a JPanel?

JGUI contains ready to use handler for creating such components.
you take some component for example JPanel add Border to it,
then you add DragHandler and ResizeHandler (both are MouseInputListener).

"Snap to grid" and "magnetic" components also supported.

more info at 
http://jgui.imagero.com/doc/com/imagero/gui/flowin/util/package-summary.html
download jgui at http://jgui.imagero.com/download/

> Uh, free stuff only please.
you can use JGUI under GPL or buy  commercial license.

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


0
Reply Andrei 12/19/2004 10:27:37 AM


>> Can anybody tell me where I can find an easy-to-integrate Java2D
>> rectangular component with draggable handles for resizing at its edges
>> and which can be moved around on a JPanel?
>
> JGUI contains ready to use handler for creating such components.

you can find example (with source code) here 
http://jgui.imagero.com/examples/DragAndResize/

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


0
Reply Andrei 12/20/2004 2:30:51 AM

Thanks! Looks nice. I have also found some pretty nifty library named
jgraph (www.jgraph.com) which you probably know.

> >> Can anybody tell me where I can find an easy-to-integrate Java2D
> >> rectangular component with draggable handles for resizing at its
edges
> >> and which can be moved around on a JPanel?
> >
> > JGUI contains ready to use handler for creating such components.
>
> you can find example (with source code) here
> http://jgui.imagero.com/examples/DragAndResize/
>
> --
> Andrei Kouznetsov
> http://uio.dev.java.net Unified I/O for Java
> http://reader.imagero.com Java image reader
> http://jgui.imagero.com Java GUI components and utilities

0
Reply fahruz 12/20/2004 3:01:08 AM

3 Replies
580 Views

(page loaded in 0.262 seconds)

Similiar Articles:





7/22/2012 5:26:24 PM


Reply: