Example usage for com.jgoodies.forms.layout RowSpec getSize

List of usage examples for com.jgoodies.forms.layout RowSpec getSize

Introduction

In this page you can find the example usage for com.jgoodies.forms.layout RowSpec getSize.

Prototype

public final Size getSize() 

Source Link

Document

Returns the size.

Usage

From source file:com.jeta.swingbuilder.gui.commands.EditRowSpecCommand.java

License:Open Source License

/**
 * ctor//  w  w  w .j  a va 2  s  . c  o  m
 */
public EditRowSpecCommand(FormComponent form, int row, RowSpec rowspec, RowSpec oldspec) {
    super(form);
    m_row = row;
    m_rowspec = rowspec;
    /**
     * note that you must create a copy of the oldspec here because the
     * reference passed to the constructor is probabaly bound to the view
     * and will change
     */
    m_oldspec = new RowSpec(oldspec.getDefaultAlignment(), oldspec.getSize(), oldspec.getResizeWeight());
}