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

Java ParallelGroup类代码示例

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

本文整理汇总了Java中javax.swing.GroupLayout.ParallelGroup的典型用法代码示例。如果您正苦于以下问题:Java ParallelGroup类的具体用法?Java ParallelGroup怎么用?Java ParallelGroup使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ParallelGroup类属于javax.swing.GroupLayout包,在下文中一共展示了ParallelGroup类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: updatePanels

import javax.swing.GroupLayout.ParallelGroup; //导入依赖的package包/类
private void updatePanels() {
	jFiltersPanel.removeAll();
	GroupLayout groupLayout = new GroupLayout(jFiltersPanel);
	jFiltersPanel.setLayout(groupLayout);
	groupLayout.setAutoCreateGaps(true);
	groupLayout.setAutoCreateContainerGaps(false);
	ParallelGroup horizontalGroup = groupLayout.createParallelGroup();
	SequentialGroup verticalGroup = groupLayout.createSequentialGroup();
	for (LocationPanel locationPanel : locationPanels) {
		horizontalGroup.addComponent(locationPanel.getPanel());
		verticalGroup.addComponent(locationPanel.getPanel());
	}
	jFiltersPanel.setVisible(!locationPanels.isEmpty());
	groupLayout.setHorizontalGroup(horizontalGroup);
	groupLayout.setVerticalGroup(verticalGroup);
	autoValidate();
	this.getDialog().pack();
}
 
开发者ID:GoldenGnu,项目名称:jeveassets,代码行数:19,代码来源:StockpileDialog.java


示例2: add

import javax.swing.GroupLayout.ParallelGroup; //导入依赖的package包/类
private void add(GroupLayout layout, ParallelGroup horizontalGroup, SequentialGroup verticalGroup) {
	//Layout
	horizontalGroup
		.addGroup(layout.createSequentialGroup()
			.addComponent(jLabel, 75, 75, 75)
			.addComponent(jBrowse)
			.addComponent(jReset)
			.addComponent(jPlay)
		);
	verticalGroup
		.addGroup(layout.createParallelGroup(GroupLayout.Alignment.CENTER)
			.addComponent(jLabel)
			.addComponent(jBrowse)
			.addComponent(jReset)
			.addComponent(jPlay)
		);
}
 
开发者ID:GoldenGnu,项目名称:jwarframe,代码行数:18,代码来源:SettingsTool.java


示例3: generateJFreeChart

import javax.swing.GroupLayout.ParallelGroup; //导入依赖的package包/类
/**
 * Generate a vertical list of JFreeCharts
 * 
 * @param labels
 *            - the labels for the values
 * @param index
 *            - the index
 * @param values
 * @return
 */
public static String generateJFreeChart(List<String> labels,
        List<Double> index, List<List<Double>> values) {
    JPanel panel = new JPanel();
    // create a layout
    GroupLayout layout = new GroupLayout(panel);
    panel.setLayout(layout);
    layout.setAutoCreateGaps(true);
    layout.setAutoCreateContainerGaps(true);
    SequentialGroup sgv = layout.createSequentialGroup();
    layout.setVerticalGroup(sgv);
    ParallelGroup pgh = layout.createParallelGroup();
    layout.setHorizontalGroup(pgh);
    for (int i = 0; i != labels.size(); i++) {
        XYSeries xys = new XYSeries(labels.get(i));
        for (int j = 0; j != index.size(); j++) {
            xys.add(index.get(j), values.get(i).get(j));
        }
        XYSeriesCollection xysc = new XYSeriesCollection(xys);
        JFreeChart chart =
                ChartFactory.createXYLineChart(labels.get(i), "Time",
                        "Focus", xysc, PlotOrientation.VERTICAL, false,
                        false, false);
        chart.setBackgroundPaint(Color.white);
        chart.getTitle().setFont(new Font("Tahoma", Font.BOLD, 14));
        ChartPanel cp = new ChartPanel(chart);
        sgv.addComponent(cp);
        pgh.addComponent(cp);
    }
    JFrame frame = new JFrame();
    frame.add(panel);
    frame.pack();
    frame.setVisible(true);
    return null;
}
 
开发者ID:Xapagy,项目名称:Xapagy,代码行数:45,代码来源:tdVisualizationGenerator.java


示例4: makeHorizontalGroup

