Package org.jdesktop.swingx

Examples of org.jdesktop.swingx.JXTable.packColumn()


    JXTable table = section.addTable( operationsTableModel );
    table.getColumn( 1 ).setPreferredWidth( 60 );
    table.getColumn( 2 ).setPreferredWidth( 60 );
    section.finish();

    table.packColumn( 3, 10 );
    if( table.getColumn( 3 ).getPreferredWidth() < 250 )
      table.getColumn( 3 ).setPreferredWidth( 250 );

    return new JScrollPane( metrics );
  }
View Full Code Here


        JXTable table = section.addTable(operationsTableModel);
        table.getColumn(1).setPreferredWidth(60);
        table.getColumn(2).setPreferredWidth(60);
        section.finish();

        table.packColumn(3, 10);
        if (table.getColumn(3).getPreferredWidth() < 250) {
            table.getColumn(3).setPreferredWidth(250);
        }

        return new JScrollPane(metrics);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.