Lines Matching refs:buttons
53 JToggleButton[] buttons;
90 buttons = new JToggleButton[files.length];
118 buttons[i] = new JToggleButton(folderName, icon);
120 buttons[i].setText("<html><center>"+folderName+"</center></html>");
123 buttons[i].putClientProperty("XPStyle.subAppName", "placesbar");
126 buttons[i].setContentAreaFilled(false);
127 buttons[i].setForeground(fgColor);
129 buttons[i].setMargin(new Insets(3, 2, 1, 2));
130 buttons[i].setFocusPainted(false);
131 buttons[i].setIconTextGap(0);
132 buttons[i].setHorizontalTextPosition(JToggleButton.CENTER);
133 buttons[i].setVerticalTextPosition(JToggleButton.BOTTOM);
134 buttons[i].setAlignmentX(JComponent.CENTER_ALIGNMENT);
135 buttons[i].setPreferredSize(buttonSize);
136 buttons[i].setMaximumSize(buttonSize);
137 buttons[i].addActionListener(this);
138 add(buttons[i]);
142 buttonGroup.add(buttons[i]);
148 for (int i=0; i<buttons.length; i++) {
149 JToggleButton b = buttons[i];
172 for (int i=0; i<buttons.length; i++) {
173 if (b == buttons[i]) {
184 if (buttons != null && buttons.length > 0 && buttons.length < 5) {
185 JToggleButton b = buttons[0];