Example usage for javax.swing JSpinner setFont

List of usage examples for javax.swing JSpinner setFont

Introduction

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

Prototype

@BeanProperty(preferred = true, visualUpdate = true, description = "The font for the component.")
public void setFont(Font font) 

Source Link

Document

Sets the font for this component.

Usage

From source file:Main.java

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