import javax.swing.GroupLayout.ParallelGroup; //导入依赖的package包/类
private ParallelGroup makeHorizontalGroup( GroupLayout layout ) {
	ParallelGroup removeButtonGroup = layout.createParallelGroup( GroupLayout.Alignment.LEADING );
	for ( JButton removeRowButton : removeRowButtons ) {
		removeButtonGroup.addComponent( removeRowButton );
	}
	removeButtonGroup.addComponent( addRelationshipButton );

	ParallelGroup subjectCBGroup = layout.createParallelGroup( GroupLayout.Alignment.LEADING );
	subjectCBGroup.addComponent( subjectJLabel );
	for ( UriComboBox subjectCB : subjectComboBoxes ) {
		subjectCBGroup.addComponent( subjectCB );
	}
	subjectCBGroup.addComponent( maxExportLimitLabel );

	ParallelGroup relationCBGroup = layout.createParallelGroup( GroupLayout.Alignment.LEADING );
	relationCBGroup.addComponent( relationJLabel );
	for ( UriComboBox relationCB : relationComboBoxes ) {
		relationCBGroup.addComponent( relationCB );
	}

	ParallelGroup objectCBGroup = layout.createParallelGroup( GroupLayout.Alignment.LEADING );
	objectCBGroup.addComponent( objectJLabel );
	for ( UriComboBox objectCB : objectComboBoxes ) {
		objectCBGroup.addComponent( objectCB );
	}

	ParallelGroup horizontalGroup = layout.createParallelGroup( GroupLayout.Alignment.TRAILING )
			.addGroup( layout.createSequentialGroup()
					.addGroup( removeButtonGroup )
					.addGroup( subjectCBGroup )
					.addGroup( relationCBGroup )
					.addGroup( objectCBGroup )
			)
			.addGroup( layout.createSequentialGroup()
					.addComponent( togrid )
					.addComponent( exportButton ) );

	return horizontalGroup;
}
 
开发者ID:Ostrich-Emulators,项目名称:semtool,代码行数:40,代码来源:ExportSpecificRelationshipsToLoadingSheetAction.java


示例5: doLayout

import javax.swing.GroupLayout.ParallelGroup; //导入依赖的package包/类
private void doLayout() {
	autoValidate();
	jFilters.removeAll();
	
	GroupLayout layout = new GroupLayout(jFilters);
	jFilters.setLayout(layout);
	layout.setAutoCreateGaps(true);
	layout.setAutoCreateContainerGaps(false);

	ParallelGroup horizontalGroup = layout.createParallelGroup();
	SequentialGroup verticalGroup = layout.createSequentialGroup();
	for (FilterPanel ownerPanel : ownerPanels) {
		horizontalGroup.addComponent(ownerPanel.getPanel());
		verticalGroup.addComponent(ownerPanel.getPanel());
	}

	for (FilterPanel flagPanel : flagPanels) {
		horizontalGroup.addComponent(flagPanel.getPanel());
		verticalGroup.addComponent(flagPanel.getPanel());
	}

	for (FilterPanel containerPanel : containerPanels) {
		horizontalGroup.addComponent(containerPanel.getPanel());
		verticalGroup.addComponent(containerPanel.getPanel());
	}

	layout.setVerticalGroup(verticalGroup);
	layout.setHorizontalGroup(horizontalGroup);
	getDialog().pack();
}
 
开发者ID:GoldenGnu,项目名称:jeveassets,代码行数:31,代码来源:StockpileDialog.java


示例6: makeTweaksLayout

