bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug swing/24340] New: TableHeaders not painting properly


From: abalkiss at redhat dot com
Subject: [Bug swing/24340] New: TableHeaders not painting properly
Date: 12 Oct 2005 20:39:08 -0000

The testcase below shows that TableHeaders are not being painted properly.

***TESTCASE***
import java.awt.*;
import javax.swing.*;

class TableHeaderTest
{
  public static void main(String args[])
  {
    JFrame jf = new JFrame();
    JTable table;
    JScrollPane scrollPane;

    // Create columns names
    String columnNames[] = { "Column 1", "Column 2", "Column 3" };
    // Create some data
    String dataValues[][] =
      {
        { "12", "234", "67" },
        { "-123", "43", "853" },
        { "93", "89.2", "109" },
        { "279", "9033", "3092" }
      };

    // Create a new table instance
    table = new JTable( dataValues, columnNames );

    // Add the table to a scrolling pane
    scrollPane = new JScrollPane( table );
    jf.add( scrollPane, BorderLayout.CENTER );
    jf.setSize( 300, 200 );    
    jf.show();
  }
}


-- 
           Summary: TableHeaders not painting properly
           Product: classpath
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: swing
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: abalkiss at redhat dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24340





reply via email to

[Prev in Thread] Current Thread [Next in Thread]