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


Java TitledBorder.LEADING属性代码示例

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


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

示例1: CollisionBoxPanel

public CollisionBoxPanel() {
  TitledBorder border = new TitledBorder(new LineBorder(new Color(128, 128, 128)), Resources.get("panel_collisionBox"), TitledBorder.LEADING, TitledBorder.TOP, null, null);
  border.setTitleFont(border.getTitleFont().deriveFont(Font.BOLD));
  setBorder(border);

  chckbxIsObstacle = new JCheckBox(Resources.get("panel_isObstacle"));

  GroupLayout groupLayout = new GroupLayout(this);
  groupLayout.setHorizontalGroup(
      groupLayout.createParallelGroup(Alignment.LEADING)
          .addGroup(groupLayout.createSequentialGroup()
              .addContainerGap()
              .addComponent(chckbxIsObstacle, GroupLayout.PREFERRED_SIZE, 108, GroupLayout.PREFERRED_SIZE)
              .addContainerGap(322, Short.MAX_VALUE)));
  groupLayout.setVerticalGroup(
      groupLayout.createParallelGroup(Alignment.LEADING)
          .addGroup(groupLayout.createSequentialGroup()
              .addComponent(chckbxIsObstacle, GroupLayout.PREFERRED_SIZE, 21, GroupLayout.PREFERRED_SIZE)
              .addContainerGap(258, Short.MAX_VALUE)));
  setLayout(groupLayout);

  this.setupChangedListeners();
}
 
开发者ID:gurkenlabs,项目名称:litiengine,代码行数:23,代码来源:CollisionBoxPanel.java

示例2: StaticShadowPanel

public StaticShadowPanel() {
  TitledBorder border = new TitledBorder(new LineBorder(new Color(128, 128, 128)), Resources.get("panel_staticShadow"), TitledBorder.LEADING, TitledBorder.TOP, null, null);
  border.setTitleFont(border.getTitleFont().deriveFont(Font.BOLD));
  setBorder(border);

  JLabel lblShadowType = new JLabel(Resources.get("panel_shadowType"));

  comboBoxShadowType = new JComboBox<>();
  comboBoxShadowType.setModel(new DefaultComboBoxModel<StaticShadowType>(StaticShadowType.values()));

  GroupLayout groupLayout = new GroupLayout(this);
  groupLayout.setHorizontalGroup(
      groupLayout.createParallelGroup(Alignment.LEADING)
          .addGroup(groupLayout.createSequentialGroup()
              .addContainerGap()
              .addComponent(lblShadowType, GroupLayout.PREFERRED_SIZE, 51, GroupLayout.PREFERRED_SIZE)
              .addGap(10)
              .addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
                  .addGroup(groupLayout.createSequentialGroup()
                      .addComponent(comboBoxShadowType, 0, 95, Short.MAX_VALUE)
                      .addGap(4)))));
  groupLayout.setVerticalGroup(
      groupLayout.createParallelGroup(Alignment.LEADING)
          .addGroup(groupLayout.createSequentialGroup()
              .addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
                  .addComponent(comboBoxShadowType, GroupLayout.PREFERRED_SIZE, 19, GroupLayout.PREFERRED_SIZE)
                  .addComponent(lblShadowType, GroupLayout.PREFERRED_SIZE, 13, GroupLayout.PREFERRED_SIZE))
              .addPreferredGap(ComponentPlacement.UNRELATED)
              .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
  setLayout(groupLayout);

  this.setupChangedListeners();
}
 
开发者ID:gurkenlabs,项目名称:litiengine,代码行数:33,代码来源:StaticShadowPanel.java

示例3: EmitterPanel

