Exemple #1
0
 protected void setButtonBorder() {
   if (Utilities.isLeftToRight(comboBox)) {
     Border border = BorderFactory.createMatteBorder(0, 1, 0, 0, BaseLookAndFeel.getFrameColor());
     arrowButton.setBorder(border);
   } else {
     Border border = BorderFactory.createMatteBorder(0, 0, 0, 1, BaseLookAndFeel.getFrameColor());
     arrowButton.setBorder(border);
   }
 }
Exemple #2
0
 public JButton createArrowButton() {
   JButton button = new ArrowButton();
   if (Utilities.isLeftToRight(comboBox)) {
     Border border = BorderFactory.createMatteBorder(0, 1, 0, 0, BaseLookAndFeel.getFrameColor());
     button.setBorder(border);
   } else {
     Border border = BorderFactory.createMatteBorder(0, 0, 0, 1, BaseLookAndFeel.getFrameColor());
     button.setBorder(border);
   }
   return button;
 }