588589590591592593594595596597598
dim.width += popupButton.getPreferredSize().width; } Insets insets = datePicker.getInsets(); dim.width += insets.left + insets.right; dim.height += insets.top + insets.bottom; return (Dimension)dim.clone(); } @Override public int getBaseline(int width, int height) {
998999100010011002100310041005100610071008
return (Dimension)preferredSize.clone(); } public Dimension getMinimumSize(final JComponent c) { Dimension minPrefSize = getPreferredMinSize(); return minPrefSize != null ? (Dimension)minPrefSize.clone() : new Dimension(); } public Dimension getMaximumSize(final JComponent c) { Dimension prefSize = getPreferredSize(c); return prefSize != null ? (Dimension)prefSize.clone() : null;
10031004100510061007100810091010101110121013
return minPrefSize != null ? (Dimension)minPrefSize.clone() : new Dimension(); } public Dimension getMaximumSize(final JComponent c) { Dimension prefSize = getPreferredSize(c); return prefSize != null ? (Dimension)prefSize.clone() : null; } protected void prepareForUIInstall() { preferredSize = new Dimension();
99799899910001001100210031004100510061007
10021003100410051006100710081009101010111012
3031323334353637383940
super(name); } public void testClone() { Dimension d = new Dimension(1, 2); assertEquals(d, d.clone()); } public void testSetSize() { Dimension d = new Dimension(1, 2); d.setSize(new Dimension(3, 4));
2930313233343536373839