| 189 | } |
| 190 | |
| 191 | protected void adjustComponent(JComponent comp) { |
| 192 | // comp.putClientProperty("Quaqua.Component.visualMargin", new Insets(0,0,0,0)); |
| 193 | Font font = UIManager.getFont("SmallSystemFont"); |
| 194 | if (font != null) { |
| 195 | comp.setFont(font); |
| 196 | } |
| 197 | comp.putClientProperty("JComponent.sizeVariant", "small"); |
| 198 | if (comp instanceof JButton) { |
| 199 | comp.putClientProperty("JButton.buttonType", "roundRect"); |
| 200 | comp.setFocusable(false); |
| 201 | } |
| 202 | if (comp instanceof JComboBox) { |
| 203 | comp.putClientProperty("JComboBox.isSquare", Boolean.TRUE); |
| 204 | comp.setFocusable(false); |
| 205 | } |
| 206 | if (comp instanceof JCheckBox) { |
| 207 | comp.setFocusable(false); |
| 208 | } |
| 209 | } |
| 210 | |
| 211 | public Target getSearchTarget() { |
| 212 | // store this for next time the dialog is shown... |