The moose likes Swing / AWT / SWT and the fly likes  help drag and drop in JTabbedPane Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark " help drag and drop in JTabbedPane " Watch " help drag and drop in JTabbedPane " New topic
Author

help drag and drop in JTabbedPane

Ro Ah
Greenhorn

Joined: Aug 14, 2007
Posts: 15
Hello, this is my problem
JTabbedPane, Can we change the event that cause tab switching

Facts about it:
1-I am working on a program that allows the user to drag and drop between swing controls ex: (TextField, JList ...).
2- To switch between tabs in JTabbedPane user has to click on the tab.

The problem is how to allow the user to do this if the user wants to drag some thing from the first tab and drop it on a component in the second tab

I was trying to change the event that cause the tabs to change from mouse click to mouseEntered or something like this but I till now I couldn�t find how

Thanks
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 8430

When the tab has the focus, CTRL+TAB or the Arrow Keys toggle between the tabs.


[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
Ro Ah
Greenhorn

Joined: Aug 14, 2007
Posts: 15
The problem is the a tab get focus when user click on tab name
once user clicks the dragged data is lost

so, i want to know if there is any way that makes tab get focus
on event like MouseEnter

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: help drag and drop in JTabbedPane
 
Similar Threads
How to make browser remember in-page navigation history?
Setting tab on JTabbedPane that exists already
Change Mouse Cursor with JTabbedPane
Rearrange Tabs via Drag and Drop
Dragging between tabs