public EmitterPanel() {
  TitledBorder border = new TitledBorder(new LineBorder(new Color(128, 128, 128)), Resources.get("panel_emitter"), TitledBorder.LEADING, TitledBorder.TOP, null, null);
  border.setTitleFont(border.getTitleFont().deriveFont(Font.BOLD));
  setBorder(border);

  JLabel lblShadowType = new JLabel(Resources.get("panel_emitterType"));

  textFieldType = new JTextField();
  textFieldType.setColumns(10);

  GroupLayout groupLayout = new GroupLayout(this);
  groupLayout.setHorizontalGroup(
      groupLayout.createParallelGroup(Alignment.LEADING)
          .addGroup(groupLayout.createSequentialGroup()
              .addContainerGap()
              .addComponent(lblShadowType, GroupLayout.PREFERRED_SIZE, 51, GroupLayout.PREFERRED_SIZE)
              .addPreferredGap(ComponentPlacement.RELATED)
              .addComponent(textFieldType, GroupLayout.DEFAULT_SIZE, 95, Short.MAX_VALUE)
              .addContainerGap()));
  groupLayout.setVerticalGroup(
      groupLayout.createParallelGroup(Alignment.LEADING)
          .addGroup(groupLayout.createSequentialGroup()
              .addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
                  .addComponent(lblShadowType, GroupLayout.PREFERRED_SIZE, 13, GroupLayout.PREFERRED_SIZE)
                  .addComponent(textFieldType, GroupLayout.PREFERRED_SIZE, 19, GroupLayout.PREFERRED_SIZE))
              .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
  setLayout(groupLayout);

  this.setupChangedListeners();
}
 
开发者ID:gurkenlabs,项目名称:litiengine,代码行数:30,代码来源:EmitterPanel.java

示例4: JustificationPropertyEditor

public JustificationPropertyEditor() {
    super(
        new int[] {
            TitledBorder.DEFAULT_JUSTIFICATION,
            TitledBorder.LEFT,
            TitledBorder.CENTER,
            TitledBorder.RIGHT,
            TitledBorder.LEADING,
            TitledBorder.TRAILING,
        },
        new String[] {
            "javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION", // NOI18N
            "javax.swing.border.TitledBorder.LEFT", // NOI18N
            "javax.swing.border.TitledBorder.CENTER", // NOI18N
            "javax.swing.border.TitledBorder.RIGHT", // NOI18N
            "javax.swing.border.TitledBorder.LEADING", // NOI18N
            "javax.swing.border.TitledBorder.TRAILING", // NOI18N
        },
        new String[] {
            "VALUE_JustDefault", // NOI18N
            "VALUE_JustLeft", // NOI18N
            "VALUE_JustCenter", // NOI18N
            "VALUE_JustRight", // NOI18N
            "VALUE_JustLeading", // NOI18N
            "VALUE_JustTrailing", // NOI18N
        }
    );
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:28,代码来源:TitledBorderBeanInfo.java

示例5: SpawnpointPanel

public SpawnpointPanel() {
  TitledBorder border = new TitledBorder(new LineBorder(new Color(128, 128, 128)), Resources.get("panel_spawnPoint"), TitledBorder.LEADING, TitledBorder.TOP, null, null);
  border.setTitleFont(border.getTitleFont().deriveFont(Font.BOLD));
  setBorder(border);

  JLabel lblShadowType = new JLabel(Resources.get("panel_entity"));

  textFieldType = new JTextField();
  textFieldType.setColumns(10);

  JLabel lblDirection = new JLabel(Resources.get("panel_direction"));

  comboBoxDirection = new JComboBox<>();
  comboBoxDirection.setModel(new DefaultComboBoxModel<Direction>(Direction.values()));

  GroupLayout groupLayout = new GroupLayout(this);
  groupLayout.setHorizontalGroup(
      groupLayout.createParallelGroup(Alignment.LEADING)
          .addGroup(groupLayout.createSequentialGroup()
              .addContainerGap()
              .addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
                  .addGroup(groupLayout.createSequentialGroup()
                      .addComponent(lblShadowType, GroupLayout.PREFERRED_SIZE, 51, GroupLayout.PREFERRED_SIZE)
                      .addPreferredGap(ComponentPlacement.RELATED)
                      .addComponent(textFieldType, GroupLayout.DEFAULT_SIZE, 371, Short.MAX_VALUE))
                  .addGroup(groupLayout.createSequentialGroup()
                      .addComponent(lblDirection, GroupLayout.PREFERRED_SIZE, 51, GroupLayout.PREFERRED_SIZE)
                      .addPreferredGap(ComponentPlacement.RELATED)
                      .addComponent(comboBoxDirection, 0, 371, Short.MAX_VALUE)))
              .addGap(4)));
  groupLayout.setVerticalGroup(
      groupLayout.createParallelGroup(Alignment.LEADING)
          .addGroup(groupLayout.createSequentialGroup()
              .addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
                  .addComponent(lblShadowType, GroupLayout.PREFERRED_SIZE, 13, GroupLayout.PREFERRED_SIZE)
                  .addComponent(textFieldType, GroupLayout.PREFERRED_SIZE, 19, GroupLayout.PREFERRED_SIZE))
              .addPreferredGap(ComponentPlacement.RELATED)
              .addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
                  .addComponent(lblDirection, GroupLayout.PREFERRED_SIZE, 13, GroupLayout.PREFERRED_SIZE)
                  .addComponent(comboBoxDirection, GroupLayout.PREFERRED_SIZE, 19, GroupLayout.PREFERRED_SIZE))
              .addContainerGap(226, Short.MAX_VALUE)));
  setLayout(groupLayout);

  this.setupChangedListeners();
}
 
