public void runPageLoader()
    {
            SwingUtilities.invokeLater(new Thread()
            {	// Utility class to change the status in the AWT thread, then run the m_swingPageLoader.
            	public void run()
            	{
                    if (m_syncPage instanceof Task)
                    {
                        String strWaitMessage = WAIT_MESSAGE;
                        try {
                            strWaitMessage = ((Task)m_syncPage).getApplication().getResources(ThinResourceConstants.ERROR_RESOURCE, true).getString(strWaitMessage);
                        } catch (MissingResourceException ex) {
                        }
                        ((Task)m_syncPage).setStatusText(strWaitMessage, Constants.WAIT);
                    }
                    else if (m_syncPage instanceof JBasePanel)
                    {
                        if (((JBasePanel)m_syncPage).getBaseApplet() != null)
                        {
                            String strWaitMessage = WAIT_MESSAGE;
                            try {
                                strWaitMessage = (((JBasePanel)m_syncPage).getBaseApplet()).getApplication().getResources(ThinResourceConstants.ERROR_RESOURCE, true).getString(strWaitMessage);
                            } catch (MissingResourceException ex) {
                            }
                            ((JBasePanel)m_syncPage).getBaseApplet().setStatusText(strWaitMessage, Constants.WAIT);
                        }
                    }
                    Cursor waitCursor = Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR);
                    if (m_syncPage instanceof Component)
                    {
                    	((Component)m_syncPage).setCursor(waitCursor);
                        ((Component)m_syncPage).repaint();	// Queue a repaint
                    }
                    
                    if (m_swingPageLoader != null)
                    	m_swingPageLoader.run();
            		
                    if (m_syncPage instanceof Component)
                        ((Component)m_syncPage).repaint();                    
            	}
            });
    }
public void runPageLoader ( ) { SwingUtilities . invokeLater ( new Thread ( ) { public void run ( ) { if ( m_syncPage instanceof Task ) { String strWaitMessage = WAIT_MESSAGE ; try { strWaitMessage = ( ( Task ) m_syncPage ) . getApplication ( ) . getResources ( ThinResourceConstants . ERROR_RESOURCE , true ) . getString ( strWaitMessage ) ; } catch ( MissingResourceException ex ) { } ( ( Task ) m_syncPage ) . setStatusText ( strWaitMessage , Constants . WAIT ) ; } else if ( m_syncPage instanceof JBasePanel ) { if ( ( ( JBasePanel ) m_syncPage ) . getBaseApplet ( ) != null ) { String strWaitMessage = WAIT_MESSAGE ; try { strWaitMessage = ( ( ( JBasePanel ) m_syncPage ) . getBaseApplet ( ) ) . getApplication ( ) . getResources ( ThinResourceConstants . ERROR_RESOURCE , true ) . getString ( strWaitMessage ) ; } catch ( MissingResourceException ex ) { } ( ( JBasePanel ) m_syncPage ) . getBaseApplet ( ) . setStatusText ( strWaitMessage , Constants . WAIT ) ; } } Cursor waitCursor = Cursor . getPredefinedCursor ( Cursor . WAIT_CURSOR ) ; if ( m_syncPage instanceof Component ) { ( ( Component ) m_syncPage ) . setCursor ( waitCursor ) ; ( ( Component ) m_syncPage ) . repaint ( ) ; } if ( m_swingPageLoader != null ) m_swingPageLoader . run ( ) ; if ( m_syncPage instanceof Component ) ( ( Component ) m_syncPage ) . repaint ( ) ; } } ) ; }
Invoke the page loader that was passed into the constructor.
If you override this, remember to invoke your code in the awt thread.