|
|
|
|
@ -101,12 +101,12 @@ public class Importer extends CustomJDialog
|
|
|
|
|
{
|
|
|
|
|
centerSuper();
|
|
|
|
|
}
|
|
|
|
|
show();
|
|
|
|
|
setVisible( true );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void setupComponents( String filename )
|
|
|
|
|
{
|
|
|
|
|
setSize( 600, 500 );
|
|
|
|
|
setSize( 800, 500 );
|
|
|
|
|
|
|
|
|
|
GridBagLayout gblGridBag = new GridBagLayout();
|
|
|
|
|
GridBagConstraints gbcConstraints = new GridBagConstraints();
|
|
|
|
|
@ -125,16 +125,18 @@ public class Importer extends CustomJDialog
|
|
|
|
|
Virtual2DTableModel tm = new Virtual2DTableModel( colNames, null );
|
|
|
|
|
tm.setValues( e2da );
|
|
|
|
|
table = new BaseTable( tm );
|
|
|
|
|
int col = 0;
|
|
|
|
|
switch( type )
|
|
|
|
|
{
|
|
|
|
|
case TYPE_ADMISSAO:
|
|
|
|
|
table.fixColumnWidth( DEFAULT_SELECTION[ 0 ], 120 );
|
|
|
|
|
col = DEFAULT_SELECTION[ 0 ];
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case TYPE_DEMISSAO:
|
|
|
|
|
table.fixColumnWidth( DEFAULT_SELECTION_DEMISSAO[ 0 ], 120 );
|
|
|
|
|
col = DEFAULT_SELECTION_DEMISSAO[ 0 ];
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
table.getColumn( col ).setWidth( 200 );
|
|
|
|
|
if( !multipleSelection )
|
|
|
|
|
{
|
|
|
|
|
table.getSelectionModel().setSelectionMode( ListSelectionModel.SINGLE_SELECTION );
|
|
|
|
|
|