import javax.swing.GroupLayout.ParallelGroup; //导入依赖的package包/类
private GroupLayout makeTweaksLayout(List<JCheckBox> tweaks) {
    GroupLayout gl = new GroupLayout(miscTweaksPanel);
    int numTweaks = tweaks.size();

    // Handle columns
    SequentialGroup columnsGroup = gl.createSequentialGroup().addContainerGap();
    int numCols = Math.min(TWEAK_COLS, numTweaks);
    ParallelGroup[] colGroups = new ParallelGroup[numCols];
    for (int col = 0; col < numCols; col++) {
        if (col > 0) {
            columnsGroup.addGap(18, 18, 18);
        }
        colGroups[col] = gl.createParallelGroup(GroupLayout.Alignment.LEADING);
        columnsGroup.addGroup(colGroups[col]);
    }
    for (int tweak = 0; tweak < numTweaks; tweak++) {
        colGroups[tweak % numCols].addComponent(tweaks.get(tweak));
    }
    columnsGroup.addContainerGap();
    gl.setHorizontalGroup(gl.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(columnsGroup));

    // And rows
    SequentialGroup rowsGroup = gl.createSequentialGroup().addContainerGap();
    int numRows = (numTweaks - 1) / numCols + 1;
    ParallelGroup[] rowGroups = new ParallelGroup[numRows];
    for (int row = 0; row < numRows; row++) {
        if (row > 0) {
            rowsGroup.addPreferredGap(ComponentPlacement.UNRELATED);
        }
        rowGroups[row] = gl.createParallelGroup(GroupLayout.Alignment.BASELINE);
        rowsGroup.addGroup(rowGroups[row]);
    }
    for (int tweak = 0; tweak < numTweaks; tweak++) {
        rowGroups[tweak / numCols].addComponent(tweaks.get(tweak));
    }
    rowsGroup.addContainerGap();
    gl.setVerticalGroup(gl.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(rowsGroup));
    return gl;
}
 
开发者ID:Dabomstew,项目名称:universal-pokemon-randomizer,代码行数:40,代码来源:RandomizerGUI.java


示例7: initComponent

import javax.swing.GroupLayout.ParallelGroup; //导入依赖的package包/类
private void initComponent() {
	this.initInputComponents();

	final GroupLayout groupLayout = new GroupLayout(this);
	groupLayout.setAutoCreateContainerGaps(true);
	groupLayout.setAutoCreateGaps(true);
	this.setLayout(groupLayout);

	SequentialGroup horizontalGroup = groupLayout.createSequentialGroup();
	ParallelGroup first = groupLayout.createParallelGroup(getLabelsAlignment());
	ParallelGroup second = groupLayout.createParallelGroup();
	ParallelGroup third = groupLayout.createParallelGroup();
	parameters.forEach(c -> {
		first.addComponent(descriptionLabels.get(c));
		second.addComponent(inputComponents.get(c));
		third.addComponent(helpLabels.get(c));
	});
	horizontalGroup
		.addGroup(first)
		.addGroup(second)
		.addGroup(third);
	groupLayout.setHorizontalGroup(horizontalGroup);

	SequentialGroup verticalGroup = groupLayout.createSequentialGroup();
	parameters.forEach(c -> {
		ParallelGroup current = groupLayout.createParallelGroup(Alignment.CENTER);
		current.addComponent(descriptionLabels.get(c));
		current.addComponent(inputComponents.get(c));
		current.addComponent(helpLabels.get(c));
		verticalGroup.addGroup(current);
	});
	groupLayout.setVerticalGroup(verticalGroup);
}
 
开发者ID:sing-group,项目名称:GC4S,代码行数:34,代码来源:InputParametersPanel.java


示例8: createLayout

import javax.swing.GroupLayout.ParallelGroup; //导入依赖的package包/类
private void createLayout() {
	this.setLayout(layout = new GroupLayout(this));

	setFloatable(false);
	
	SequentialGroup hGroup = layout.createSequentialGroup();
	ParallelGroup pGroup = layout.createParallelGroup(GroupLayout.Alignment.BASELINE);
	
	boolean isSubst = LookAndFeelManager.isSubstance();
	
	for(int i = 0; i < BUTTONCOUNT; i++) {
		if (isSubst) {
			hGroup.addComponent(buttons[i], sizes[i], buttons[i].getPreferredSize().width, Short.MAX_VALUE);
			pGroup.addComponent(buttons[i], 0, buttons[i].getPreferredSize().height, Short.MAX_VALUE);
		} else {
			hGroup.addComponent(buttons[i]);
			pGroup.addComponent(buttons[i]);
		}
		
		hGroup.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 0, Short.MAX_VALUE);
		final int fi = i;
		buttons[i].addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent arg0) {
				onClick(fi);
			}
		});
	}
	
	if (isSubst) {
		hGroup.addGap(4);
	}
	
	layout.setHorizontalGroup(hGroup);
	
	layout.setVerticalGroup(pGroup);
}
 
开发者ID:Mikescher,项目名称:jClipCorn,代码行数:38,代码来源:SmallClipCharSortSelector.java


