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