File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Change Mouse Cursor with JTabbedPane

 
Mohamed Abd El Wahab
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • 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,
 
kyle amburn
Ranch Hand
Posts: 64
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic