Q
quelcher
I have a simple JTable on my app. When new data is loaded into the
app, I turn the cursor into a wait cursor while the data loads in a
separate thread. Once complete the cursor returns to normal.
However, if the mouse cursor happens to be on the JTable's header
while the cursor is in the 'wait' mode, it appears to get stuck in
that mode. If I move the cursor off the header it returns to normal,
but then if I put it back on the header it returns to a wait cursor.
Almost as if that section of the screen still thinks it's in wait
mode. This behavior only occurs when the mouse is on the header while
the cursor is changed. If it's anywhere else in the app, the cursor
works fine on all areas of the screen after it returns to default.
I've tried this on both Windows and Linux machines with the same
effect. I'm using Java 1.5.0_04. I'm using the app's Frame when
switching the cursor back and forth.
appFrame.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
...// load data
appFrame.setCursor(Cursor.getDefaultCursor());
Nothing special about the JTable. Even turned off my
JTableHeaderRenderer and am using the default, to no effect.
Anyone have any clue what's going on?
Thanks,
Dennis
app, I turn the cursor into a wait cursor while the data loads in a
separate thread. Once complete the cursor returns to normal.
However, if the mouse cursor happens to be on the JTable's header
while the cursor is in the 'wait' mode, it appears to get stuck in
that mode. If I move the cursor off the header it returns to normal,
but then if I put it back on the header it returns to a wait cursor.
Almost as if that section of the screen still thinks it's in wait
mode. This behavior only occurs when the mouse is on the header while
the cursor is changed. If it's anywhere else in the app, the cursor
works fine on all areas of the screen after it returns to default.
I've tried this on both Windows and Linux machines with the same
effect. I'm using Java 1.5.0_04. I'm using the app's Frame when
switching the cursor back and forth.
appFrame.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
...// load data
appFrame.setCursor(Cursor.getDefaultCursor());
Nothing special about the JTable. Even turned off my
JTableHeaderRenderer and am using the default, to no effect.
Anyone have any clue what's going on?
Thanks,
Dennis