• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java FormDebugPanel类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;
}
 
开发者ID:JFormDesigner,项目名称:swing-jgoodies-forms,代码行数:23,代码来源:AbstractFormBuilder.java


示例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();
}
 
开发者ID:SQLPower,项目名称:power-matchmaker,代码行数:36,代码来源:NewTableMergeRuleChooserPane.java


示例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();
}
 
开发者ID:SQLPower,项目名称:wabit,代码行数:36,代码来源:ChartPanel.java


示例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());
}
 
开发者ID:lazyzero,项目名称:kkMulticopterFlashTool,代码行数:31,代码来源:MultiFlashConfigDialog.java


示例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));
}
 
开发者ID:SQLPower,项目名称:power-matchmaker,代码行数:51,代码来源:MatchMakerIndexBuilder.java


示例6: debuggable

import com.jgoodies.forms.debug.FormDebugPanel; //导入依赖的package包/类
public static JPanel debuggable() {
	return (isDebug) ? new FormDebugPanel() : new JPanel();
}
 
开发者ID:crisis-economics,项目名称:CRISIS,代码行数:4,代码来源:FormsUtils.java



注:本文中的com.jgoodies.forms.debug.FormDebugPanel类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java DecoEvent类代码示例发布时间:2022-05-22
下一篇:
Java NSWindow类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap