当前位置: 首页>>代码示例>>Java>>正文


Java DefaultFormBuilder.nextLine方法代码示例

本文整理汇总了Java中com.jgoodies.forms.builder.DefaultFormBuilder.nextLine方法的典型用法代码示例。如果您正苦于以下问题:Java DefaultFormBuilder.nextLine方法的具体用法?Java DefaultFormBuilder.nextLine怎么用?Java DefaultFormBuilder.nextLine使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.jgoodies.forms.builder.DefaultFormBuilder的用法示例。


在下文中一共展示了DefaultFormBuilder.nextLine方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createContents

import com.jgoodies.forms.builder.DefaultFormBuilder; //导入方法依赖的package包/类
protected JPanel createContents()
{
   	FormLayout layout = new FormLayout(
   			"fill:[100dlu,min]:grow",
   			"pref, pref, fill:pref:grow"
   	);

   	DefaultFormBuilder builder = new DefaultFormBuilder(layout);
   	builder.setDefaultDialogBorder();

      	pk = new ProgressKeeper((int)1E6);
      	pk.addListener(this);
	progressSent = new JProgressBar(0, pk.getTotalWork());
       builder.append(progressSent);
       builder.nextLine();
       lblTask = new JLabel();
       builder.append(lblTask);

       progressText = new JTextArea();

	builder.append(new JScrollPane(progressText));
	return builder.getPanel();
}
 
开发者ID:PathVisio,项目名称:pathvisio,代码行数:24,代码来源:GexImportWizard.java

示例2: PathwayToolTip

import com.jgoodies.forms.builder.DefaultFormBuilder; //导入方法依赖的package包/类
public PathwayToolTip(List<VPathwayElement> elements) {
	applyToolTipStyle(this);
	setLayout(new BorderLayout());
	DefaultFormBuilder builder = new DefaultFormBuilder(new FormLayout("pref"));
	for(ToolTipProvider p : toolTipProviders) {
		Component c = p.createToolTipComponent(this, elements);
		if(c != null) {
			hasContent = true;
			builder.append(c);
			builder.nextLine();
		}
	}

	JPanel contents = builder.getPanel();
	applyToolTipStyle(contents);
	JScrollPane scroll = new JScrollPane(contents, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);

	int w = contents.getPreferredSize().width +
		scroll.getVerticalScrollBar().getPreferredSize().width + 5;
	int h = contents.getPreferredSize().height +
		scroll.getHorizontalScrollBar().getPreferredSize().height + 5;
	w = Math.min(400, w);
	h = Math.min(500, h);
	setPreferredSize(new Dimension(w, h));
	add(scroll, BorderLayout.CENTER);
}
 
开发者ID:PathVisio,项目名称:pathvisio,代码行数:27,代码来源:VPathwaySwing.java

示例3: refresh

import com.jgoodies.forms.builder.DefaultFormBuilder; //导入方法依赖的package包/类
public void refresh() {
	if(refPanel != null) remove(refPanel);

	xrefs = refMgr.getPublicationXRefs();

	DefaultFormBuilder b = new DefaultFormBuilder(
			new FormLayout("fill:pref:grow")
	);
	for(PublicationXref xref : xrefs) {
		b.append(new XRefPanel(xref));
		b.nextLine();
	}
	JPanel p = b.getPanel();
	p.setBackground(Color.WHITE);
	refPanel = new JScrollPane(p);
	add(refPanel, BorderLayout.CENTER);
	validate();
}
 
开发者ID:PathVisio,项目名称:pathvisio,代码行数:19,代码来源:LitReferencePanel.java

示例4: initializeMonitorForm

