Package com.j3d.ui
Class SafeJLabel
java.lang.Object
com.j3d.ui.SafeJLabel
A SafeJLabel is just a wrapper around 2 or soon more labels which when calling setText calls
SwingUtilities.invokeLater(Runnable)- Author:
- Lehlogonolo Poole
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Stringstatic final intprivate TimeoutWorkerprivate final JLabelprivate final JLabelprivate TimeoutWorker -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddTimeoutWorker(boolean higher, Runnable runnable, int seconds) voidclear()voidvoidvoidvoidvoidrepaint()voidvoidvoidvoidvoidvoidsetTextWithSeconds(String text, int seconds, Object... emphasize)
-
Field Details
-
label
-
label2
-
higher
-
lower
-
ERROR_SECONDS
public static final int ERROR_SECONDS- See Also:
-
EMPH
-
-
Constructor Details
-
SafeJLabel
-
-
Method Details
-
addTimeoutWorker
-
setText
-
setText
-
setLower
-
setLower
-
error
-
error
-
setText
-
setTextWithSeconds
-
clearLower
public void clearLower() -
clearHigher
public void clearHigher() -
clear
public void clear() -
repaint
public void repaint()
-