Win a copy of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

help drag and drop in JTabbedPane

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
You would be much easier to understand if you took that bucket off of your head. And that goes for the tiny ad too!
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic