MCPcopy Create free account
hub / github.com/rambaut/figtree / adjustComponent

Method adjustComponent

src/figtree/treeviewer/FindPanel.java:191–209  ·  view source on GitHub ↗
(JComponent comp)

Source from the content-addressed store, hash-verified

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...

Callers 1

FindPanelMethod · 0.95

Calls 2

setFontMethod · 0.80
getFontMethod · 0.65

Tested by

no test coverage detected