Results 1 to 4 of 4
- 06-07-2007, 05:22 PM #1
Member
- Join Date
- May 2007
- Posts
- 8
- Rep Power
- 0
- 06-07-2007, 05:23 PM #2levent Guest
As described in the Drag and Drop tutorial, you should replace the default transfer handler of the component.
See: Introduction to Drag and Drop and Data Transfer (The Java™ Tutorials > Creating a GUI with JFC/Swing > Drag and Drop and Data Transfer) for an example.
- 06-07-2007, 05:24 PM #3
Member
- Join Date
- May 2007
- Posts
- 8
- Rep Power
- 0
Yes, I know it. I replaced the default transferhandler with my own. I have two JLists, I need to disable the drop component in the first JList and the the drag component in the second one, so I can only drag items from the first list to the second one, and not the other way around. Is it possible?
- 06-07-2007, 05:52 PM #4levent Guest
Of course it is... if you had read the tutorial you wouldn't ask for it, but here are useful links:
http://java.sun.com/j2se/1.4.2/docs/...abled(boolean)
http://java.sun.com/j2se/1.4.2/docs/...ansferHandler)
I hope it will make sense now,
Similar Threads
-
Disable Radio button
By AJG in forum New To JavaReplies: 3Last Post: 05-10-2011, 11:09 AM -
How to use a drop-down box in Struts
By piterskiy74 in forum Web FrameworksReplies: 1Last Post: 02-13-2008, 11:42 AM -
Drag and drop
By abhivenugopal in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 01-30-2008, 02:10 PM -
disable parent window
By ismailsaleh in forum AWT / SwingReplies: 1Last Post: 01-07-2008, 11:15 PM -
Disable BACK and CANCEL buttons in wizard
By consutes in forum SWT / JFaceReplies: 2Last Post: 11-12-2007, 09:37 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks