0N/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 2362N/A * under the terms of the GNU General Public License version 2 only, as 0N/A * published by the Free Software Foundation. Oracle designates this 2362N/A * particular file as subject to the "Classpath" exception as provided 0N/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 // The table of managed VM (local process) 0N/A // If the VM supports the local attach mechanism (is: Sun 0N/A // implementation) then the Local Process panel is created. 0N/A // Heights differ, so fix here 0N/A // Adjust some colors 0N/A // Update html color setting 0N/A // Update html color setting 0N/A // Try to connect to selected VM. If a connection 0N/A // cannot be established for some reason (the process has 0N/A // terminated for example) then keep the dialog open showing 0N/A // the connect error. 0N/A // a label used solely for calculating the width 0N/A // Remove vertical lines, expect for GTK L&F. 0N/A // (because GTK doesn't show header dividers) 0N/A // Double-click handler 0N/A // Enter should call default action 1024N/A // if there's only one process then select the row 0N/A // ListSelectionListener interface 0N/A // Refresh the list of managed VMs 0N/A // Remember selection 0N/A for (
int i =
0; i < n; i++) {
0N/A // Tricky. Reduce height by one to avoid double line at bottom, 0N/A // but that causes a scroll bar to appear, so remove it. 0N/A // Represents the list of managed VMs as a tabular data model. 0N/A // A blank component that takes up as much space as the 0N/A // button part of a JRadioButton. 0N/A int w = (r !=
null && r.x >
8) ? r.x :
22;