drag and drop in a JMenu/JMenuItem  
Author Message
jonathan.markson





PostPosted: 2007-10-24 22:02:00 Top

java-programmer, drag and drop in a JMenu/JMenuItem
Can someone please point me to some sample code that allows drag and
drop in a JMenu/JMenuItem. I know that Java doesn't support dnd in
the menu stuff, but I need it anyway. Technically speaking it doesn't
have to be a popup menu, but would be nice, as long as it has the look
and feel of a popup menu (i.e. fonts, size, etc.). An example of what
I'm talking about, via menus, is the start menu under Windows. Those
menus allow you to do dnd, but of course it's Windows and they allow
anything and everything. Just to note I'm using JDK 1.5.x if that
helps for the code direction.

 
jonathan.markson





PostPosted: 2007-11-16 0:42:00 Top

java-programmer >> drag and drop in a JMenu/JMenuItem I posted this message before, but didn't get any response so I'm
reposting hoping for a response.

Can someone please point me to some sample code that allows drag and
drop in a JMenu/JMenuItem. I know that Java doesn't support dnd in
the menu stuff, but I need it anyway. Technically speaking it
doesn't
have to be a popup menu, but would be nice, as long as it has the
look
and feel of a popup menu (i.e. fonts, size, etc.). An example of
what
I'm talking about, via menus, is the start menu under Windows. Those
menus allow you to do dnd, but of course it's Windows and they allow
anything and everything. Just to note I'm using JDK 1.5.x if that
helps for the code direction.
 
RedGrittyBrick





PostPosted: 2007-11-17 7:44:00 Top

java-programmer >> drag and drop in a JMenu/JMenuItem email***@***.com wrote:
> I posted this message before, but didn't get any response

What do you think were the reasons for that?


> so I'm reposting hoping for a response.

http://www.catb.org/~esr/faqs/smart-questions.html#id272290


> I know that Java doesn't support dnd in the menu stuff, but I need it
> anyway.

I find that merely *needing* the nonexistent doesn't make it exist.
Unless my need drives me to *create* it of course.


> Technically speaking it doesn't have to be a popup menu, but would be
> nice, as long as it has the look and feel of a popup menu (i.e.
> fonts, size, etc.). An example of what I'm talking about, via menus,
> is the start menu under Windows. Those menus allow you to do dnd,
> but of course it's Windows and they allow anything and everything.

Try a JTree, they support drag-and-drop. They can be made to look
something like a menu.


> Just to note I'm using JDK 1.5.x if that helps for the code
> direction.

I'd download JDK 1.6 anyway.