Package com.jsql.view.swing.shadow
Class ShadowPopup
java.lang.Object
javax.swing.Popup
com.jsql.view.swing.shadow.ShadowPopup
Does all the magic for getting popups with drop shadows.
It adds the drop shadow border to the Popup,
in
#show
it snapshots the screen background as needed,
and in #hide
it cleans up all changes made before.- Version:
- $Revision: 1.12 $ see com.jgoodies.looks.common.ShadowPopupBorder see com.jgoodies.looks.common.ShadowPopupFactory
- Author:
- Karsten Lentzsch
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Popup
getInstance
(Component owner, Component contents, int x, int y, Popup delegate) Returns a previously usedShadowPopup
, or a new one if none of the popups have been recycled.void
hide()
Hides and disposes of thePopup
.void
show()
Makes thePopup
visible.
-
Constructor Details
-
ShadowPopup
public ShadowPopup()
-
-
Method Details
-
getInstance
Returns a previously usedShadowPopup
, or a new one if none of the popups have been recycled. -
hide
public void hide()Hides and disposes of thePopup
. Once aPopup
has been disposed you should no longer invoke methods on it. Adispose
dPopup
may be reclaimed and later used based on thePopupFactory
. As such, if you invoke methods on adisposed
Popup
, indeterminate behavior will result.In addition to the superclass behavior, we reset the stored horizontal and vertical drop shadows - if any.
-
show
public void show()Makes thePopup
visible. If the popup has a heavy-weight container, we try to snapshot the background. If thePopup
is currently visible, it remains visible.
-