/** * Adds a gridded component. * * @param component * the component to add */ public void addGridded(JComponent component) { getLayout().appendRow(FormFactory.PREF_ROWSPEC); getLayout().addGroupedRow(getRow()); component.putClientProperty(NARROW_KEY, Boolean.TRUE); add(component); nextRow(); }
/** * Adds a gridded component. * * @param component the component to add */ public void addGridded(JComponent component) { getLayout().appendRow(FormFactory.PREF_ROWSPEC); getLayout().addGroupedRow(getRow()); component.putClientProperty(NARROW_KEY, Boolean.TRUE); add(component); nextRow(); }
/** * Adds a gridded component. * * @param component the component to add */ public void addGridded(JComponent component) { getLayout().appendRow(FormFactory.PREF_ROWSPEC); getLayout().addGroupedRow(getRow()); component.putClientProperty(NARROW_KEY, Boolean.TRUE); add(component); nextRow(); }
/** * Ensures that the form has a component row. Adds a component row * if the cursor is beyond the form's bottom. */ private void ensureHasComponentLine() { if (getRow() <= getRowCount()) return; appendRow(FormFactory.PREF_ROWSPEC); if (isRowGroupingEnabled()) { getLayout().addGroupedRow(getRow()); } } /**
/** * Ensures that the form has a component row. Adds a component row if the * cursor is beyond the form's bottom. */ private void ensureHasComponentLine() { if (getRow() <= getRowCount()) return; appendRow(FormFactory.PREF_ROWSPEC); if (isRowGroupingEnabled()) { getLayout().addGroupedRow(getRow()); } }
/** * Ensures that the form has a component row. Adds a component row * if the cursor is beyond the form's bottom. */ private void ensureHasComponentLine() { if (getRow() <= getRowCount()) return; appendRow(FormFactory.PREF_ROWSPEC); if (isRowGroupingEnabled()) { getLayout().addGroupedRow(getRow()); } } /**
/** * Ensures that the form has a component row. Adds a component row * if the cursor is beyond the form's bottom. */ private void ensureHasComponentLine() { if (getRow() <= getRowCount()) return; appendRow(getDefaultRowSpec()); if (isRowGroupingEnabled()) { getLayout().addGroupedRow(getRow()); } }
/** * Ensures that the form has a component row. Adds a component row * if the cursor is beyond the form's bottom. */ private void ensureHasComponentLine() { if (getRow() <= getRowCount()) { return; } appendRow(getDefaultRowSpec()); if (isRowGroupingEnabled()) { getLayout().addGroupedRow(getRow()); } }