private void showNormalCursor () { if (contentPane == null) return ; if (SwingUtilities.isEventDispatchThread ()) { contentPane.setCursor (null); } else { SwingUtilities.invokeLater (new CursorR (contentPane, null)); } }
private void showWaitCursor () { if (getRootPane () == null) return ; contentPane = getRootPane ().getContentPane (); if (SwingUtilities.isEventDispatchThread ()) { contentPane.setCursor (Utilities.createProgressCursor (contentPane)); } else { SwingUtilities.invokeLater (new CursorR (contentPane,Utilities.createProgressCursor (contentPane))); } }
private void showWaitCursor () { if (getRootPane () == null) return ; contentPane = getRootPane ().getContentPane (); if (SwingUtilities.isEventDispatchThread ()) { contentPane.setCursor (Utilities.createProgressCursor (contentPane)); } else { SwingUtilities.invokeLater (new CursorR (contentPane,Utilities.createProgressCursor (contentPane))); } }
private void showNormalCursor () { if (contentPane == null) return ; if (SwingUtilities.isEventDispatchThread ()) { contentPane.setCursor (null); } else { SwingUtilities.invokeLater (new CursorR (contentPane, null)); } }
private void showWaitCursor (boolean show) { JRootPane rPane = getRootPane(); if (rPane == null) { return; } if (SwingUtilities.isEventDispatchThread()) { doShowWaitCursor(rPane.getGlassPane(), show); } else { SwingUtilities.invokeLater(new CursorR(rPane.getGlassPane(), show)); } }