开发者ID:gurkenlabs,项目名称:litiengine,代码行数:45,代码来源:SpawnpointPanel.java

示例6: DecorMobPanel

/**
 * Create the panel.
 */
public DecorMobPanel() {
  TitledBorder border = new TitledBorder(new LineBorder(new Color(128, 128, 128)), Resources.get("panel_decorMob"), TitledBorder.LEADING, TitledBorder.TOP, null, null);
  border.setTitleFont(border.getTitleFont().deriveFont(Font.BOLD));
  setBorder(border);

  JLabel lblSprite = new JLabel(Resources.get("panel_sprite"));

  comboBoxSpriteSheets = new JComboBox<>();
  comboBoxSpriteSheets.setRenderer(new MyComboRenderer());

  JLabel lblBehaviour = new JLabel(Resources.get("panel_behavior"));

  comboBoxBehaviour = new JComboBox<>();
  comboBoxBehaviour.setModel(new DefaultComboBoxModel<MovementBehavior>(MovementBehavior.values()));

  lblVvelocity = new JLabel(Resources.get("panel_velocity"));

  spinnerVelocity = new JSpinner();
  spinnerVelocity.setModel(new SpinnerNumberModel(0, 0, 100, 1));

  chckbxAttackable = new JCheckBox(Resources.get("panel_attackable"));
  GroupLayout groupLayout = new GroupLayout(this);
  groupLayout.setHorizontalGroup(
      groupLayout.createParallelGroup(Alignment.LEADING)
          .addGroup(groupLayout.createSequentialGroup()
              .addContainerGap()
              .addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
                  .addGroup(groupLayout.createSequentialGroup()
                      .addComponent(lblSprite, GroupLayout.PREFERRED_SIZE, 51, GroupLayout.PREFERRED_SIZE)
                      .addPreferredGap(ComponentPlacement.RELATED)
                      .addComponent(comboBoxSpriteSheets, 0, 95, Short.MAX_VALUE)
                      .addGap(10))
                  .addGroup(groupLayout.createSequentialGroup()
                      .addComponent(lblBehaviour, GroupLayout.PREFERRED_SIZE, 51, GroupLayout.PREFERRED_SIZE)
                      .addPreferredGap(ComponentPlacement.RELATED)
                      .addComponent(comboBoxBehaviour, 0, 95, Short.MAX_VALUE)
                      .addContainerGap())
                  .addGroup(groupLayout.createSequentialGroup()
                      .addComponent(lblVvelocity, GroupLayout.PREFERRED_SIZE, 51, GroupLayout.PREFERRED_SIZE)
                      .addPreferredGap(ComponentPlacement.RELATED)
                      .addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
                          .addGroup(groupLayout.createSequentialGroup()
                              .addComponent(chckbxAttackable, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                              .addGap(28))
                          .addComponent(spinnerVelocity, GroupLayout.DEFAULT_SIZE, 95, Short.MAX_VALUE))
                      .addContainerGap()))));
  groupLayout.setVerticalGroup(
      groupLayout.createParallelGroup(Alignment.LEADING)
          .addGroup(groupLayout.createSequentialGroup()
              .addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
                  .addComponent(lblSprite, GroupLayout.PREFERRED_SIZE, 13, GroupLayout.PREFERRED_SIZE)
                  .addComponent(comboBoxSpriteSheets, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
              .addPreferredGap(ComponentPlacement.UNRELATED)
              .addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
                  .addComponent(lblBehaviour, GroupLayout.PREFERRED_SIZE, 13, GroupLayout.PREFERRED_SIZE)
                  .addComponent(comboBoxBehaviour, GroupLayout.PREFERRED_SIZE, 19, GroupLayout.PREFERRED_SIZE))
              .addPreferredGap(ComponentPlacement.UNRELATED)
              .addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
                  .addComponent(lblVvelocity, GroupLayout.PREFERRED_SIZE, 13, GroupLayout.PREFERRED_SIZE)
                  .addComponent(spinnerVelocity, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
              .addPreferredGap(ComponentPlacement.UNRELATED)
              .addComponent(chckbxAttackable)
              .addContainerGap(171, Short.MAX_VALUE)));
  setLayout(groupLayout);
  this.setupChangedListeners();
}
 
