Example usage for javax.swing JSpinner getFont

List of usage examples for javax.swing JSpinner getFont

Introduction

In this page you can find the example usage for javax.swing JSpinner getFont.

Prototype

@Transient
public Font getFont() 

Source Link

Document

Gets the font of this component.

Usage

From source file:Main.java

public static void changeFontSize(JSpinner spinner, int newSize) {
    spinner.setFont(spinner.getFont().deriveFont((float) newSize));
}