Class JTextComponentUtilities
- java.lang.Object
-
- net.anwiba.commons.swing.utilities.JTextComponentUtilities
-
public class JTextComponentUtilities extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description JTextComponentUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidenableHyperlinks(javax.swing.JEditorPane area)static doublegetValueWidth(java.awt.Component component, java.lang.String value)static doublegetValueWidth(java.awt.Graphics graphics, java.lang.String value)static voidsetTextAndMoveToTop(javax.swing.text.JTextComponent textPane, java.lang.String text)static voidsetTextToDocument(javax.swing.text.PlainDocument document, java.lang.String text)
-
-
-
Method Detail
-
setTextAndMoveToTop
public static void setTextAndMoveToTop(javax.swing.text.JTextComponent textPane, java.lang.String text)
-
setTextToDocument
public static void setTextToDocument(javax.swing.text.PlainDocument document, java.lang.String text)
-
getValueWidth
public static double getValueWidth(java.awt.Component component, java.lang.String value)
-
getValueWidth
public static double getValueWidth(java.awt.Graphics graphics, java.lang.String value)
-
enableHyperlinks
public static void enableHyperlinks(javax.swing.JEditorPane area)
-
-