new ColumnSpec( ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW ),
FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
new ColumnSpec( ColumnSpec.FILL, Sizes.PREFERRED, FormSpec.NO_GROW ),
},
new RowSpec[]{
new RowSpec( RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW ),
FormFactory.LINE_GAP_ROWSPEC,
new RowSpec( RowSpec.FILL, Sizes.dluY( 60 ), FormSpec.DEFAULT_GROW )
} ) );
//---- tagCombo ----
tagCombo.setEditable( true );
add( tagCombo, cc.xy( 1, 1 ) );
//---- addButton ----
addButton.setText( "+" );
add( addButton, cc.xy( 3, 1 ) );
//======== scrollPane1 ========
{
scrollPane1.setViewportView( tagList );
}
add( scrollPane1, cc.xy( 1, 3 ) );
//======== panel1 ========
{
panel1.setLayout( new FormLayout(
new ColumnSpec[]{
new ColumnSpec( ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW )
},
new RowSpec[]{
new RowSpec( RowSpec.TOP, Sizes.DEFAULT, FormSpec.DEFAULT_GROW )
}
) );
//---- removeButton ----
removeButton.setText( "-" );