-
Bug
-
Resolution: Won't Fix
-
P4
-
None
-
1.3.0
-
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.
======================================================================