Package PamView
Class PamWaitAnimation
- All Implemented Interfaces:
ActionListener
,Serializable
,EventListener
This class, when enabled within a JLayer will grey out a JPanel and show a circular rotating animation. Use this to show a panel is disabled.
Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
- Author:
- Jamie Maculay and Oracle.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
actionPerformed
(ActionEvent arg0) void
boolean
void
paint
(Graphics g, JComponent c) void
start()
void
stop()
Methods inherited from class javax.swing.plaf.LayerUI
addPropertyChangeListener, addPropertyChangeListener, doLayout, eventDispatched, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, imageUpdate, installUI, paintImmediately, removePropertyChangeListener, removePropertyChangeListener, uninstallUI, updateUI
Methods inherited from class javax.swing.plaf.ComponentUI
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, update
-
Constructor Details
-
PamWaitAnimation
public PamWaitAnimation()
-
-
Method Details
-
paint
-
isRunning
public boolean isRunning() -
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
-
start
public void start() -
stop
public void stop() -
applyPropertyChange
- Overrides:
applyPropertyChange
in classLayerUI<JPanel>
-