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