Swing JTable.getAutoResizeMode() fails with JDK-1.2beta4-G on Solaris

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P3
    • None
    • Affects Version/s: 1.2.0
    • Component/s: client-libs

      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.


            Assignee:
            Eric Rapin (Inactive)
            Reporter:
            Nancy Schorr (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: