< prev index next >

src/java.desktop/share/classes/javax/swing/plaf/nimbus/NimbusStyle.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2005, 2017, 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. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2005, 2018, 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. Oracle designates this
*** 301,311 **** //"values" stateTypes to be a non-null array. //Otherwise, let the "values" stateTypes be null to indicate that //there are no custom states or custom state ordering String statesString = (String)defaults.get(prefix + ".States"); if (statesString != null) { ! String s[] = statesString.split(","); for (int i=0; i<s.length; i++) { s[i] = s[i].trim(); if (!State.isStandardStateName(s[i])) { //this is a non-standard state name, so look for the //custom state associated with it --- 301,311 ---- //"values" stateTypes to be a non-null array. //Otherwise, let the "values" stateTypes be null to indicate that //there are no custom states or custom state ordering String statesString = (String)defaults.get(prefix + ".States"); if (statesString != null) { ! String[] s = statesString.split(","); for (int i=0; i<s.length; i++) { s[i] = s[i].trim(); if (!State.isStandardStateName(s[i])) { //this is a non-standard state name, so look for the //custom state associated with it
< prev index next >