• Post Reply Bookmark Topic Watch Topic
  • New Topic

Cursor change in TabbedPane

 
Sean O'Donnell
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings all-
My dilemma... I have a JTabbedPane (actually a JideTabbedPane) and would like to change the cursor when a tab is selected and the I/O Reader is loading the contents to be displayed on that tab component. I DO know how to change cursors, I'm just not sure where to do it in this case.

Thanks.
-Sean
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know what a JideTabbedpane is, but assuming it's similar to a JTabbedPane,
these would probably be the steps:

changeListener() to listen for tab selection change

in changeListener()
a) change cursor to hourGlass
b) start new thread for 'I/O Reader'

in the thread, any update of gui is done via SwingUtilities.invokeLater(),
and, just prior to the thread terminating, SwingUtilities to change the cursor back
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!