1 /*
2 * Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
164 Desktop.getDesktop().browse(new URI(urlStr));
165 } catch (Exception ex) {
166 showDialog();
167 statusBar.setText(ex.getLocalizedMessage());
168 if (JConsole.isDebug()) {
169 ex.printStackTrace();
170 }
171 }
172 }
173
174 private void createActions() {
175 closeAction = new AbstractAction(Messages.CLOSE) {
176 public void actionPerformed(ActionEvent ev) {
177 setVisible(false);
178 statusBar.setText("");
179 }
180 };
181 }
182
183 private static String getOnlineDocUrl() {
184 String version = Integer.toString(jdk.Version.current().major());
185 return Resources.format(Messages.HELP_ABOUT_DIALOG_USER_GUIDE_LINK_URL,
186 version);
187 }
188
189 private static class TPanel extends JPanel {
190 TPanel(int hgap, int vgap) {
191 super(new BorderLayout(hgap, vgap));
192 setOpaque(false);
193 }
194 }
195 }
|
1 /*
2 * Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
164 Desktop.getDesktop().browse(new URI(urlStr));
165 } catch (Exception ex) {
166 showDialog();
167 statusBar.setText(ex.getLocalizedMessage());
168 if (JConsole.isDebug()) {
169 ex.printStackTrace();
170 }
171 }
172 }
173
174 private void createActions() {
175 closeAction = new AbstractAction(Messages.CLOSE) {
176 public void actionPerformed(ActionEvent ev) {
177 setVisible(false);
178 statusBar.setText("");
179 }
180 };
181 }
182
183 private static String getOnlineDocUrl() {
184 String version = Integer.toString(Runtime.version().major());
185 return Resources.format(Messages.HELP_ABOUT_DIALOG_USER_GUIDE_LINK_URL,
186 version);
187 }
188
189 private static class TPanel extends JPanel {
190 TPanel(int hgap, int vgap) {
191 super(new BorderLayout(hgap, vgap));
192 setOpaque(false);
193 }
194 }
195 }
|