Lines Matching defs:button
136 * If <code>c</code> is a check box or radio button, and the border is
183 AbstractButton button = (AbstractButton)c;
185 Icon icon = getIcon(button);
186 int gap = button.getIconTextGap();
187 if (isLeftAligned(button, position)) {
189 } else if (isRightAligned(button, position)) {
196 private Icon getIcon(AbstractButton button) {
197 Icon icon = button.getIcon();
202 if (button instanceof JCheckBox) {
204 } else if (button instanceof JRadioButton) {
216 private boolean isLeftAligned(AbstractButton button, int position) {
218 boolean ltr = button.getComponentOrientation().isLeftToRight();
219 int hAlign = button.getHorizontalAlignment();
227 private boolean isRightAligned(AbstractButton button, int position) {
229 boolean ltr = button.getComponentOrientation().isLeftToRight();
230 int hAlign = button.getHorizontalAlignment();