Hi.
I seem to have a problem getting the Cursor to shift in certain situations. My application consists of a JFrame with multiple JInternalFrames in it. When pressing a menu item in the JFrame, selecting from choices or changing tab it works fine (mostly) but when pushing buttons inside an internal frame nothing happens. I use this code:
try
{
// Get the MDI Frame (JFrame) and set wait cursor for it.
Global.getMainFrame().setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
// Perform any kind of time consuming task
strSEPID = _wflDetail.saveSEP(strPrevTABProId, strSEPID, arrChangedRec);
}
finally
{
// Change the cursor back to default cursor for the JFrame
Global.getMainFrame().setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
}
It's nothing wrong with always setting the cursor to the JFrame, is it? You do not have to set it to the internal frame, do you?
Thanks in advance!
/ Henrik
Ps. I have yet not received any answers for my previous question: "invoke later on focus event". Would be happy for suggestions. Ds.
Henrik Johansson
IT Consultant
Pro:Con Sweden
Kyrkogatan 21
S-302 42 HALMSTAD
phone +46 35 16 14 00
direct +46 35 16 14 08
fax +46 35 16 14 14
[EMAIL PROTECTED]
http://www.procon.dk