示例9: buildAttributesV

import javax.swing.GroupLayout.ParallelGroup; //导入依赖的package包/类
private Group buildAttributesV(GroupLayout layout) {
    ParallelGroup statsSectionV = layout.createParallelGroup();

    statsSectionV.addGroup(layout.createSequentialGroup().addGroup(parallelPair(
            layout, lblIntelligence,
            parallelRadioArray(layout, rdoIntelligence))).addGroup(parallelPair(
            layout, lblWits,
            parallelRadioArray(layout, rdoWits))).addGroup(parallelPair(
            layout, lblResolve,
            parallelRadioArray(layout, rdoResolve))));
    statsSectionV.addGroup(layout.createSequentialGroup().addGroup(parallelPair(
            layout, lblStrength,
            parallelRadioArray(layout, rdoStrength))).addGroup(parallelPair(
            layout, lblDexterity,
            parallelRadioArray(layout, rdoDexterity))).addGroup(parallelPair(
            layout, lblStamina,
            parallelRadioArray(layout, rdoStamina))));

    statsSectionV.addGroup(layout.createSequentialGroup().addGroup(parallelPair(
            layout, lblPresence,
            parallelRadioArray(layout, rdoPresence))).addGroup(parallelPair(
            layout, lblManipulation,
            parallelRadioArray(layout, rdoManipulation))).addGroup(parallelPair(
            layout, lblComposure,
            parallelRadioArray(layout, rdoComposure))));

    return statsSectionV;
}
 
开发者ID:pikimix,项目名称:ChatProgram,代码行数:29,代码来源:Changeling.java


示例10: buildDetailsV

import javax.swing.GroupLayout.ParallelGroup; //导入依赖的package包/类
private Group buildDetailsV(GroupLayout layout) {
    ParallelGroup skillsSectionV = layout.createParallelGroup();

    skillsSectionV.addGroup(
            layout.createSequentialGroup()
            .addGap(5, 10, 15)
            .addGroup(
            parallelPair(layout,
            parallelPair(layout, lblBackgroud, scrBackground),
            (parallelPair(layout, lblDescription, scrDescription))))
            .addGap(5, 10, 15)
            .addGroup(layout.createParallelGroup()
            .addComponent(lblAge)
            .addComponent(spnAge)
            .addComponent(lblHeight)
            .addComponent(txtHeight))
            .addGap(5, 10, 15)
            .addGroup(layout.createParallelGroup()
            .addComponent(lblApparent)
            .addComponent(spnApparent)
            .addComponent(lblWeight)
            .addComponent(txtWeight))
            .addGap(5, 10, 15)
            .addGroup(layout.createParallelGroup()
            .addComponent(lblHair)
            .addComponent(txtHair)
            .addComponent(lblRace)
            .addComponent(txtRace))
            .addGap(5, 10, 15)
            .addGroup(layout.createParallelGroup()
            .addComponent(lblEyes)
            .addComponent(txtEyes)
            .addComponent(lblSex)
            .addComponent(txtSex))
            .addGap(5, 10, Short.MAX_VALUE));
    return skillsSectionV;
}
 
开发者ID:pikimix,项目名称:ChatProgram,代码行数:38,代码来源:Changeling.java


示例11: buildSpecH

import javax.swing.GroupLayout.ParallelGroup; //导入依赖的package包/类
private Group buildSpecH(GroupLayout layout) {
    ParallelGroup specSectionH = layout.createParallelGroup(
            Alignment.CENTER);
    for (int i = 0; i < cboSpecialty.length; i++) {
        specSectionH.addGroup(sequentialPair(layout, cboSpecialty[i],
                txtSpecialty[i]));
    }
    return specSectionH;
}
 
开发者ID:pikimix,项目名称:ChatProgram,代码行数:10,代码来源:Changeling.java


示例12: buildMeritsH

import javax.swing.GroupLayout.ParallelGroup; //导入依赖的package包/类
private Group buildMeritsH(GroupLayout layout) {
    ParallelGroup contractsSectionH = layout.createParallelGroup(
            Alignment.CENTER);
    for (int i = 0; i < cboMerits.length; i++) {
        contractsSectionH.addGroup(sequentialPair(layout, cboMerits[i],
                sequentialRadioArray(layout, rdoMerits[i])));
    }
    return contractsSectionH;
}
 