开发者ID:gurkenlabs,项目名称:litiengine,代码行数:69,代码来源:DecorMobPanel.java

示例7: PropPanel

/**
 * Create the panel.
 */
public PropPanel() {
  TitledBorder border = new TitledBorder(new LineBorder(new Color(128, 128, 128)), Resources.get("panel_prop"), TitledBorder.LEADING, TitledBorder.TOP, null, null);
  border.setTitleFont(border.getTitleFont().deriveFont(Font.BOLD));
  setBorder(border);

  JLabel lblHealth = new JLabel(Resources.get("panel_health"));

  spinnerHealth = new JSpinner();
  spinnerHealth.setModel(new SpinnerNumberModel(100, 0, 1000000, 1));

  JLabel lblMaterial = new JLabel(Resources.get("panel_material"));

  comboBoxMaterial = new JComboBox<>();
  comboBoxMaterial.setModel(new DefaultComboBoxModel<Material>(Material.values()));

  JLabel lblSprite = new JLabel(Resources.get("panel_sprite"));

  comboBoxSpriteSheets = new JComboBox<>();
  comboBoxSpriteSheets.setRenderer(new MyComboRenderer());

  chckbxIndestructible = new JCheckBox(Resources.get("panel_destructible"));

  chckbxIsObstacle = new JCheckBox(Resources.get("panel_isObstacle"));

  chckbxShadow = new JCheckBox("shadow");
  GroupLayout groupLayout = new GroupLayout(this);
  groupLayout.setHorizontalGroup(
      groupLayout.createParallelGroup(Alignment.LEADING)
          .addGroup(groupLayout.createSequentialGroup()
              .addContainerGap()
              .addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
                  .addComponent(lblHealth, GroupLayout.PREFERRED_SIZE, 51, GroupLayout.PREFERRED_SIZE)
                  .addComponent(lblMaterial, GroupLayout.PREFERRED_SIZE, 51, GroupLayout.PREFERRED_SIZE)
                  .addComponent(lblSprite, GroupLayout.PREFERRED_SIZE, 51, GroupLayout.PREFERRED_SIZE))
              .addPreferredGap(ComponentPlacement.RELATED)
              .addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
                  .addComponent(chckbxShadow, GroupLayout.PREFERRED_SIZE, 81, GroupLayout.PREFERRED_SIZE)
                  .addComponent(comboBoxMaterial, 0, 365, Short.MAX_VALUE)
                  .addComponent(spinnerHealth, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                  .addComponent(comboBoxSpriteSheets, 0, 365, Short.MAX_VALUE)
                  .addGroup(groupLayout.createParallelGroup(Alignment.TRAILING, false)
                      .addComponent(chckbxIsObstacle, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                      .addComponent(chckbxIndestructible, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
              .addContainerGap()));
  groupLayout.setVerticalGroup(
      groupLayout.createParallelGroup(Alignment.LEADING)
          .addGroup(groupLayout.createSequentialGroup()
              .addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
                  .addComponent(lblHealth, GroupLayout.PREFERRED_SIZE, 13, GroupLayout.PREFERRED_SIZE)
                  .addComponent(spinnerHealth, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE))
              .addPreferredGap(ComponentPlacement.RELATED)
              .addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
                  .addComponent(lblMaterial, GroupLayout.PREFERRED_SIZE, 13, GroupLayout.PREFERRED_SIZE)
                  .addComponent(comboBoxMaterial, GroupLayout.PREFERRED_SIZE, 19, GroupLayout.PREFERRED_SIZE))
              .addPreferredGap(ComponentPlacement.RELATED)
              .addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
                  .addComponent(comboBoxSpriteSheets, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                  .addComponent(lblSprite, GroupLayout.PREFERRED_SIZE, 13, GroupLayout.PREFERRED_SIZE))
              .addPreferredGap(ComponentPlacement.RELATED)
              .addComponent(chckbxIndestructible)
              .addPreferredGap(ComponentPlacement.UNRELATED)
              .addComponent(chckbxIsObstacle, GroupLayout.PREFERRED_SIZE, 21, GroupLayout.PREFERRED_SIZE)
              .addPreferredGap(ComponentPlacement.RELATED)
              .addComponent(chckbxShadow, GroupLayout.PREFERRED_SIZE, 21, GroupLayout.PREFERRED_SIZE)
              .addContainerGap(138, Short.MAX_VALUE)));
  setLayout(groupLayout);
  this.setupChangedListeners();
}
 
开发者ID:gurkenlabs,项目名称:litiengine,代码行数:71,代码来源:PropPanel.java

示例8: CollisionPanel

/**
 * Create the panel.
 */
public CollisionPanel() {
  TitledBorder border = new TitledBorder(new LineBorder(new Color(128, 128, 128)), Resources.get("panel_collisionEntity"), TitledBorder.LEADING, TitledBorder.TOP, null, null);
  border.setTitleFont(border.getTitleFont().deriveFont(Font.BOLD));
  setBorder(border);

  JLabel lblHealth = new JLabel(Resources.get("panel_collision"));

  JLabel lblMaterial = new JLabel(Resources.get("panel_width"));

  chckbxHasCollision = new JCheckBox(" ");

  JLabel lblHeightFactor = new JLabel(Resources.get("panel_height"));

  spinnerWidth = new JSpinner();
  spinnerWidth.setModel(new SpinnerNumberModel(0, 0, null, 0.5f));

  spinnerHeight = new JSpinner();
  spinnerHeight.setModel(new SpinnerNumberModel(0, 0, null, 0.5f));

  comboBoxAlign = new JComboBox<>();
  comboBoxAlign.setModel(new DefaultComboBoxModel<Align>(Align.values()));

  comboBoxValign = new JComboBox<>();
  comboBoxValign.setModel(new DefaultComboBoxModel<Valign>(Valign.values()));

  GroupLayout groupLayout = new GroupLayout(this);
  groupLayout.setHorizontalGroup(
      groupLayout.createParallelGroup(Alignment.LEADING)
          .addGroup(groupLayout.createSequentialGroup()
              .addContainerGap()
              .addGroup(groupLayout.createParallelGroup(Alignment.LEADING, false)
                  .addGroup(groupLayout.createSequentialGroup()
                      .addComponent(lblHealth, GroupLayout.PREFERRED_SIZE, 51, GroupLayout.PREFERRED_SIZE)
                      .addPreferredGap(ComponentPlacement.RELATED)
                      .addComponent(chckbxHasCollision))
                  .addGroup(groupLayout.createSequentialGroup()
                      .addComponent(lblMaterial, GroupLayout.PREFERRED_SIZE, 31, GroupLayout.PREFERRED_SIZE)
                      .addPreferredGap(ComponentPlacement.RELATED)
                      .addComponent(spinnerWidth))
                  .addGroup(groupLayout.createSequentialGroup()
                      .addComponent(lblHeightFactor)
                      .addPreferredGap(ComponentPlacement.UNRELATED)
                      .addComponent(spinnerHeight, GroupLayout.PREFERRED_SIZE, 44, GroupLayout.PREFERRED_SIZE)))
              .addPreferredGap(ComponentPlacement.RELATED)
              .addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
                  .addComponent(comboBoxAlign, 0, 53, Short.MAX_VALUE)
                  .addComponent(comboBoxValign, 0, 53, Short.MAX_VALUE))
              .addContainerGap()));
  groupLayout.setVerticalGroup(
      groupLayout.createParallelGroup(Alignment.LEADING)
          .addGroup(groupLayout.createSequentialGroup()
              .addContainerGap()
              .addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
                  .addComponent(lblHealth, GroupLayout.PREFERRED_SIZE, 13, GroupLayout.PREFERRED_SIZE)
                  .addComponent(chckbxHasCollision))
              .addPreferredGap(ComponentPlacement.UNRELATED)
              .addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
                  .addComponent(lblMaterial, GroupLayout.PREFERRED_SIZE, 13, GroupLayout.PREFERRED_SIZE)
                  .addComponent(spinnerWidth, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                  .addComponent(comboBoxAlign, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
              .addPreferredGap(ComponentPlacement.UNRELATED)
              .addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
                  .addComponent(lblHeightFactor, GroupLayout.PREFERRED_SIZE, 13, GroupLayout.PREFERRED_SIZE)
                  .addComponent(spinnerHeight, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                  .addComponent(comboBoxValign, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
              .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
  setLayout(groupLayout);
  this.setupChangedListeners();
}
 
开发者ID:gurkenlabs,项目名称:litiengine,代码行数:72,代码来源:CollisionPanel.java

示例9: addTitle

private TitledBorder addTitle(String title, Font f) {
	return new TitledBorder(null, title, TitledBorder.LEADING, TitledBorder.TOP, f, new java.awt.Color(0, 0, 0));
}
 
开发者ID:max6cn,项目名称:jmt,代码行数:3,代码来源:MMQueues.java


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