本文整理汇总了Java中javax.swing.GroupLayout.ParallelGroup.addGroup方法的典型用法代码示例。如果您正苦于以下问题:Java ParallelGroup.addGroup方法的具体用法?Java ParallelGroup.addGroup怎么用?Java ParallelGroup.addGroup使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javax.swing.GroupLayout.ParallelGroup
的用法示例。
在下文中一共展示了ParallelGroup.addGroup方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: 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)
);
}
示例2: 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;
}
示例3: 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;
}
示例4: 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;
}
示例5: 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;
}
示例6: 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;
}
示例7: 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;
}
示例8: displayDecisionVariables
import javax.swing.GroupLayout.ParallelGroup; //导入方法依赖的package包/类
private void displayDecisionVariables() {
Panel dvPanel = new Panel();
ScrollPane scrollPane = new ScrollPane();
GroupLayout dvlayout = new GroupLayout(dvPanel);
dvlayout.setAutoCreateGaps(true);
dvlayout.setAutoCreateContainerGaps(true);
ParallelGroup groupForElementsInLine = dvlayout.createParallelGroup(Alignment.LEADING);
SequentialGroup groupForElementsInColumns = dvlayout.createSequentialGroup();
for (Displayable displayable : decisionVariables) {
List<InfoGUI> infos = displayable.getInfo();
for (InfoGUI infoGUI : infos) {
DecisionVariableGUI dvGui1 = new DecisionVariableGUI(infoGUI);
groupForElementsInLine.addGroup((dvlayout.createSequentialGroup().addComponent(dvGui1.getLabel())
.addComponent(dvGui1.getComponent())));
groupForElementsInColumns.addGroup((dvlayout.createParallelGroup(Alignment.CENTER)
.addComponent(dvGui1.getLabel()).addComponent(dvGui1.getComponent())));
mapWithControls.add(dvGui1);
}
}
dvlayout.setHorizontalGroup(groupForElementsInLine);
dvlayout.setVerticalGroup(groupForElementsInColumns);
dvPanel.setLayout(dvlayout);
dvPanel.setBackground(Color.lightGray);
Collections.sort(mapWithControls);
Dimension scrollPaneDimension = new Dimension(dvPanel.getPreferredSize().width + 30,
dvPanel.getPreferredSize().height + 35);
scrollPane.setPreferredSize(new Dimension(250, 700));
if (scrollPaneDimension.height < scrollPane.getPreferredSize().height) {
scrollPane.setPreferredSize(scrollPaneDimension);
}
scrollPane.add(dvPanel);
controlPanel.add(scrollPane);
}
示例9: buildSkillsV
import javax.swing.GroupLayout.ParallelGroup; //导入方法依赖的package包/类
private Group buildSkillsV(GroupLayout layout) {
ParallelGroup skillsSectionV = layout.createParallelGroup(
GroupLayout.Alignment.CENTER);
// Mental
skillsSectionV.addGroup(layout.createSequentialGroup().addGroup(
parallelPair(layout, lblAcademics, parallelRadioArray(
layout, rdoAcademics))).addGroup(parallelPair(layout,
lblComputer, parallelRadioArray(
layout, rdoComputer))).addGroup(parallelPair(layout, lblCrafts,
parallelRadioArray(
layout, rdoCrafts))).addGroup(parallelPair(layout,
lblInvestigation,
parallelRadioArray(
layout, rdoInvestigation))).addGroup(parallelPair(layout,
lblMedicine, parallelRadioArray(
layout, rdoMedicine))).addGroup(parallelPair(layout, lblOccult,
parallelRadioArray(
layout, rdoOccult))).addGroup(parallelPair(layout, lblPolitics,
parallelRadioArray(
layout, rdoPolitics))).addGroup(parallelPair(layout, lblScience,
parallelRadioArray(
layout, rdoScience))));
// Physical
skillsSectionV.addGroup(layout.createSequentialGroup().addGroup(parallelPair(
layout, lblAthletics,
parallelRadioArray(
layout, rdoAthletics))).addGroup(parallelPair(layout, lblBrawl,
parallelRadioArray(
layout, rdoBrawl))).addGroup(parallelPair(layout, lblDrive,
parallelRadioArray(
layout, rdoDrive))).addGroup(parallelPair(layout, lblFirearms,
parallelRadioArray(
layout, rdoFirearms))).addGroup(parallelPair(layout, lblLarceny,
parallelRadioArray(
layout, rdoLarceny))).addGroup(parallelPair(layout, lblStealth,
parallelRadioArray(
layout, rdoStealth))).addGroup(parallelPair(layout, lblSurvival,
parallelRadioArray(
layout, rdoSurvival))).addGroup(parallelPair(layout, lblWeaponry,
parallelRadioArray(
layout, rdoWeaponry))));
// Social
skillsSectionV.addGroup(layout.createSequentialGroup().addGroup(parallelPair(
layout, lblAnimalKen,
parallelRadioArray(
layout, rdoAnimalKen))).addGroup(parallelPair(layout, lblEmpathy,
parallelRadioArray(
layout, rdoEmpathy))).addGroup(parallelPair(layout,
lblExpression,
parallelRadioArray(
layout, rdoExpression))).addGroup(parallelPair(layout,
lblIntimidation,
parallelRadioArray(
layout, rdoIntimidation))).addGroup(parallelPair(layout,
lblPersuasion,
parallelRadioArray(
layout, rdoPersuasion))).addGroup(parallelPair(layout,
lblSocialize, parallelRadioArray(
layout, rdoSocialize))).addGroup(parallelPair(layout,
lblStreetwise,
parallelRadioArray(
layout, rdoStreetwise))).addGroup(parallelPair(layout,
lblSubterfuge,
parallelRadioArray(
layout, rdoSubterfuge))));
return skillsSectionV;
}