import com.jgoodies.forms.builder.DefaultFormBuilder; //导入方法依赖的package包/类
public void initializeMonitorForm() {
	DefaultFormBuilder builder = createForm();
	monitorPanel = builder.getPanel();
	mainTabbedPane.add(monitorPanel);

	monitorPathCheckBox = new JCheckBox();
	settingMediator.add(Settings.DO_MONITOR_PATH, monitorPathCheckBox);
	builder.append(monitorPathCheckBox, 4);
	builder.nextLine();

	monitorPathFileChooserPanel = new ExecutableChooserPanel(Constants.DEFAULT_COLUMNS);
	monitorPathFileChooserPanel.setDialogParent(this);
	settingMediator.add(Settings.MONITOR_PATH, monitorPathFileChooserPanel.getTextField());
	monitorPathLabel = builder.append("", monitorPathFileChooserPanel, 3);
	builder.nextLine();

	monitorPathIntervalModel = new SpinnerNumberModel(1, 1, Integer.MAX_VALUE, 30);
	monitorPathIntervalSpinner = new JSpinner(monitorPathIntervalModel);
	monitorPathIntervalSpinner.setEditor(new JSpinner.NumberEditor(monitorPathIntervalSpinner, "# s"));
	monitorPathIntervalLabel = builder.append("", monitorPathIntervalSpinner);
	builder.nextLine();		
	
	monitorPathCheckBox.addItemListener(new EnableListener(monitorPathFileChooserPanel, monitorPathIntervalSpinner));
}
 
开发者ID:Distrotech,项目名称:jhylafax,代码行数:25,代码来源:SettingsDialog.java

示例5: refresh

import com.jgoodies.forms.builder.DefaultFormBuilder; //导入方法依赖的package包/类
private void refresh() {
	methods.removeAll();
	if(visMgr != null) {
		Visualization v = visMgr.getActiveVisualization();

		visCombo.setModel(new DefaultComboBoxModel(
				visMgr.getVisualizations().toArray()
		));

		visCombo.setSelectedItem(v);

		//Refresh methods panel
		if(v != null) {
			FormLayout layout = new FormLayout("fill:pref:grow");
			DefaultFormBuilder builder =
				new DefaultFormBuilder(layout, methods);
			for(String name :  visMgr.getVisualizationMethodRegistry().getRegisteredMethods()) {
				MethodPanel mp = new MethodPanel(v, name);
				builder.append(mp);
				builder.nextLine();
			}
		}
	} else {
		visCombo.setModel(new DefaultComboBoxModel());
	}
	revalidate();
	repaint();
}
 
开发者ID:PathVisio,项目名称:pathvisio,代码行数:29,代码来源:VisualizationPanel.java

示例6: setContents

import com.jgoodies.forms.builder.DefaultFormBuilder; //导入方法依赖的package包/类
void setContents() {
	DefaultFormBuilder builder = new DefaultFormBuilder(
			new FormLayout("pref, 4dlu, fill:pref:grow"),
			this
	);

	ColorSetManager csm = method.getVisualization()
	.getManager().getColorSetManager();
	ColorSetChooser csChooser = new ColorSetChooser(csm, method.getGexManager());
	colorSetCombo = csChooser.getColorSetCombo();
	colorSetCombo.setActionCommand(ACTION_COMBO);
	colorSetCombo.addActionListener(this);
	colorSetCombo.getModel().setSelectedItem(cs.getColorSet());

	imageCheck = new JCheckBox(ACTION_IMG);
	imageCheck.setActionCommand(ACTION_IMG);
	imageCheck.addActionListener(this);
	imageCheck.setSelected(cs.getURL() != null);

	imagePanel = new JPanel();
	imagePanel.setBorder(BorderFactory.createTitledBorder(
			BorderFactory.createEtchedBorder(), "Image settings"
	));

	builder.setDefaultDialogBorder();
	builder.append("Color set:", csChooser);
	builder.nextLine();
	builder.append(imageCheck, 3);
	builder.nextLine();
	builder.append(imagePanel, 3);

	refreshImagePanel();
}
 
开发者ID:PathVisio,项目名称:pathvisio,代码行数:34,代码来源:ColorByExpressionPanel.java

示例7: buildChartPrefsPanel

import com.jgoodies.forms.builder.DefaultFormBuilder; //导入方法依赖的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

示例8: buildSubForm

