Slide Out Panel

J

Jason Cavett

I was wondering if anybody had any experience with a slide out panel
in Java. I've searched around on the web but haven't had much luck.
I'm looking to create a panel that holds a series of components that I
can drag and drop onto another panel. It's similar in functionality
to the slide out panels found when building GUIs using MS Visual
Studio.

Thanks
 
S

Stefan Ram

Jason Cavett said:
I'm looking to create a panel that holds a series of components that I
can drag and drop onto another panel. It's similar in functionality

One might listen for mouse events with in custom JComponent,
and your components are rectangular images. When the mouse
button goes down over an image¹, mouse movement events change
the model (position of this image) and trigger a repaint,
until the mouse button is released. The components are drawn
in Z (depth) order.

(I never actually wrote something like this, so it might be
totally wrong.)

1) The details for overlapping images are left to the reader.
 
S

Stefan Ram

Supersedes: <[email protected]>

Jason Cavett said:
I'm looking to create a panel that holds a series of components that I
can drag and drop onto another panel. It's similar in functionality

One might listen for mouse events within a custom JComponent,
and your components are rectangular images. When the mouse
button goes down over an image¹, mouse movement events change
the model (position of this image) and trigger a repaint,
until the mouse button is released. The components are drawn
in Z (depth) order.

(I never actually wrote something like this, so it might be
totally wrong.)

1) The details for overlapping images are left to the reader.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top