-
Bug
-
Resolution: Not an Issue
-
P3
-
None
-
1.2.0
-
sparc
-
solaris_2.6
Swing JTable.getAutoResizeMode() fails with JDK-1.2beta4-G on Solaris 2.6. The code works fine with JDK1.1.6 and swing-1.0.2.
Steps to Reproduce:
0) Run the code below with JDK-1.2beta4-G on Solaris 2.6.
1) Look in the console.
RESULT: The code works fine with JDK1.1.6 and swing-1.0.2, and fails with JDK-1.2beta4-G.
import java.awt.*;
import java.awt.event.*;
import java.awt.swing.*;
import java.awt.swing.table.*;
// import com.sun.java.swing.*;
// import com.sun.java.swing.table.*;
public class table9 {
public table9() {
JTable c = new JTable(); //step Create JTable object
TableColumn tc = new TableColumn();
Object id = new Object();
c.addColumn(tc);
if ( c.getAutoResizeMode()==JTable.AUTO_RESIZE_ALL_COLUMNS )
System.out.println( "OKAY getAutoResizeMode" );
else System.out.println( "failed getAutoResizeMode" );
}
public static void main(String args[]) { new table9(); }
}
This tests is from a failed result from the Swing Automated JCK test JTable3014 addColumn tests.
Steps to Reproduce:
0) Run the code below with JDK-1.2beta4-G on Solaris 2.6.
1) Look in the console.
RESULT: The code works fine with JDK1.1.6 and swing-1.0.2, and fails with JDK-1.2beta4-G.
import java.awt.*;
import java.awt.event.*;
import java.awt.swing.*;
import java.awt.swing.table.*;
// import com.sun.java.swing.*;
// import com.sun.java.swing.table.*;
public class table9 {
public table9() {
JTable c = new JTable(); //step Create JTable object
TableColumn tc = new TableColumn();
Object id = new Object();
c.addColumn(tc);
if ( c.getAutoResizeMode()==JTable.AUTO_RESIZE_ALL_COLUMNS )
System.out.println( "OKAY getAutoResizeMode" );
else System.out.println( "failed getAutoResizeMode" );
}
public static void main(String args[]) { new table9(); }
}
This tests is from a failed result from the Swing Automated JCK test JTable3014 addColumn tests.