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


Java BasicArrowButton.SOUTH属性代码示例

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


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

示例1: createArrowButton

/**
 * <pre>
 * 重写下拉按钮,增加焦点颜色
 *
 * Rewrite the drop-down button to increase the focus color
 * </pre>
 *
 * @return arrow button info
 */
protected JButton createArrowButton()
{
    JButton button = new LuckComboBoxButton(BasicArrowButton.SOUTH)
    {
        private static final long serialVersionUID = -7259590635997077859L;

        @Override
        public LuckBorderField getBorderField()
        {
            return LuckComboBoxUI.this;
        }

        @Override
        public JComponent getParentComp()
        {
            return LuckComboBoxUI.this.comboBox;
        }
    };

    button.setName("ComboBox.arrowButton");

    return button;
}
 
开发者ID:freeseawind,项目名称:littleluck,代码行数:32,代码来源:LuckComboBoxUI.java

示例2: ImageTable

/**
 * Instantiates a new image table.
 */
public ImageTable() {
	super();

	Object[][] data = new Object[defaultDomtype.length][columnNames.length];
	for (int i = 0; i < defaultDomtype.length; i++) {
		data[i][0] = defaultDomtype[i];
	}

	// table
	tableModel = new MyTableModel(data, columnNames);

	setModel(tableModel);
	setBackground(new Color(169,169,169));
	getTableHeader().setReorderingAllowed(false);

	// mouse
	addMouseListener(this);
	setCellSelectionEnabled(true);

	new ArrowColumn(this, colUpButton, BasicArrowButton.NORTH);
	new ArrowColumn(this, colDownButton, BasicArrowButton.SOUTH);
	new AddingColumn(this, colAddImage);

	TableColumn column = (TableColumn) this.getColumnModel().getColumn(colAddImage);
	column.setMaxWidth(50);
	column = (TableColumn) getColumnModel().getColumn(colDownButton);
	column.setMaxWidth(50);
	column = (TableColumn) getColumnModel().getColumn(colUpButton);
	column.setMaxWidth(50);
	setVisible(true);
}
 
开发者ID:spatialsimulator,项目名称:XitoSBML,代码行数:34,代码来源:ImageTable.java

示例3: createArrowButton

@Override 
protected JButton createArrowButton() {
    return new MyBasicArrowButton(
            BasicArrowButton.SOUTH,
            basicArrowButton_Background, //UIManager.getColor("ScrollBar.thumb"),             //Background
            basicArrowButton_Background, //UIManager.getColor("ScrollBar.thumbShadow"),
            basicArrowButton_Foreground, //UIManager.getColor("ScrollBar.thumbDarkShadow"),   //Rand unten Rechts , Pfeilfarbe
            basicArrowButton_Background); //UIManager.getColor("ScrollBar.thumbHighlight"));   
}
 
开发者ID:R3d-Dragon,项目名称:jMovieManager,代码行数:9,代码来源:MyBasicComboBoxUI.java

示例4: doButtonsLayout

private void doButtonsLayout(JPanel buttonPanel) {
  buttonPanel.setBorder(BorderFactory.createLoweredBevelBorder());
  GridBagConstraints gc = new GridBagConstraints();
  gc.gridx=0;
  buttonUp = new BasicArrowButtonFixedSize(BasicArrowButton.NORTH);
  buttonDown = new BasicArrowButtonFixedSize(BasicArrowButton.SOUTH);
  buttonPanel.add(buttonUp, gc);
  buttonPanel.add(buttonDown, gc);
}
 
开发者ID:atdl4j,项目名称:atdl4j,代码行数:9,代码来源:SwingSpinnerWidget.java

示例5: createArrowButton

@Override
protected JButton createArrowButton(){
    return new AccountSelectionArrowButton(BasicArrowButton.SOUTH);
}
 
开发者ID:s0cks,项目名称:theCube,代码行数:4,代码来源:AccountSelectionComboBox.java

示例6: DateField

public DateField() {
    dateText = new JTextField();
    dateDropdownButton = new BasicArrowButton(BasicArrowButton.SOUTH);
    init();
}
 
开发者ID:Torridity,项目名称:dsworkbench,代码行数:5,代码来源:DateField.java

示例7: TimeField

public TimeField() {
    timeText = new JTextField();
    timeDropdownButton = new BasicArrowButton(BasicArrowButton.SOUTH);
    init();
}
 
开发者ID:Torridity,项目名称:dsworkbench,代码行数:5,代码来源:TimeField.java

示例8: createArrowButton

@Override
protected JButton createArrowButton() {
	JButton button = new ScrollbarUiButton(BasicArrowButton.SOUTH, UIDefaults.ARROW_COLOR);
	button.setName("ComboBox.arrowButton");
	return button;
}
 
开发者ID:jsettlers,项目名称:settlers-remake,代码行数:6,代码来源:SettlersComboboxUi.java


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