本文整理汇总了Java中com.jgoodies.forms.debug.FormDebugPanel类的典型用法代码示例。如果您正苦于以下问题:Java FormDebugPanel类的具体用法?Java FormDebugPanel怎么用?Java FormDebugPanel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FormDebugPanel类属于com.jgoodies.forms.debug包,在下文中一共展示了FormDebugPanel类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getPanel
import com.jgoodies.forms.debug.FormDebugPanel; //导入依赖的package包/类
/**
* Returns the panel used to build the form.
* Intended to access panel properties. For returning the built panel
* use {@link #build()} instead.
*
* @return the panel used by this builder to build the form
*
* @see #build()
*/
public JPanel getPanel() {
if (panel == null) {
// We'd like to say:
// panel = new JPanel(getLayout);
// but we use a null layout instead, because this method is invoked
// early during the builder construction, where the layout is not
// specified. As a result, we check that a layout is set in
// #addImpl(Component).
panel = debug ? new FormDebugPanel() : new JPanel(null);
panel.setOpaque(FormsSetup.getOpaqueDefault());
}
return panel;
}
示例2: buildUI
import com.jgoodies.forms.debug.FormDebugPanel; //导入依赖的package包/类
private JPanel buildUI() {
FormLayout layout = new FormLayout(
"10dlu,pref,4dlu,fill:max(pref;" + 5*new JComboBox().getMinimumSize().getWidth() + "px):grow,10dlu",
"10dlu,pref,4dlu,pref,4dlu,pref,4dlu,pref,4dlu,pref,4dlu,pref,4dlu,pref,10dlu");
//1 2 3 4 5 6 7 8 9
CellConstraints cc = new CellConstraints();
JPanel p = logger.isDebugEnabled() ? new FormDebugPanel(layout) : new JPanel(layout);
PanelBuilder pb = new PanelBuilder(layout, p);
int row = 2;
pb.add(status, cc.xyw(2, row, 3, "f,f"));
row += 2;
pb.add(new JLabel("Catalog:"), cc.xy(2, row));
pb.add(chooser.getCatalogComboBox(), cc.xy(4, row));
row += 2;
pb.add(new JLabel("Schema:"), cc.xy(2, row));
pb.add(chooser.getSchemaComboBox(), cc.xy(4, row));
row += 2;
pb.add(new JLabel("Table:"), cc.xy(2, row));
pb.add(chooser.getTableComboBox(), cc.xy(4, row));
row += 2;
pb.add(new JLabel("Index:"), cc.xy(2, row));
pb.add(chooser.getUniqueKeyComboBox(), cc.xy(4, row));
row +=2;
pb.add(new JLabel("Parent Table:"), cc.xy(2, row));
pb.add(parentMergeRule, cc.xy(4, row));
return pb.getPanel();
}
示例3: buildChartPrefsPanel
import com.jgoodies.forms.debug.FormDebugPanel; //导入依赖的package包/类
/**
* Subroutine of {@link #buildUI()}. Creates the form that appears to the
* right of the JFreeChart preview.
*/
private Component buildChartPrefsPanel() {
DefaultFormBuilder builder = new DefaultFormBuilder(
new FormLayout("70dlu, 3dlu, 90dlu"),
logger.isDebugEnabled() ? new FormDebugPanel() : new JPanel());
builder.append("Legend Postion", legendPositionComboBox);
builder.nextLine();
builder.append(yaxisNameLabel, yaxisNameField);
builder.nextLine();
builder.append(xaxisNameLabel, xaxisNameField);
builder.nextLine();
builder.append(xaxisLabelRotationLabel, xaxisLabelRotationSlider);
builder.nextLine();
builder.append(this.xAxisAutoLabel, this.xAxisAuto);
builder.append(this.xAxisMaxLabel, this.xAxisMax);
builder.append(this.xAxisMinLabel, this.xAxisMin);
builder.nextLine();
builder.append(this.yAxisAutoLabel, this.yAxisAuto);
builder.append(this.yAxisMaxLabel, this.yAxisMax);
builder.append(this.yAxisMinLabel, this.yAxisMin);
builder.nextLine();
builder.append("Gratuitous Animation", gratuitousAnimationCheckbox);
return builder.getPanel();
}
示例4: initGUI
import com.jgoodies.forms.debug.FormDebugPanel; //导入依赖的package包/类
private void initGUI() {
//create the CellContraints
cc = new CellConstraints();
// create the Layout for Panel this
String panelColumns = "3dlu,pref,3dlu,50dlu,3dlu,pref,fill:pref:grow,3dlu,pref";
String panelRows = "3dlu,pref,3dlu,pref,3dlu";
FormLayout panelLayout = new FormLayout(panelColumns, panelRows);
panel = new FormDebugPanel();
panel.setLayout(panelLayout);
panel.add(new JLabel("TEST"), cc.xy(1, 1));
this.nbrESCLabel = new JLabel(_("multiflash.configure.nbrESC"));
SpinnerModel model = new SpinnerNumberModel(mfs.getNbrESC(), //initial value
2, //min
8, //max
1);
this.nbrESCSpinner = new JSpinner(model);
this.setTitle(_("multiflash.configure.title"));
panel.add(nbrESCLabel, cc.xy(2, 2));
panel.add(nbrESCSpinner, cc.xy(4, 2));
this.add(panel);
this.pack();
this.setLocationRelativeTo(KKMulticopterFlashTool.getInstance());
}
示例5: MatchMakerIndexBuilder
import com.jgoodies.forms.debug.FormDebugPanel; //导入依赖的package包/类
public MatchMakerIndexBuilder(final SQLTable table, final MutableComboBoxModel indexModel, final MatchMakerSwingSession swingSession) throws SQLObjectException {
this.table = table;
this.indexModel = indexModel;
this.swingSession = swingSession;
final SQLIndex oldIndex = (SQLIndex)indexModel.getSelectedItem();
if (oldIndex != null &&
table.getIndexByName(oldIndex.getName()) == null) {
oldName = oldIndex.getName();
} else {
for( int i=0; ;i++) {
oldName = table.getName()+"_UPK"+(i==0?"":String.valueOf(i));
if (table.getIndexByName(oldName) == null) break;
}
}
columnChooserTableModel = new ColumnChooserTableModel(table, oldIndex, true);
final EditableJTable columntable = new EditableJTable(columnChooserTableModel);
columntable.addColumnSelectionInterval(1, 1);
TableUtils.fitColumnWidths(columntable, 15);
FormLayout layout = new FormLayout(
"4dlu,fill:pref:grow,4dlu",
//column 1 2 3
"10dlu,pref:grow,4dlu,pref:grow,4dlu,pref:grow,10dlu,fill:min(200dlu;pref):grow,4dlu");
//row 1 2 3 4 5 6 7 8 9 10 11
panel = logger.isDebugEnabled() ? new FormDebugPanel(layout)
: new JPanel(layout);
PanelBuilder pb = new PanelBuilder(layout, panel);
CellConstraints cc = new CellConstraints();
statusComponent = new StatusComponent();
pb.add(statusComponent, cc.xy(2, 2));
pb.add(new JLabel("Table: " + DDLUtils.toQualifiedName(table)),
cc.xy(2, 4));
indexName = new JTextField(oldName,15);
pb.add(indexName, cc.xy(2, 6));
JScrollPane scrollPane = new JScrollPane(columntable);
pb.add(scrollPane, cc.xy(2, 8, "f,f"));
validationHandler = new FormValidationHandler(statusComponent);
validationHandler.addValidateObject(indexName,
new RegExValidator(
"[a-z_][a-z0-9_]*",
"Index name must be a valid SQL identifier",
false));
}
示例6: debuggable
import com.jgoodies.forms.debug.FormDebugPanel; //导入依赖的package包/类
public static JPanel debuggable() {
return (isDebug) ? new FormDebugPanel() : new JPanel();
}