1. /*
  2. * @(#)FontUIResource.java 1.9 01/11/29
  3. *
  4. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package javax.swing.plaf;
  8. import java.awt.Font;
  9. import javax.swing.plaf.UIResource;
  10. /**
  11. * A subclass of java.awt.Font that implements UIResource.
  12. * UI classes which set default font properties should use
  13. * this class.
  14. * <p>
  15. * <strong>Warning:</strong>
  16. * Serialized objects of this class will not be compatible with
  17. * future Swing releases. The current serialization support is appropriate
  18. * for short term storage or RMI between applications running the same
  19. * version of Swing. A future release of Swing will provide support for
  20. * long term persistence.
  21. *
  22. * @see javax.swing.plaf.UIResource
  23. * @version 1.9 11/29/01
  24. * @author Hans Muller
  25. *
  26. */
  27. public class FontUIResource extends Font implements UIResource
  28. {
  29. public FontUIResource(String name, int style, int size) {
  30. super(name, style, size);
  31. }
  32. public FontUIResource(Font font) {
  33. super(font.getName(), font.getStyle(), font.getSize());
  34. }
  35. }