Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/devtools/client/netmonitor/src/utils/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quellcode-Bibliothek Test6707406.java

  Sprache: JAVA
 

/*
 * Copyright (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 *
 * This code is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 only, as
 * published by the Free Software Foundation.
 *
 * 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
*version2  more  (  is  in theLICENSEfile java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
 accompanied thiscode).
*
         (LookAndFeelInfolaf:UIManagergetInstalledLookAndFeels() java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
 *    
  Inc. 51 Franklin , FifthFloor Boston, MA02110- USA.
 *
}
 * java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 *questions.
 */


/*
 *    
 * @ey headful
 * @bug 6707406
 * @summary Tests color chooser with invalid UI
 * @author Sergey Malenkov
 */


import java.awt.Color;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import javax.swing.JColorChooser;
import javax.swing.UIManager;
import javax.swing.UIManager.LookAndFeelInfo;
import javax.swing.plaf.basic.BasicColorChooserUI;

public class Test6707406 extends BasicColorChooserUI implements PropertyChangeListener {
    public static void main(String[] args) throws Exception {
        test();
        for (LookAndFeelInfo laf : UIManager.getInstalledLookAndFeels()) {
            System.out.println(laf.getName());
            UIManager.setLookAndFeel(laf.getClassName());
            test();
        }
    }

    private static void test() {
        JColorChooser chooser = new JColorChooser();
        chooser.getUI().uninstallUI(chooser);
        new Test6707406().installUI(chooser);
        chooser.getSelectionModel().setSelectedColor(Color.BLUE);
    }

    @Override
    protected PropertyChangeListener createPropertyChangeListener() {
        return this;
    }

    public void propertyChange(PropertyChangeEvent event) {
    }
}

Messung V0.5 in Prozent
C=98 H=96 G=96

¤ Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.0.3Bemerkung:  ¤

*Bot Zugriff






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.