Class UiUtil


  • public class UiUtil
    extends java.lang.Object
    A utility class used to manage UI element
    • Constructor Summary

      Constructors 
      Constructor Description
      UiUtil()  
    • Method Summary

      Modifier and Type Method Description
      static void fitTableColumns​(javax.swing.JTable myTable)
      change the width of JTable to show all the columns
      static void fitTableColumns​(javax.swing.JTable myTable, int defaultwidth)  
      • Methods inherited from class java.lang.Object

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

      • UiUtil

        public UiUtil()
    • Method Detail

      • fitTableColumns

        public static void fitTableColumns​(javax.swing.JTable myTable)
        change the width of JTable to show all the columns
        Parameters:
        myTable - the JTable element
      • fitTableColumns

        public static void fitTableColumns​(javax.swing.JTable myTable,
                                           int defaultwidth)