• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Change Mouse Cursor with JTabbedPane

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Case:
-----
I have a JTabbedPane with many tabs
Need:
----
i want to change the mouse cursor when the mouse rollover the label of the tab
Problem:
-------
I want to know how to do that
Thanks,
 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If all you want is that all tabs have the same cursor you can do the following:
tabbedPane.setCursor(java.awt.Cursor);
Then for each Component that is added to the JTabbedPane you have to explicitly set the Cursor to default as in:
panel.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
Kyle
 
reply
    Bookmark Topic Watch Topic
  • New Topic