开发者ID:pikimix,项目名称:ChatProgram,代码行数:10,代码来源:Changeling.java


示例13: buildGoblinContractsH

import javax.swing.GroupLayout.ParallelGroup; //导入依赖的package包/类
private Group buildGoblinContractsH(GroupLayout layout) {
    ParallelGroup contractsSectionH = layout.createParallelGroup(
            Alignment.CENTER);
    for (int i = 0; i < cboContracts.length; i++) {
        contractsSectionH.addGroup(sequentialPair(layout, lblGoblin[i],
                txtGoblin[i]));

    }
    return contractsSectionH;
}
 
开发者ID:pikimix,项目名称:ChatProgram,代码行数:11,代码来源:Changeling.java


示例14: buildPledgesH

import javax.swing.GroupLayout.ParallelGroup; //导入依赖的package包/类
private Group buildPledgesH(GroupLayout layout) {
    ParallelGroup contractsSectionH = layout.createParallelGroup(
            Alignment.CENTER);
    contractsSectionH.addComponent(scrPledge);

    return contractsSectionH;
}
 
开发者ID:pikimix,项目名称:ChatProgram,代码行数:8,代码来源:Changeling.java


示例15: buildContractsH

import javax.swing.GroupLayout.ParallelGroup; //导入依赖的package包/类
private Group buildContractsH(GroupLayout layout) {
    ParallelGroup contractsSectionH = layout.createParallelGroup(
            Alignment.CENTER);
    for (int i = 0; i < cboContracts.length; i++) {
        contractsSectionH.addGroup(sequentialPair(layout, cboContracts[i],
                sequentialRadioArray(layout, rdoContracts[i])));

    }
    return contractsSectionH;
}
 
开发者ID:pikimix,项目名称:ChatProgram,代码行数:11,代码来源:Changeling.java


示例16: parallelPair

import javax.swing.GroupLayout.ParallelGroup; //导入依赖的package包/类
public static ParallelGroup parallelPair( GroupLayout layout,
        JComponent label,
        Component editable ) {
    return layout.createParallelGroup(GroupLayout.Alignment.CENTER)
            .addComponent(label)
            .addComponent(editable);
}
 
开发者ID:pikimix,项目名称:ChatProgram,代码行数:8,代码来源:Functions.java


示例17: parallelRadioArray

import javax.swing.GroupLayout.ParallelGroup; //导入依赖的package包/类
public static ParallelGroup parallelRadioArray( GroupLayout layout,
        Component[] array ) {
    ParallelGroup rtn = layout.createParallelGroup();
    for ( int i = 0; i < array.length; i++ ) {
        rtn.addComponent(array[i]);
    }
    return rtn;
}
 
开发者ID:pikimix,项目名称:ChatProgram,代码行数:9,代码来源:Functions.java


示例18: getTableCellRendererComponent

