public class SwingUtils extends Object
Constructor and Description |
---|
SwingUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
fadeIn(JDialog dialog)
Creates an animation to fade the dialog opacity from 0 to 1.
|
static void |
fadeIn(JDialog dialog,
int delay,
float incrementSize)
Creates an animation to fade the dialog opacity from 0 to 1.
|
static void |
fadeInAndOut(JDialog dialog)
Creates an animation to fade the dialog opacity from 0 to 1, wait at 1
and then fade to 0.
|
static void |
fadeInAndOut(JDialog dialog,
int delay,
float incrementSize,
int displayTime)
Creates an animation to fade the dialog opacity from 0 to 1, wait at 1
and then fade to 0 and dispose.
|
static void |
fadeOut(JDialog dialog)
Creates an animation to fade the dialog opacity from 1 to 0.
|
static void |
fadeOut(JDialog dialog,
int delay,
float incrementSize)
Creates an animation to fade the dialog opacity from 1 to 0, and then
dispose.
|
public static void fadeIn(JDialog dialog)
dialog
- the dialog to fade inpublic static void fadeIn(JDialog dialog, int delay, float incrementSize)
dialog
- the dialog to fade indelay
- the delay in ms before starting and between each changeincrementSize
- the increment sizepublic static void fadeOut(JDialog dialog)
dialog
- the dialog to fade outpublic static void fadeOut(JDialog dialog, int delay, float incrementSize)
dialog
- the dialog to fade outdelay
- the delay in ms before starting and between each changeincrementSize
- the increment sizepublic static void fadeInAndOut(JDialog dialog)
dialog
- the dialog to displaypublic static void fadeInAndOut(JDialog dialog, int delay, float incrementSize, int displayTime)
dialog
- the dialog to displaydelay
- the delay in ms before starting and between each changeincrementSize
- the increment sizedisplayTime
- the time in ms the dialog is fully visibleCopyright © 2016. All rights reserved.