當前位置: 首頁>>代碼示例>>Java>>正文


Java TitledBorder.TOP屬性代碼示例

本文整理匯總了Java中javax.swing.border.TitledBorder.TOP屬性的典型用法代碼示例。如果您正苦於以下問題:Java TitledBorder.TOP屬性的具體用法?Java TitledBorder.TOP怎麽用?Java TitledBorder.TOP使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在javax.swing.border.TitledBorder的用法示例。


在下文中一共展示了TitledBorder.TOP屬性的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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: PositionPropertyEditor

public PositionPropertyEditor() {
    super(
        new int[] {
            TitledBorder.DEFAULT_POSITION,
            TitledBorder.ABOVE_TOP,
            TitledBorder.TOP,
            TitledBorder.BELOW_TOP,
            TitledBorder.ABOVE_BOTTOM,
            TitledBorder.BOTTOM,
            TitledBorder.BELOW_BOTTOM
        },
        new String[] {
            "javax.swing.border.TitledBorder.DEFAULT_POSITION", // NOI18N
            "javax.swing.border.TitledBorder.ABOVE_TOP", // NOI18N
            "javax.swing.border.TitledBorder.TOP", // NOI18N
            "javax.swing.border.TitledBorder.BELOW_TOP", // NOI18N
            "javax.swing.border.TitledBorder.ABOVE_BOTTOM", // NOI18N
            "javax.swing.border.TitledBorder.BOTTOM", // NOI18N
            "javax.swing.border.TitledBorder.BELOW_BOTTOM" // NOI18N
        },
        new String[] {
            "VALUE_PosDefault", // NOI18N
            "VALUE_PosAboveTop", // NOI18N
            "VALUE_PosTop", // NOI18N
            "VALUE_PosBelowTop", // NOI18N
            "VALUE_PosAboveBottom", // NOI18N
            "VALUE_PosBottom", // NOI18N
            "VALUE_PosBelowBottom", // NOI18N
        }
    );
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:31,代碼來源:TitledBorderBeanInfo.java

示例5: MyPanel

public MyPanel(){
	// Title area
	treeFrame = createVerticalPanel(false);
	add(treeFrame);
	titledborder = new TitledBorder(null, "title", TitledBorder.LEFT, TitledBorder.TOP);
	treeFrame.setBorder(new CompoundBorder(titledborder, border5));
	setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
	treeFrame.setVisible(false);
}
 
開發者ID:HML-UnBBayes,項目名稱:hml,代碼行數:9,代碼來源:MyPanel.java

示例6: 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

示例7: 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

示例8: 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

示例9: 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

示例10: 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.TOP屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。