Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4243926

The JTable.reshape() method behavior was changed.

XMLWordPrintable

    • sparc
    • solaris_2.5.1



      Name: aaC67449 Date: 06/04/99



      The reshape() method was removed from the JTable class in JDK-1.3D, so it behavior was changed. It does not reshape columns now to fit them in new size.
      See example:

      ----------------- example -----------
      import javax.swing.*;

      public class Test {
       
         public static void main(String argv[]) {
             JTable table = new JTable(10,10);
             table.reshape(0, 0, 100,100);
             System.out.println("newColumnSize="+table.getColumnModel().getColumn(0).getWidth());
        }
       
      }
      -------------- jdk1.2.2 output -----------
      newColumnSize=15
      -------------- jdk1.3 output -----------
      newColumnSize=75

      Thus, this method should be restored.

      ======================================================================

            pmilnesunw Philip Milne (Inactive)
            alisunw Ali Ali (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: