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

Method adjustComponent

src/figtree/ui/FontChooserPanel.java:198–211  ·  view source on GitHub ↗
(JComponent comp)

Source from the content-addressed store, hash-verified

196 }
197
198 protected void adjustComponent(JComponent comp) {
199 // comp.putClientProperty("Quaqua.Component.visualMargin", new Insets(0,0,0,0));
200 Font font = UIManager.getFont("SmallSystemFont");
201 if (font != null) {
202 comp.setFont(font);
203 }
204 comp.putClientProperty("JComponent.sizeVariant", "small");
205 if (comp instanceof JButton) {
206 comp.putClientProperty("JButton.buttonType", "roundRect");
207 }
208 if (comp instanceof JComboBox) {
209 //comp.putClientProperty("JComboBox.isSquare", Boolean.TRUE);
210 }
211 }
212}

Callers 1

FontChooserPanelMethod · 0.95

Calls 2

setFontMethod · 0.80
getFontMethod · 0.65

Tested by

no test coverage detected