Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

change font size java swing

// make sure the new size is a float, not an int (add f at the end of the number)
label.setFont(label.getFont().deriveFont(newSize));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #change #font #size #java #swing
ADD COMMENT
Topic
Name
2+4 =