javax.swing.plaf

## Class DimensionUIResource

- java.lang.Object
- - java.awt.geom.Dimension2D
  - - java.awt.Dimension
    - - javax.swing.plaf.DimensionUIResource

- All Implemented Interfaces:
    Serializable, Cloneable, UIResource

      public class DimensionUIResource
      extends Dimension
      implements UIResource

- - ### Field Summary

    - ### Fields inherited from class java.awt.Dimension

      `height, width`

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `DimensionUIResource(int width, int height)` |

  - ### Method Summary

    - ### Methods inherited from class java.awt.Dimension

      `equals, getHeight, getSize, getWidth, hashCode, setSize, setSize, setSize, toString`

    - ### Methods inherited from class java.awt.geom.Dimension2D

      `clone, setSize`

    - ### Methods inherited from class java.lang.Object

      `finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### DimensionUIResource

          public DimensionUIResource(int width,
                                     int height)

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.