548 |
3)); |
3)); |
549 |
|
|
550 |
/** The Icon that points right. */ |
/** The Icon that points right. */ |
551 |
private static Icon rightIcon = new arrowIcon(new Polygon(new int[] |
private static Icon rightIcon = new arrowIcon(new Polygon(new int[] { 3, 7, 3}, |
552 |
{ |
new int[] { 2, 5, 8}, |
553 |
3, 7, 3 |
3)); |
|
}, |
|
|
new int[] |
|
|
{ |
|
|
2, 5, 8 |
|
|
}, 3)); |
|
554 |
|
|
555 |
/** |
/** |
556 |
* This method adds a component to the layout. |
* This method adds a component to the layout. |
601 |
protected JButton createIncreaseButton(int orientation) |
protected JButton createIncreaseButton(int orientation) |
602 |
{ |
{ |
603 |
if (incrButton == null) |
if (incrButton == null) |
604 |
|
{ |
605 |
incrButton = new JButton(); |
incrButton = new JButton(); |
606 |
|
incrButton.setMargin(new Insets(0,0,0,0)); |
607 |
|
incrButton.setHorizontalAlignment(SwingConstants.CENTER); |
608 |
|
incrButton.setHorizontalTextPosition(SwingConstants.CENTER); |
609 |
|
incrButton.setVerticalAlignment(SwingConstants.CENTER); |
610 |
|
incrButton.setVerticalTextPosition(SwingConstants.CENTER); |
611 |
|
} |
612 |
|
|
613 |
if (orientation == SwingConstants.HORIZONTAL) |
if (orientation == SwingConstants.HORIZONTAL) |
614 |
incrButton.setIcon(rightIcon); |
incrButton.setIcon(rightIcon); |
615 |
else |
else |
629 |
protected JButton createDecreaseButton(int orientation) |
protected JButton createDecreaseButton(int orientation) |
630 |
{ |
{ |
631 |
if (decrButton == null) |
if (decrButton == null) |
632 |
|
{ |
633 |
decrButton = new JButton(); |
decrButton = new JButton(); |
634 |
|
decrButton.setMargin(new Insets(0,0,0,0)); |
635 |
|
decrButton.setHorizontalAlignment(SwingConstants.CENTER); |
636 |
|
decrButton.setHorizontalTextPosition(SwingConstants.CENTER); |
637 |
|
decrButton.setVerticalAlignment(SwingConstants.CENTER); |
638 |
|
decrButton.setVerticalTextPosition(SwingConstants.CENTER); |
639 |
|
} |
640 |
|
|
641 |
if (orientation == SwingConstants.HORIZONTAL) |
if (orientation == SwingConstants.HORIZONTAL) |
642 |
decrButton.setIcon(leftIcon); |
decrButton.setIcon(leftIcon); |
643 |
else |
else |