import com.jgoodies.forms.builder.DefaultFormBuilder; //导入方法依赖的package包/类
private JComponent buildSubForm(SubForm subForm, Map<String, JComponent> mapComponents, List<String> fieldIdList,
		Map<String, Object> extraObjects) {
	//panel.setCaption(formEditor.getName());
	StringBuilder buff = new StringBuilder("right:max(40dlu;pref), 3dlu, 20dlu:grow");
	for (int i = 1; i < subForm.getColumns(); i++) {
		buff.append(", 7dlu, right:max(40dlu;pref), 3dlu, 20dlu:grow");
	}
	FormLayout layout = new FormLayout(buff.toString(), ""); // add rows dynamically
	DefaultFormBuilder builder = new DefaultFormBuilder(layout);
	for (int row = 0; row < subForm.getRows(); row++) {
		for (int column = 0; column < subForm.getColumns(); column++) {
			Component component = subForm.getField(row, column);
			if (component == null) {
				builder.nextColumn(4);
			} else if (component instanceof Field) {
				Field editor = (Field) component;
				buildField(builder, editor, mapComponents, fieldIdList, extraObjects);
			} else {
				throw new UnsupportedOperationException("A subform contains a component that is not a field");
			}
		}
		builder.nextLine();
		builder.appendRow(FormSpecs.LINE_GAP_ROWSPEC);
		builder.nextLine();
		builder.appendRow("max(6dlu;pref)");
	}
	return builder.build();
}
 
开发者ID:frincon,项目名称:abstractform,代码行数:29,代码来源:SwingFormToolkit.java

示例9: createWizardIndex

import com.jgoodies.forms.builder.DefaultFormBuilder; //导入方法依赖的package包/类
private Component createWizardIndex()
{
    JPanel indexPanel = new JPanel(new FormLayout(
            new ColumnSpec[]{
                    new ColumnSpec(ColumnSpec.CENTER, Sizes.DEFAULT, FormSpec.NO_GROW)
            },
            new RowSpec[]{
                    new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW),
                    FormFactory.UNRELATED_GAP_ROWSPEC,
                    new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                    FormFactory.UNRELATED_GAP_ROWSPEC,
                    new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW),
            }));
    CellConstraints cc = new CellConstraints();
    GuiStandardUtils.attachBorder(indexPanel, BorderFactory.createEmptyBorder(5, 5, 5, 5));
    indexPanel.add(createWizardTitle(), cc.xy(1, 1));
    WizardPage[] pages = wizard.getPages();
    DefaultFormBuilder builder = new DefaultFormBuilder(new FormLayout(
            "right:pref, 3dlu, left:pref", ""));
    JLabel indexNumber;
    JLabel indexTitle;
    for (int i = 0; i < pages.length; ++i)
    {
        indexNumber = new JLabel(Integer.toString(i + 1) + ".");
        indexNumber.setName(Integer.toString(i + 1));
        indexTitle = new JLabel(pages[i].getTitle());
        indexNumbers.put(pages[i].getTitle(), indexNumber);
        indexComponents.put(pages[i].getTitle(), indexTitle);
        builder.append(indexNumber);
        builder.append(indexTitle);
        if (i < pages.length - 1)
            builder.nextLine();
    }
    indexPanel.add(builder.getPanel(), cc.xy(1, 3));
    indexPanel.add(createStepNofMPanel(pages.length), cc.xy(1, 5));
    return indexPanel;
}
 
开发者ID:shevek,项目名称:spring-rich-client,代码行数:38,代码来源:ExtendedWizardDialog.java

示例10: initializeCoverPanel

import com.jgoodies.forms.builder.DefaultFormBuilder; //导入方法依赖的package包/类
private void initializeCoverPanel()
{
	FormLayout layout = new FormLayout("left:max(40dlu;pref), 3dlu, pref:grow", "");
	DefaultFormBuilder builder = new DefaultFormBuilder(layout);
	coverPanel = builder.getPanel();
	this.builder.appendRow(builder.getLineGapSpec());
	this.builder.nextLine();
	this.builder.appendRow("fill:pref:grow");
	this.builder.append(coverPanel, 6);
	
	coverSenderTextField = new JTextField(DEFAULT_COLUMNS);
	coverSenderTextField.setText(Settings.FULLNAME.getValue());
	coverSenderLabel = builder.append("", coverSenderTextField);
	builder.nextLine();
	
	coverRecepientTextField = new JTextField(DEFAULT_COLUMNS);
	coverRecepientLabel = builder.append("", coverRecepientTextField);
	builder.nextLine();
	
	coverSubjectTextField = new JTextField(DEFAULT_COLUMNS);
	coverSubjectLabel = builder.append("", coverSubjectTextField);
	builder.nextLine();
	
	coverCommentTextArea= new JTextArea(3, DEFAULT_COLUMNS);
	coverCommentLabel = builder.append("");
	builder.appendRow("fill:pref:grow"); // second row for text area
	CellConstraints cc = new CellConstraints();
	coverCommentScrollPane = new JScrollPane(coverCommentTextArea);
	builder.add(coverCommentScrollPane,
			cc.xywh(builder.getColumn(), builder.getRow(), 1, 2));
	builder.nextLine(2);
}
 
