protected final void showProgress(String message) { myProgressMessage.setText(message); if (myProgressPanel.getParent() == null) { myGlassLayer.setEnabled(false); myProgressIcon.resume(); myLayeredPane.add(myProgressPanel, LAYER_PROGRESS); myLayeredPane.repaint(); } }
protected final void hideProgress() { myGlassLayer.setEnabled(true); myProgressIcon.suspend(); myLayeredPane.remove(myProgressPanel); }