Package org.springframework.richclient.layout

Examples of org.springframework.richclient.layout.TableLayoutBuilder


  @Override
  protected JComponent createControl() {
    initTable();
    initSelectionChanges();

    TableLayoutBuilder builder = new TableLayoutBuilder();
    JScrollPane scrollPane = new JScrollPane( getTable() );

    builder.row();
    builder.cell( scrollPane, "colSpec=fill:default:grow rowSpec=fill:default:grow" );

    scrollPane.getViewport().setOpaque( true );
    scrollPane.getViewport().setBackground( getTable().getBackground() );

    builder.row();
    builder.cell( createDefaultCommandGroup().createButtonBar() );

    initializeCommands();

    finalizeInitialization();
    return GuiStandardUtils.attachBorder( builder.getPanel(), BorderFactory.createEmptyBorder( UIConstants.ONE_SPACE, UIConstants.ONE_SPACE, 0, UIConstants.ONE_SPACE ) );
  }
View Full Code Here

TOP

Related Classes of org.springframework.richclient.layout.TableLayoutBuilder

Copyright © 2018 www.massapicom. 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.