tags:

views:

92

answers:

1

Is there any framework or lib out there to create a Java swing menue that can be edited by the user via drag and drop?

Added: Implementing a polished solution myself can take a lot of time. What i would like to see: display the entry while dragging, opening submenus automaticially, showing a line where the item would be placed when releasing the mouse. Actually like the windows startmenu in XP. This would take a lot of time, i am still hoping to find framework or a subclassed Jmenu with these features.

+1  A: 

You can implement drag and drop on most (all?) Swing components. See this tutorial to get started.

Update: based on your updated question. have a look at JFrameBuilder (note that its not free).

JFrameBuilder is an easy-to-use visual Java GUI builder.

JFrameBuilder provides the application GUI solution for Java developers. It enables Java developers to create sophisticated Swing GUI applications using drag-and-drop interface without spending a lot of time writing code.

Personally I find it a lot simpler to write pretty UIs in SWT (the toolkit used by Eclipse), it has more access to the underlying OS and provides a richer experience that's closer to what you're after in my opinion. Here's a guide to implementing drag and drop in SWT.

Rich Seller