column width

git-svn-id: https://svn.coded.pt/svn/SIPRP@205 bb69d46d-e84e-40c8-a05a-06db0d633741
Frederico Palma 20 years ago
parent ae49b58a9d
commit dbd4f8becc

@ -125,6 +125,16 @@ public class Importer extends CustomJDialog
Virtual2DTableModel tm = new Virtual2DTableModel( colNames, null );
tm.setValues( e2da );
table = new BaseTable( tm );
switch( type )
{
case TYPE_ADMISSAO:
table.fixColumnWidth( DEFAULT_SELECTION[ 0 ], 120 );
break;
case TYPE_DEMISSAO:
table.fixColumnWidth( DEFAULT_SELECTION_DEMISSAO[ 0 ], 120 );
break;
}
if( !multipleSelection )
{
table.getSelectionModel().setSelectionMode( ListSelectionModel.SINGLE_SELECTION );

Loading…
Cancel
Save