/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* Creates a new BasicOptionPaneUI instance.
*/
return new AquaOptionPaneUI();
}
/**
* Creates and returns a Container containin the buttons. The buttons
* are created by calling <code>getButtons</code>.
*/
// Now replace the Layout
return bottom;
}
/**
* Messaged from installComponents to create a Container containing the
* body of the message.
* The icon and body should be aligned on their top edges
*/
/* Fill the body. */
}
return top;
}
/**
* AquaButtonAreaLayout lays out all
* components according to the HI Guidelines:
* The most important button is always on the far right
* The group of buttons is on the right for left-to-right,
* left for right-to-left
* The widths of each component will be set to the largest preferred size width.
*
*
* This inner class is marked "public" due to a compiler bug.
* This class should be treated as a "protected" inner class.
* Instantiate it only within subclasses of BasicOptionPaneUI.
*
* BasicOptionPaneUI expects that its buttons are layed out with
* a subclass of ButtonAreaLayout
*/
super(true, padding);
}
// Always syncAllWidths - and heights!
for (int i = 0; i < numChildren; i++) {
}
// ignore getCentersChildren, because we don't
int xLocation = container.getSize().width - (maxSize.width * numChildren + (numChildren - 1) * padding);
// most important button (button zero) on far right
}
}
}
}