开发者ID:Distrotech,项目名称:jhylafax,代码行数:33,代码来源:SendDialog.java

示例11: EditContactDialog

import com.jgoodies.forms.builder.DefaultFormBuilder; //导入方法依赖的package包/类
public EditContactDialog(JFrame owner, SimpleContact contact) {
	super(owner);

	setApplyOnEnter(true);
	
	FormLayout layout = new FormLayout("left:max(40dlu;pref), 3dlu, pref:grow", "");
	DefaultFormBuilder builder = new DefaultFormBuilder(layout);
	builder.setDefaultDialogBorder();
	setMainComponent(builder.getPanel());
	
	firstNameTextField = new JTextField(20);
	firstNameLabel = builder.append("", firstNameTextField);
	builder.nextLine();

	lastNameTextField = new JTextField(20);
	lastNameLabel = builder.append("", lastNameTextField);
	builder.nextLine();

	companyTextField = new JTextField(20);
	companyLabel = builder.append("", companyTextField);
	builder.nextLine();

	faxNumberTextField = new JTextField(20);
	faxNumberLabel = builder.append("", faxNumberTextField);
	builder.nextLine();

	setContact(contact);
	revert();
	
	updateLabels();
	pack();
}
 
开发者ID:Distrotech,项目名称:jhylafax,代码行数:33,代码来源:EditContactDialog.java

示例12: StringEditor

import com.jgoodies.forms.builder.DefaultFormBuilder; //导入方法依赖的package包/类
public StringEditor(ParameterModel model, int index, ParameterPanel parent,
		DefaultFormBuilder builder)
{
	this.index = index;
	this.parent = parent;
	this.model = model;

	txtField = new JTextField();
	txtField.setText("" + model.getValue(index));
	txtField.getDocument().addDocumentListener(this);
	txtField.setToolTipText(model.getHint(index));
       builder.append(model.getLabel(index), txtField, 2);				
       builder.nextLine();
}
 
开发者ID:bridgedb,项目名称:BridgeDb,代码行数:15,代码来源:StringEditor.java

示例13: BooleanEditor

import com.jgoodies.forms.builder.DefaultFormBuilder; //导入方法依赖的package包/类
public BooleanEditor(ParameterModel model, int index, ParameterPanel parent,
		DefaultFormBuilder builder)
{
	this.index = index;
	this.parent = parent;
	this.model = model;

	ckVal = new JCheckBox();
	ckVal.setToolTipText(model.getHint(index));
	ckVal.addActionListener(this);
       builder.append(model.getLabel(index), ckVal, 2);				
       builder.nextLine();
}
 
开发者ID:bridgedb,项目名称:BridgeDb,代码行数:14,代码来源:BooleanEditor.java

示例14: FileEditor

import com.jgoodies.forms.builder.DefaultFormBuilder; //导入方法依赖的package包/类
public FileEditor(ParameterModel model, int index, ParameterPanel parent, DefaultFormBuilder builder)
{
	this.index = index;
	this.parent = parent;
	this.model = model;
	
	JButton btnBrowse = new JButton("Browse");
	txtFile = new JTextField();
	btnBrowse.addActionListener(this);
	txtFile.getDocument().addDocumentListener(this);
	txtFile.setToolTipText(model.getHint(index));
       builder.append(model.getLabel(index), txtFile, btnBrowse);
       builder.nextLine();
}
 
开发者ID:bridgedb,项目名称:BridgeDb,代码行数:15,代码来源:FileEditor.java

示例15: EnumEditor

import com.jgoodies.forms.builder.DefaultFormBuilder; //导入方法依赖的package包/类
public EnumEditor(ParameterModel model, int index, ParameterPanel parent,
		DefaultFormBuilder builder)
{
	this.index = index;
	this.parent = parent;
	this.model = model;
	
	List<?> values = (List<?>)model.getMetaData(index);
	cbBox = new JComboBox(values.toArray());
	cbBox.addActionListener(this);
	
       builder.append(model.getLabel(index), cbBox, 2);				
       builder.nextLine();
}
 
开发者ID:bridgedb,项目名称:BridgeDb,代码行数:15,代码来源:EnumEditor.java


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