diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-14 02:39:30 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-14 02:39:30 +0000 |
commit | 54935745e0fabfe6b642f2e01bf951641c7661e6 (patch) | |
tree | 7509751f624982669ea785bfe0788f8192c42784 /client/trunk | |
parent | 8ad724944583d418439da52a5219087dad656008 (diff) | |
download | instadisc-54935745e0fabfe6b642f2e01bf951641c7661e6.tar.gz instadisc-54935745e0fabfe6b642f2e01bf951641c7661e6.tar.bz2 instadisc-54935745e0fabfe6b642f2e01bf951641c7661e6.zip |
Client: Spruced up About Box
Also added a link to the project site to the Help menu and added the ability to display an error message in the Status Bar if java.awt.Desktop is for some reason unsupported. Closes #30
Diffstat (limited to 'client/trunk')
8 files changed, 115 insertions, 56 deletions
diff --git a/client/trunk/master.jnlp b/client/trunk/master.jnlp new file mode 100644 index 0000000..e9f8a88 --- /dev/null +++ b/client/trunk/master.jnlp | |||
@@ -0,0 +1,24 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <jnlp spec="1.0+" codebase="${jnlp.codebase}" href="launch.jnlp"> | ||
3 | <information> | ||
4 | <title>${APPLICATION.TITLE}</title> | ||
5 | <vendor>${APPLICATION.VENDOR}</vendor> | ||
6 | <description>${APPLICATION.DESC}</description> | ||
7 | <description kind="short">${APPLICATION.DESC.SHORT}</description> | ||
8 | <homepage href="${APPLICATION.HOMEPAGE}"/> | ||
9 | <shortcut> | ||
10 | <desktop/> | ||
11 | </shortcut> | ||
12 | <!--${JNLP.ICONS}--> | ||
13 | <!--${JNLP.OFFLINE.ALLOWED}--> | ||
14 | </information> | ||
15 | <!--${JNLP.SECURITY}--> | ||
16 | <resources> | ||
17 | <!--${JNLP.RESOURCES.RUNTIME}--> | ||
18 | <!--${JNLP.RESOURCES.MAIN.JAR}--> | ||
19 | <!--${JNLP.RESOURCES.JARS}--> | ||
20 | </resources> | ||
21 | <application-desc main-class="${jnlp.main.class}"> | ||
22 | <!--${JNLP.APPLICATION.ARGS}--> | ||
23 | </application-desc> | ||
24 | </jnlp> | ||
diff --git a/client/trunk/src/com/fourisland/instadisc/InstaDiscAboutBox.form b/client/trunk/src/com/fourisland/instadisc/InstaDiscAboutBox.form index 46e8a4d..21f10e7 100644 --- a/client/trunk/src/com/fourisland/instadisc/InstaDiscAboutBox.form +++ b/client/trunk/src/com/fourisland/instadisc/InstaDiscAboutBox.form | |||
@@ -25,40 +25,43 @@ | |||
25 | <Layout> | 25 | <Layout> |
26 | <DimensionLayout dim="0"> | 26 | <DimensionLayout dim="0"> |
27 | <Group type="103" groupAlignment="0" attributes="0"> | 27 | <Group type="103" groupAlignment="0" attributes="0"> |
28 | <Group type="102" alignment="0" attributes="0"> | 28 | <Group type="102" attributes="0"> |
29 | <Component id="imageLabel" min="-2" max="-2" attributes="0"/> | 29 | <EmptySpace max="-2" attributes="0"/> |
30 | <EmptySpace type="separate" min="-2" max="-2" attributes="0"/> | 30 | <Group type="103" groupAlignment="0" attributes="0"> |
31 | <Group type="103" groupAlignment="1" attributes="0"> | 31 | <Component id="appTitleLabel" alignment="0" min="-2" max="-2" attributes="0"/> |
32 | <Group type="102" alignment="0" attributes="0"> | 32 | <Group type="102" alignment="0" attributes="0"> |
33 | <EmptySpace min="12" pref="12" max="12" attributes="0"/> | ||
33 | <Group type="103" groupAlignment="0" attributes="0"> | 34 | <Group type="103" groupAlignment="0" attributes="0"> |
34 | <Component id="versionLabel" alignment="0" min="-2" max="-2" attributes="0"/> | 35 | <Component id="appDescLabel" alignment="0" pref="376" max="32767" attributes="0"/> |
35 | <Component id="vendorLabel" alignment="0" min="-2" max="-2" attributes="0"/> | 36 | <Group type="102" alignment="0" attributes="0"> |
36 | <Component id="homepageLabel" alignment="0" min="-2" max="-2" attributes="0"/> | 37 | <Group type="103" groupAlignment="0" attributes="0"> |
37 | </Group> | 38 | <Component id="versionLabel" alignment="0" min="-2" max="-2" attributes="0"/> |
38 | <EmptySpace min="-2" max="-2" attributes="0"/> | 39 | <Component id="vendorLabel" alignment="0" min="-2" max="-2" attributes="0"/> |
39 | <Group type="103" groupAlignment="0" attributes="0"> | 40 | <Component id="homepageLabel" alignment="0" min="-2" max="-2" attributes="0"/> |
40 | <Component id="appVersionLabel" alignment="0" min="-2" max="-2" attributes="0"/> | 41 | </Group> |
41 | <Component id="appVendorLabel" alignment="0" min="-2" max="-2" attributes="0"/> | 42 | <EmptySpace max="-2" attributes="0"/> |
42 | <Component id="appHomepageLabel" alignment="0" min="-2" max="-2" attributes="0"/> | 43 | <Group type="103" groupAlignment="0" attributes="0"> |
44 | <Component id="appHomepageLabel" alignment="0" min="-2" max="-2" attributes="0"/> | ||
45 | <Component id="appVendorLabel" alignment="0" min="-2" max="-2" attributes="0"/> | ||
46 | <Component id="appVersionLabel" alignment="0" min="-2" max="-2" attributes="0"/> | ||
47 | </Group> | ||
48 | </Group> | ||
43 | </Group> | 49 | </Group> |
44 | </Group> | 50 | </Group> |
45 | <Component id="appTitleLabel" alignment="0" min="-2" max="-2" attributes="0"/> | ||
46 | <Component id="appDescLabel" alignment="0" pref="266" max="32767" attributes="0"/> | ||
47 | <Component id="closeButton" alignment="1" min="-2" max="-2" attributes="0"/> | 51 | <Component id="closeButton" alignment="1" min="-2" max="-2" attributes="0"/> |
48 | </Group> | 52 | </Group> |
49 | <EmptySpace min="-2" max="-2" attributes="0"/> | 53 | <EmptySpace max="-2" attributes="0"/> |
50 | </Group> | 54 | </Group> |
51 | </Group> | 55 | </Group> |
52 | </DimensionLayout> | 56 | </DimensionLayout> |
53 | <DimensionLayout dim="1"> | 57 | <DimensionLayout dim="1"> |
54 | <Group type="103" groupAlignment="0" attributes="0"> | 58 | <Group type="103" groupAlignment="0" attributes="0"> |
55 | <Component id="imageLabel" min="-2" max="32767" attributes="0"/> | ||
56 | <Group type="102" alignment="0" attributes="0"> | 59 | <Group type="102" alignment="0" attributes="0"> |
57 | <EmptySpace max="-2" attributes="0"/> | 60 | <EmptySpace max="-2" attributes="0"/> |
58 | <Component id="appTitleLabel" min="-2" max="-2" attributes="0"/> | 61 | <Component id="appTitleLabel" min="-2" max="-2" attributes="0"/> |
59 | <EmptySpace min="-2" max="-2" attributes="0"/> | 62 | <EmptySpace max="-2" attributes="0"/> |
60 | <Component id="appDescLabel" min="-2" max="-2" attributes="0"/> | 63 | <Component id="appDescLabel" min="-2" max="-2" attributes="0"/> |
61 | <EmptySpace min="-2" max="-2" attributes="0"/> | 64 | <EmptySpace max="-2" attributes="0"/> |
62 | <Group type="103" groupAlignment="3" attributes="0"> | 65 | <Group type="103" groupAlignment="3" attributes="0"> |
63 | <Component id="versionLabel" alignment="3" min="-2" max="-2" attributes="0"/> | 66 | <Component id="versionLabel" alignment="3" min="-2" max="-2" attributes="0"/> |
64 | <Component id="appVersionLabel" alignment="3" min="-2" max="-2" attributes="0"/> | 67 | <Component id="appVersionLabel" alignment="3" min="-2" max="-2" attributes="0"/> |
@@ -73,9 +76,9 @@ | |||
73 | <Component id="homepageLabel" alignment="3" min="-2" max="-2" attributes="0"/> | 76 | <Component id="homepageLabel" alignment="3" min="-2" max="-2" attributes="0"/> |
74 | <Component id="appHomepageLabel" alignment="3" min="-2" max="-2" attributes="0"/> | 77 | <Component id="appHomepageLabel" alignment="3" min="-2" max="-2" attributes="0"/> |
75 | </Group> | 78 | </Group> |
76 | <EmptySpace min="-2" pref="19" max="32767" attributes="0"/> | ||
77 | <Component id="closeButton" min="-2" max="-2" attributes="0"/> | ||
78 | <EmptySpace max="-2" attributes="0"/> | 79 | <EmptySpace max="-2" attributes="0"/> |
80 | <Component id="closeButton" min="-2" max="-2" attributes="0"/> | ||
81 | <EmptySpace max="32767" attributes="0"/> | ||
79 | </Group> | 82 | </Group> |
80 | </Group> | 83 | </Group> |
81 | </DimensionLayout> | 84 | </DimensionLayout> |
@@ -96,6 +99,7 @@ | |||
96 | <Font bold="true" component="appTitleLabel" property="font" relativeSize="true" size="4"/> | 99 | <Font bold="true" component="appTitleLabel" property="font" relativeSize="true" size="4"/> |
97 | </FontInfo> | 100 | </FontInfo> |
98 | </Property> | 101 | </Property> |
102 | <Property name="icon" type="javax.swing.Icon" resourceKey="appTitleLabel.icon"/> | ||
99 | <Property name="text" type="java.lang.String" resourceKey="Application.title"/> | 103 | <Property name="text" type="java.lang.String" resourceKey="Application.title"/> |
100 | <Property name="name" type="java.lang.String" value="appTitleLabel" noResource="true"/> | 104 | <Property name="name" type="java.lang.String" value="appTitleLabel" noResource="true"/> |
101 | </Properties> | 105 | </Properties> |
@@ -189,15 +193,5 @@ | |||
189 | <AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="0"/> | 193 | <AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="0"/> |
190 | </AuxValues> | 194 | </AuxValues> |
191 | </Component> | 195 | </Component> |
192 | <Component class="javax.swing.JLabel" name="imageLabel"> | ||
193 | <Properties> | ||
194 | <Property name="icon" type="javax.swing.Icon" resourceKey="imageLabel.icon"/> | ||
195 | <Property name="name" type="java.lang.String" value="imageLabel" noResource="true"/> | ||
196 | </Properties> | ||
197 | <AuxValues> | ||
198 | <AuxValue name="JavaCodeGenerator_VariableLocal" type="java.lang.Boolean" value="true"/> | ||
199 | <AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="0"/> | ||
200 | </AuxValues> | ||
201 | </Component> | ||
202 | </SubComponents> | 196 | </SubComponents> |
203 | </Form> | 197 | </Form> |
diff --git a/client/trunk/src/com/fourisland/instadisc/InstaDiscAboutBox.java b/client/trunk/src/com/fourisland/instadisc/InstaDiscAboutBox.java index 1b8a978..7d0e3bf 100644 --- a/client/trunk/src/com/fourisland/instadisc/InstaDiscAboutBox.java +++ b/client/trunk/src/com/fourisland/instadisc/InstaDiscAboutBox.java | |||
@@ -35,7 +35,6 @@ public class InstaDiscAboutBox extends javax.swing.JDialog { | |||
35 | javax.swing.JLabel homepageLabel = new javax.swing.JLabel(); | 35 | javax.swing.JLabel homepageLabel = new javax.swing.JLabel(); |
36 | javax.swing.JLabel appHomepageLabel = new javax.swing.JLabel(); | 36 | javax.swing.JLabel appHomepageLabel = new javax.swing.JLabel(); |
37 | javax.swing.JLabel appDescLabel = new javax.swing.JLabel(); | 37 | javax.swing.JLabel appDescLabel = new javax.swing.JLabel(); |
38 | javax.swing.JLabel imageLabel = new javax.swing.JLabel(); | ||
39 | 38 | ||
40 | setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); | 39 | setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); |
41 | org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(com.fourisland.instadisc.InstaDiscApp.class).getContext().getResourceMap(InstaDiscAboutBox.class); | 40 | org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(com.fourisland.instadisc.InstaDiscApp.class).getContext().getResourceMap(InstaDiscAboutBox.class); |
@@ -49,6 +48,7 @@ public class InstaDiscAboutBox extends javax.swing.JDialog { | |||
49 | closeButton.setName("closeButton"); // NOI18N | 48 | closeButton.setName("closeButton"); // NOI18N |
50 | 49 | ||
51 | appTitleLabel.setFont(appTitleLabel.getFont().deriveFont(appTitleLabel.getFont().getStyle() | java.awt.Font.BOLD, appTitleLabel.getFont().getSize()+4)); | 50 | appTitleLabel.setFont(appTitleLabel.getFont().deriveFont(appTitleLabel.getFont().getStyle() | java.awt.Font.BOLD, appTitleLabel.getFont().getSize()+4)); |
51 | appTitleLabel.setIcon(resourceMap.getIcon("appTitleLabel.icon")); // NOI18N | ||
52 | appTitleLabel.setText(resourceMap.getString("Application.title")); // NOI18N | 52 | appTitleLabel.setText(resourceMap.getString("Application.title")); // NOI18N |
53 | appTitleLabel.setName("appTitleLabel"); // NOI18N | 53 | appTitleLabel.setName("appTitleLabel"); // NOI18N |
54 | 54 | ||
@@ -76,35 +76,33 @@ public class InstaDiscAboutBox extends javax.swing.JDialog { | |||
76 | appDescLabel.setText(resourceMap.getString("appDescLabel.text")); // NOI18N | 76 | appDescLabel.setText(resourceMap.getString("appDescLabel.text")); // NOI18N |
77 | appDescLabel.setName("appDescLabel"); // NOI18N | 77 | appDescLabel.setName("appDescLabel"); // NOI18N |
78 | 78 | ||
79 | imageLabel.setIcon(resourceMap.getIcon("imageLabel.icon")); // NOI18N | ||
80 | imageLabel.setName("imageLabel"); // NOI18N | ||
81 | |||
82 | javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); | 79 | javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); |
83 | getContentPane().setLayout(layout); | 80 | getContentPane().setLayout(layout); |
84 | layout.setHorizontalGroup( | 81 | layout.setHorizontalGroup( |
85 | layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) | 82 | layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
86 | .addGroup(layout.createSequentialGroup() | 83 | .addGroup(layout.createSequentialGroup() |
87 | .addComponent(imageLabel) | 84 | .addContainerGap() |
88 | .addGap(18, 18, 18) | 85 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
89 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) | 86 | .addComponent(appTitleLabel) |
90 | .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup() | 87 | .addGroup(layout.createSequentialGroup() |
91 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) | 88 | .addGap(12, 12, 12) |
92 | .addComponent(versionLabel) | ||
93 | .addComponent(vendorLabel) | ||
94 | .addComponent(homepageLabel)) | ||
95 | .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) | ||
96 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) | 89 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
97 | .addComponent(appVersionLabel) | 90 | .addComponent(appDescLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 376, Short.MAX_VALUE) |
98 | .addComponent(appVendorLabel) | 91 | .addGroup(layout.createSequentialGroup() |
99 | .addComponent(appHomepageLabel))) | 92 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
100 | .addComponent(appTitleLabel, javax.swing.GroupLayout.Alignment.LEADING) | 93 | .addComponent(versionLabel) |
101 | .addComponent(appDescLabel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 266, Short.MAX_VALUE) | 94 | .addComponent(vendorLabel) |
102 | .addComponent(closeButton)) | 95 | .addComponent(homepageLabel)) |
96 | .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) | ||
97 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) | ||
98 | .addComponent(appHomepageLabel) | ||
99 | .addComponent(appVendorLabel) | ||
100 | .addComponent(appVersionLabel))))) | ||
101 | .addComponent(closeButton, javax.swing.GroupLayout.Alignment.TRAILING)) | ||
103 | .addContainerGap()) | 102 | .addContainerGap()) |
104 | ); | 103 | ); |
105 | layout.setVerticalGroup( | 104 | layout.setVerticalGroup( |
106 | layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) | 105 | layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
107 | .addComponent(imageLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) | ||
108 | .addGroup(layout.createSequentialGroup() | 106 | .addGroup(layout.createSequentialGroup() |
109 | .addContainerGap() | 107 | .addContainerGap() |
110 | .addComponent(appTitleLabel) | 108 | .addComponent(appTitleLabel) |
@@ -122,9 +120,9 @@ public class InstaDiscAboutBox extends javax.swing.JDialog { | |||
122 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) | 120 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) |
123 | .addComponent(homepageLabel) | 121 | .addComponent(homepageLabel) |
124 | .addComponent(appHomepageLabel)) | 122 | .addComponent(appHomepageLabel)) |
125 | .addGap(19, 19, Short.MAX_VALUE) | 123 | .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
126 | .addComponent(closeButton) | 124 | .addComponent(closeButton) |
127 | .addContainerGap()) | 125 | .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) |
128 | ); | 126 | ); |
129 | 127 | ||
130 | pack(); | 128 | pack(); |
diff --git a/client/trunk/src/com/fourisland/instadisc/InstaDiscView.form b/client/trunk/src/com/fourisland/instadisc/InstaDiscView.form index 1be0305..5050377 100644 --- a/client/trunk/src/com/fourisland/instadisc/InstaDiscView.form +++ b/client/trunk/src/com/fourisland/instadisc/InstaDiscView.form | |||
@@ -148,6 +148,15 @@ | |||
148 | <AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="0"/> | 148 | <AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="0"/> |
149 | </AuxValues> | 149 | </AuxValues> |
150 | <SubComponents> | 150 | <SubComponents> |
151 | <MenuItem class="javax.swing.JMenuItem" name="jMenuItem6"> | ||
152 | <Properties> | ||
153 | <Property name="text" type="java.lang.String" resourceKey="jMenuItem6.text"/> | ||
154 | <Property name="name" type="java.lang.String" value="jMenuItem6" noResource="true"/> | ||
155 | </Properties> | ||
156 | <Events> | ||
157 | <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jMenuItem6ActionPerformed"/> | ||
158 | </Events> | ||
159 | </MenuItem> | ||
151 | <MenuItem class="javax.swing.JMenuItem" name="aboutMenuItem"> | 160 | <MenuItem class="javax.swing.JMenuItem" name="aboutMenuItem"> |
152 | <Properties> | 161 | <Properties> |
153 | <Property name="action" type="javax.swing.Action" editor="org.netbeans.modules.swingapp.ActionEditor"> | 162 | <Property name="action" type="javax.swing.Action" editor="org.netbeans.modules.swingapp.ActionEditor"> |
diff --git a/client/trunk/src/com/fourisland/instadisc/InstaDiscView.java b/client/trunk/src/com/fourisland/instadisc/InstaDiscView.java index 24d18ee..198ce2b 100644 --- a/client/trunk/src/com/fourisland/instadisc/InstaDiscView.java +++ b/client/trunk/src/com/fourisland/instadisc/InstaDiscView.java | |||
@@ -151,6 +151,7 @@ public class InstaDiscView extends FrameView { | |||
151 | jMenuItem4 = new javax.swing.JMenuItem(); | 151 | jMenuItem4 = new javax.swing.JMenuItem(); |
152 | jMenuItem5 = new javax.swing.JMenuItem(); | 152 | jMenuItem5 = new javax.swing.JMenuItem(); |
153 | javax.swing.JMenu helpMenu = new javax.swing.JMenu(); | 153 | javax.swing.JMenu helpMenu = new javax.swing.JMenu(); |
154 | jMenuItem6 = new javax.swing.JMenuItem(); | ||
154 | javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem(); | 155 | javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem(); |
155 | statusPanel = new javax.swing.JPanel(); | 156 | statusPanel = new javax.swing.JPanel(); |
156 | javax.swing.JSeparator statusPanelSeparator = new javax.swing.JSeparator(); | 157 | javax.swing.JSeparator statusPanelSeparator = new javax.swing.JSeparator(); |
@@ -256,6 +257,15 @@ public class InstaDiscView extends FrameView { | |||
256 | helpMenu.setText(resourceMap.getString("helpMenu.text")); // NOI18N | 257 | helpMenu.setText(resourceMap.getString("helpMenu.text")); // NOI18N |
257 | helpMenu.setName("helpMenu"); // NOI18N | 258 | helpMenu.setName("helpMenu"); // NOI18N |
258 | 259 | ||
260 | jMenuItem6.setText(resourceMap.getString("jMenuItem6.text")); // NOI18N | ||
261 | jMenuItem6.setName("jMenuItem6"); // NOI18N | ||
262 | jMenuItem6.addActionListener(new java.awt.event.ActionListener() { | ||
263 | public void actionPerformed(java.awt.event.ActionEvent evt) { | ||
264 | jMenuItem6ActionPerformed(evt); | ||
265 | } | ||
266 | }); | ||
267 | helpMenu.add(jMenuItem6); | ||
268 | |||
259 | aboutMenuItem.setAction(actionMap.get("showAboutBox")); // NOI18N | 269 | aboutMenuItem.setAction(actionMap.get("showAboutBox")); // NOI18N |
260 | aboutMenuItem.setName("aboutMenuItem"); // NOI18N | 270 | aboutMenuItem.setName("aboutMenuItem"); // NOI18N |
261 | helpMenu.add(aboutMenuItem); | 271 | helpMenu.add(aboutMenuItem); |
@@ -308,7 +318,12 @@ public class InstaDiscView extends FrameView { | |||
308 | Item item = (Item) jList1.getSelectedValue(); | 318 | Item item = (Item) jList1.getSelectedValue(); |
309 | 319 | ||
310 | try { | 320 | try { |
311 | java.awt.Desktop.getDesktop().browse(new URI(item.getURL())); | 321 | if (java.awt.Desktop.isDesktopSupported()) |
322 | { | ||
323 | java.awt.Desktop.getDesktop().browse(new URI(item.getURL())); | ||
324 | } else { | ||
325 | statusMessageLabel.setText("Error: Desktop not supported"); | ||
326 | } | ||
312 | } catch (IOException ex) { | 327 | } catch (IOException ex) { |
313 | Logger.getLogger(InstaDiscView.class.getName()).log(Level.SEVERE, null, ex); | 328 | Logger.getLogger(InstaDiscView.class.getName()).log(Level.SEVERE, null, ex); |
314 | } catch (URISyntaxException ex) { | 329 | } catch (URISyntaxException ex) { |
@@ -346,6 +361,24 @@ public class InstaDiscView extends FrameView { | |||
346 | jList1.repaint(); | 361 | jList1.repaint(); |
347 | }//GEN-LAST:event_jList1ComponentShown | 362 | }//GEN-LAST:event_jList1ComponentShown |
348 | 363 | ||
364 | private void jMenuItem6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem6ActionPerformed | ||
365 | try | ||
366 | {//GEN-LAST:event_jMenuItem6ActionPerformed | ||
367 | if (java.awt.Desktop.isDesktopSupported()) | ||
368 | { | ||
369 | java.awt.Desktop.getDesktop().browse(new URI("http://fourisland.com/projects/instadisc/")); | ||
370 | } else { | ||
371 | statusMessageLabel.setText("Error: Desktop not supported"); | ||
372 | } | ||
373 | } catch (IOException ex) | ||
374 | { | ||
375 | Logger.getLogger(InstaDiscView.class.getName()).log(Level.SEVERE, null, ex); | ||
376 | } catch (URISyntaxException ex) | ||
377 | { | ||
378 | Logger.getLogger(InstaDiscView.class.getName()).log(Level.SEVERE, null, ex); | ||
379 | } | ||
380 | } | ||
381 | |||
349 | // Variables declaration - do not modify//GEN-BEGIN:variables | 382 | // Variables declaration - do not modify//GEN-BEGIN:variables |
350 | private javax.swing.JList jList1; | 383 | private javax.swing.JList jList1; |
351 | private javax.swing.JMenu jMenu1; | 384 | private javax.swing.JMenu jMenu1; |
@@ -354,6 +387,7 @@ public class InstaDiscView extends FrameView { | |||
354 | private javax.swing.JMenuItem jMenuItem3; | 387 | private javax.swing.JMenuItem jMenuItem3; |
355 | private javax.swing.JMenuItem jMenuItem4; | 388 | private javax.swing.JMenuItem jMenuItem4; |
356 | private javax.swing.JMenuItem jMenuItem5; | 389 | private javax.swing.JMenuItem jMenuItem5; |
390 | private javax.swing.JMenuItem jMenuItem6; | ||
357 | private javax.swing.JScrollPane jScrollPane1; | 391 | private javax.swing.JScrollPane jScrollPane1; |
358 | private javax.swing.JSeparator jSeparator1; | 392 | private javax.swing.JSeparator jSeparator1; |
359 | private javax.swing.JPanel mainPanel; | 393 | private javax.swing.JPanel mainPanel; |
diff --git a/client/trunk/src/com/fourisland/instadisc/resources/InstaDiscAboutBox.properties b/client/trunk/src/com/fourisland/instadisc/resources/InstaDiscAboutBox.properties index b76ddd5..02c5bc3 100644 --- a/client/trunk/src/com/fourisland/instadisc/resources/InstaDiscAboutBox.properties +++ b/client/trunk/src/com/fourisland/instadisc/resources/InstaDiscAboutBox.properties | |||
@@ -9,6 +9,5 @@ versionLabel.text=Product Version\: | |||
9 | vendorLabel.text=Vendor\: | 9 | vendorLabel.text=Vendor\: |
10 | 10 | ||
11 | homepageLabel.text=Homepage\: | 11 | homepageLabel.text=Homepage\: |
12 | |||
13 | #NOI18N | 12 | #NOI18N |
14 | imageLabel.icon=about.png | 13 | appTitleLabel.icon=instaDiscIconBig.png |
diff --git a/client/trunk/src/com/fourisland/instadisc/resources/InstaDiscView.properties b/client/trunk/src/com/fourisland/instadisc/resources/InstaDiscView.properties index 4bef63f..6908fcb 100644 --- a/client/trunk/src/com/fourisland/instadisc/resources/InstaDiscView.properties +++ b/client/trunk/src/com/fourisland/instadisc/resources/InstaDiscView.properties | |||
@@ -36,3 +36,4 @@ jMenu1.text=Tools | |||
36 | jMenuItem3.text=Manage Filters | 36 | jMenuItem3.text=Manage Filters |
37 | jMenuItem4.text=Request Retained Items | 37 | jMenuItem4.text=Request Retained Items |
38 | jMenuItem5.text=Advanced Settings | 38 | jMenuItem5.text=Advanced Settings |
39 | jMenuItem6.text=InstaDisc Website | ||
diff --git a/client/trunk/src/com/fourisland/instadisc/resources/instaDiscIconBig.png b/client/trunk/src/com/fourisland/instadisc/resources/instaDiscIconBig.png new file mode 100644 index 0000000..6772466 --- /dev/null +++ b/client/trunk/src/com/fourisland/instadisc/resources/instaDiscIconBig.png | |||
Binary files differ | |||