2362N/A * Copyright (c) 2004, 2007, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 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 5335N/A * Toolkit that provides resource support for JConsole. 5335N/A * Convenience method for {@link MessageFormat#format(String, Object...)}. 5335N/A * @param pattern the pattern 5335N/A * @param objects the arguments for the pattern 5335N/A * @return a formatted string 5335N/A * Returns the mnemonic for a message. 5335N/A * @param message the message 5335N/A * @return the mnemonic <code>int</code> 5335N/A * Initializes all non-final public static fields in the given class with 5335N/A * messages from a {@link ResourceBundle}. 5335N/A * @param clazz the class containing the fields 5335N/A // fall through, handled later 5335N/A * Returns the message corresponding to the key in the bundle or a text 5335N/A * @param rb the resource bundle 5335N/A return "missing resource bundle";
5335N/A return "missing message for key = \"" +
key 5335N/A +
"\" in resource bundle ";
5335N/A * Returns a {@link String} where all <code>\n</code> in the <text> have 5335N/A * been replaced with the line separator for the platform. 5335N/A * @param text the to be replaced 5335N/A * @return the replaced text 5335N/A * Removes the mnemonic identifier (<code>&</code>) from a string unless 5335N/A * it's escaped by <code>&&</code> or placed at the end. 5335N/A * @param message the message 5335N/A * @return a message with the mnemonic identifier removed 5335N/A * Finds the mnemonic character in a message. 5335N/A * The mnemonic character is the first character followed by the first 5335N/A * <code>&</code> that is not followed by another <code>&</code>. 5335N/A * @return the mnemonic as an <code>int</code>, or <code>0</code> if it 5335N/A * Lookups the mnemonic for a key in the {@link KeyEvent} class. 5335N/A * @param c the character to lookup 5335N/A * @return the mnemonic as an <code>int</code>, or <code>0</code> if it