Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

help drag and drop in JTabbedPane  RSS feed

 
Ro Ah
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When the tab has the focus, CTRL+TAB or the Arrow Keys toggle between the tabs.
 
Ro Ah
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!