private Font calculateFont(final Object component) { // prep the various text attributes Font f = getComponentFont(getFont(), component); if (f == null) { f = new Font("Dialog", Font.PLAIN, 18); } return f; }
private Font calculateFont(final Object component) { // prep the various text attributes Font f = getComponentFont(getFont(), component); if (f == null) { f = new Font("Dialog", Font.PLAIN, 18); } return f; }
private Font calculateFont(final Object component) { // prep the various text attributes Font f = getComponentFont(getFont(), component); if (f == null) { f = new Font("Dialog", Font.PLAIN, 18); } return f; }
protected Font calculateFont(final Object component) { // prep the various text attributes Font f = getComponentFont(getFont(), component); if (f == null) { f = new Font("Dialog", Font.PLAIN, 18); } return f; }
private Font calculateFont(final Object component) { // prep the various text attributes Font font = getFont(); if (font == null) { if(component instanceof JComponent) { font = ((JComponent)component).getFont(); } } if (font == null) { font = new Font("Dialog", Font.PLAIN, 18); } return font; }