Here you can find the source of differsSize(AttributeSet style, AttributeSet base)
public static boolean differsSize(AttributeSet style, AttributeSet base)
//package com.java2s; /*//from w w w. j a v a 2 s . c o m * This file is part of the Jose Project * see http://jose-chess.sourceforge.net/ * (c) 2002-2006 Peter Sch?fer * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * */ import javax.swing.text.*; public class Main { public static boolean differsSize(AttributeSet style, AttributeSet base) { return (StyleConstants.getFontSize(style) != StyleConstants.getFontSize(base)); } }