本文整理汇总了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;
}
示例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);
}
示例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"));
}
示例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);
}
示例5: createArrowButton
@Override
protected JButton createArrowButton(){
return new AccountSelectionArrowButton(BasicArrowButton.SOUTH);
}
示例6: DateField
public DateField() {
dateText = new JTextField();
dateDropdownButton = new BasicArrowButton(BasicArrowButton.SOUTH);
init();
}
示例7: TimeField
public TimeField() {
timeText = new JTextField();
timeDropdownButton = new BasicArrowButton(BasicArrowButton.SOUTH);
init();
}
示例8: createArrowButton
@Override
protected JButton createArrowButton() {
JButton button = new ScrollbarUiButton(BasicArrowButton.SOUTH, UIDefaults.ARROW_COLOR);
button.setName("ComboBox.arrowButton");
return button;
}