2362N/A * Copyright (c) 2004, 2006, 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 0N/A // Apply the system L&F if it is GTK or Windows, and 0N/A // the L&F is not specified using a system property. 0N/A //BorderedComponent.updateLafValues(); 0N/A // TODO: Use Actions ! 0N/A // Restore title - we now show connection name on internal frames 0N/A // Add Window menu before Help menu 0N/A // The width value of viewR is used to truncate long menu items. 0N/A // The rest are placeholders and are ignored for this purpose. 0N/A for (
int i =
0; i < n; i++) {
0N/A // Slot is in use, try next 0N/A // Found a free slot 0N/A // Create a slot at the end 0N/A // Maybe truncate menu item string and end with "..." 0N/A // Set mnemonic using last digit of number 0N/A if (n >
0 && w >
0 && h >
0) {
0N/A int dX = (n >
1) ? (w / (n -
1)) :
0;
0N/A int dY = (n >
1) ? (h / (n -
1)) :
0;
0N/A // Call on worker thread 0N/A // Call on worker thread 0N/A // Bring to front of other dialogs 0N/A // Bring to front of other dialogs 0N/A //--------------------------------------- 0N/A // Supported host and port combinations: 0N/A // [IPv6Address]:port 0N/A //--------------------------------------- 0N/A // Is literal IPv6 address? 0N/A // Extract literal IPv6 address 0N/A // InternalFrameListener interface 0N/A // Always create Swing GUI on the Event Dispatching Thread 0N/A // Center the window on screen, taking into account screen 0N/A // Return a list of newly instantiated JConsolePlugin objects 0N/A // First time loading and initializing the plugins 0N/A // reload the plugin so that new instances will be created 0N/A // validate all plugins 0N/A // Error occurs during initialization of plugin 0N/A * Utility method for converting a search path string to an array 0N/A * of directory and JAR file URLs. 0N/A * @param path the search path string 0N/A * @return the resulting array of directory and JAR file URLs 0N/A * Returns the directory or JAR file URL corresponding to the specified 0N/A * @param file the File object 0N/A * @return the resulting directory or JAR file URL, or null if unknown 0N/A // If the file does not exist, then assume that it's a directory 0N/A * The revalidate method seems to be the only one that gets 0N/A * called whenever there is a change of L&F or change of theme 0N/A * in Windows L&F and GTK L&F. 0N/A // Workaround for Swing bug where the titledborder in both 0N/A // GTK and Windows L&F's use calculated colors instead of 0N/A // Putting null removes any previous override and causes a 0N/A // fallback to the current L&F's value. 0N/A // Workaround for Swing bug where the titledborder in 0N/A // GTK L&F use hardcoded color and font for the title 0N/A // instead of getting them from the theme.