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 }
|
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().feature());
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 }
|