Java JComponent Size differsSize(AttributeSet style, AttributeSet base)

Here you can find the source of differsSize(AttributeSet style, AttributeSet base)

Description

differs Size

License

Open Source License

Declaration

public static boolean differsSize(AttributeSet style, AttributeSet base) 

Method Source Code


//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));
    }
}

Related

  1. adjustWindowToMinimumSize(final Window window)
  2. autoFitResize(final JLayeredPane pane, final Component... comps)
  3. changeSize(JComponent comp, float newSize)
  4. contentSize(final Component component)
  5. createDoubleSpinner(final double value, final double rangeMinimum, final double rangeMaximum, final double stepSize, final double bigStepSize, final String formatPattern)
  6. doSetSize(final Component component, final int width, final int height)
  7. doSetSizeInEDT(final Component component, final int width, final int height)
  8. emphasizeToolTip()
  9. equalizeSize(final JComponent... components)