599N/A/*
2362N/A * Copyright (c) 2003, 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 4711996
599N/A * @summary Checks if IllegalArgumentException is thrown when updating JColorChooserUI
599N/A * @author Konstantin Eremin
599N/A */
599N/A
599N/Aimport javax.swing.JColorChooser;
599N/Aimport javax.swing.colorchooser.AbstractColorChooserPanel;
599N/A
599N/Apublic class Test4711996 {
599N/A public static void main(String[] args) {
599N/A JColorChooser chooser = new JColorChooser();
599N/A AbstractColorChooserPanel[] panels = chooser.getChooserPanels();
599N/A chooser.removeChooserPanel(panels[0]);
599N/A chooser.updateUI();
599N/A }
599N/A}