Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / November 2007

Tip: Looking for answers? Try searching our database.

drag and drop in a JMenu/JMenuItem

Thread view: 
jonathan.markson@gmail.com - 15 Nov 2007 16:41 GMT
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 - 16 Nov 2007 23:44 GMT
> 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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.