Class JTextComponentUtilities


  • public class JTextComponentUtilities
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void enableHyperlinks​(javax.swing.JEditorPane area)  
      static double getValueWidth​(java.awt.Component component, java.lang.String value)  
      static double getValueWidth​(java.awt.Graphics graphics, java.lang.String value)  
      static void setTextAndMoveToTop​(javax.swing.text.JTextComponent textPane, java.lang.String text)  
      static void setTextToDocument​(javax.swing.text.PlainDocument document, java.lang.String text)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JTextComponentUtilities

        public JTextComponentUtilities()
    • 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)