import javax.swing.GroupLayout.ParallelGroup; //导入依赖的package包/类
@Override
public Component getTableCellRendererComponent(JTable table,
		Object value, boolean isSelected, boolean hasFocus, int row,
		int column) {

	JPanel panel = new JPanel();
	if (value instanceof String[]) {
		String[] valueArray = (String[]) value;
		if (valueArray.length == 0)
			return panel;
		GroupLayout layout = new GroupLayout(panel);
		panel.setLayout(layout);
		layout.setAutoCreateGaps(true);
		layout.setAutoCreateContainerGaps(true);
		SequentialGroup cols = layout.createSequentialGroup();
		layout.setHorizontalGroup(cols);
		ParallelGroup col1 = layout
				.createParallelGroup(GroupLayout.Alignment.LEADING);
		ParallelGroup col2 = layout
				.createParallelGroup(GroupLayout.Alignment.TRAILING);
		cols.addGroup(col1)
				.addPreferredGap(
						LayoutStyle.ComponentPlacement.RELATED,
						GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
				.addGroup(col2);
		SequentialGroup rows = layout.createSequentialGroup();
		layout.setVerticalGroup(rows);
		for (int i = 0; i < valueArray.length; i++) {
			// the value array has null elements for
			// IdResource/Demand
			if (valueArray[i] != null) {
				/* TODO: Fix ArrayIndexOutofBounds Exception here 
				 * Update: Problem is actually above. Probably linked to resources without setters. */
				//System.out.println("ValueArray: " + valueArray[i]);
				//for (int j = 0; j < resParamNames.size(); j++) { System.out.println("resParamNames: " + resParamNames.get(j)); }
				JLabel label = new JLabel();
				if (resParamNames.get(row).length == 0)
					label.setText("max. param");
				else
					label.setText("max. " + resParamNames.get(row)[i]);
				JTextField tf = new JTextField(3);
				tf.setText(valueArray[i]);
				col1.addComponent(label);
				col2.addComponent(tf, GroupLayout.PREFERRED_SIZE,
						GroupLayout.DEFAULT_SIZE,
						GroupLayout.PREFERRED_SIZE);
				rows.addGroup(layout
						.createParallelGroup(
								GroupLayout.Alignment.CENTER)
						.addComponent(label).addComponent(tf));
			}
		}
	}
	table.setRowHeight(row, Math.max(table.getRowHeight(row),
			(int) panel.getPreferredSize().getHeight()));
	TableColumn cm = table.getColumnModel().getColumn(column);
	cm.setMinWidth(Math.max(cm.getMinWidth(), (int) panel
			.getPreferredSize().getWidth()));
	return panel;
}
 
开发者ID:KeepTheBeats,项目名称:alevin-svn2,代码行数:61,代码来源:ConstraintsGeneratorDialog.java


示例19: getTableCellEditorComponent

import javax.swing.GroupLayout.ParallelGroup; //导入依赖的package包/类
@Override
public Component getTableCellEditorComponent(JTable table,
		Object value, boolean isSelected, int row, int column) {
	panel = new JPanel();
	if (value instanceof String[]) {
		String[] valueArray = (String[]) value;
		if (valueArray.length == 0)
			return panel;
		GroupLayout layout = new GroupLayout(panel);
		panel.setLayout(layout);
		layout.setAutoCreateGaps(true);
		layout.setAutoCreateContainerGaps(true);
		SequentialGroup cols = layout.createSequentialGroup();
		layout.setHorizontalGroup(cols);
		ParallelGroup col1 = layout
				.createParallelGroup(GroupLayout.Alignment.LEADING);
		ParallelGroup col2 = layout
				.createParallelGroup(GroupLayout.Alignment.TRAILING);
		cols.addGroup(col1)
				.addPreferredGap(
						LayoutStyle.ComponentPlacement.RELATED,
						GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
				.addGroup(col2);
		SequentialGroup rows = layout.createSequentialGroup();
		layout.setVerticalGroup(rows);

		for (int i = 0; i < valueArray.length; i++) {
			// create the label. use the resource param name for both
			// resource and demand params as it should be the same. TODO
			JLabel label = new JLabel();
			if (resParamNames.get(row).length == 0)
				label.setText("max. param");
			else
				label.setText("max. " + resParamNames.get(row)[i]);
			JTextField tf = new JTextField(3);
			tf.setText(valueArray[i]);
			tf.setEditable(true);
			col1.addComponent(label);
			col2.addComponent(tf, GroupLayout.PREFERRED_SIZE,
					GroupLayout.DEFAULT_SIZE,
					GroupLayout.PREFERRED_SIZE);
			rows.addGroup(layout
					.createParallelGroup(GroupLayout.Alignment.CENTER)
					.addComponent(label).addComponent(tf));
		}
	}
	table.setRowHeight(row, Math.max(table.getRowHeight(row),
			(int) panel.getPreferredSize().getHeight()));
	TableColumn cm = table.getColumnModel().getColumn(column);
	cm.setMinWidth(Math.max(cm.getMinWidth(), (int) panel
			.getPreferredSize().getWidth()));
	return panel;
}
 
开发者ID:KeepTheBeats,项目名称:alevin-svn2,代码行数:54,代码来源:ConstraintsGeneratorDialog.java


示例20: setLayoutGroups

import javax.swing.GroupLayout.ParallelGroup; //导入依赖的package包/类
void setLayoutGroups(GroupLayout.ParallelGroup horizontalGroup,
        GroupLayout.SequentialGroup verticalGroup) {
    this.horizontalGroup = horizontalGroup;
    this.verticalGroup = verticalGroup;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:6,代码来源:AttachmentsPanel.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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