599N/A/*
2362N/A * Copyright (c) 2002, 2008, Oracle and/or its affiliates. All rights reserved.
599N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
599N/A *
599N/A * This code is free software; you can redistribute it and/or modify it
599N/A * under the terms of the GNU General Public License version 2 only, as
599N/A * published by the Free Software Foundation.
599N/A *
599N/A * This code is distributed in the hope that it will be useful, but WITHOUT
599N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
599N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
599N/A * version 2 for more details (a copy is included in the LICENSE file that
599N/A * accompanied this code).
599N/A *
599N/A * You should have received a copy of the GNU General Public License version
599N/A * 2 along with this work; if not, write to the Free Software Foundation,
599N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
599N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
599N/A */
599N/A
599N/A/*
599N/A * @test
599N/A * @bug 4759306
599N/A * @summary Checks if JColorChooser.setPreviewPanel removes the old one
599N/A * @author Konstantin Eremin
599N/A @run applet/manual=yesno Test4759306.html
599N/A */
599N/A
599N/Aimport javax.swing.JApplet;
599N/Aimport javax.swing.JColorChooser;
599N/Aimport javax.swing.JPanel;
599N/A
599N/Apublic class Test4759306 extends JApplet {
599N/A public void init() {
599N/A JColorChooser chooser = new JColorChooser();
599N/A chooser.setPreviewPanel(new JPanel());
599N/A getContentPane().add(chooser);
599N/A }
599N/A}