1 |
/* |
/* |
2 |
* JSampler - a java front-end for LinuxSampler |
* JSampler - a java front-end for LinuxSampler |
3 |
* |
* |
4 |
* Copyright (C) 2005-2007 Grigor Iliev <grigor@grigoriliev.com> |
* Copyright (C) 2005-2008 Grigor Iliev <grigor@grigoriliev.com> |
5 |
* |
* |
6 |
* This file is part of JSampler. |
* This file is part of JSampler. |
7 |
* |
* |
23 |
package org.jsampler.view.fantasia; |
package org.jsampler.view.fantasia; |
24 |
|
|
25 |
import java.awt.Color; |
import java.awt.Color; |
|
import java.awt.Desktop; |
|
26 |
import java.awt.Dialog; |
import java.awt.Dialog; |
27 |
import java.awt.Dimension; |
import java.awt.Dimension; |
28 |
import java.awt.Frame; |
import java.awt.Frame; |
33 |
import java.awt.event.ActionEvent; |
import java.awt.event.ActionEvent; |
34 |
import java.awt.event.ActionListener; |
import java.awt.event.ActionListener; |
35 |
|
|
|
import java.net.URI; |
|
36 |
import java.net.URL; |
import java.net.URL; |
37 |
|
|
38 |
import javax.swing.BorderFactory; |
import javax.swing.BorderFactory; |
46 |
import javax.swing.JTabbedPane; |
import javax.swing.JTabbedPane; |
47 |
|
|
48 |
import net.sf.juife.InformationDialog; |
import net.sf.juife.InformationDialog; |
|
import net.sf.juife.JuifeUtils; |
|
49 |
import net.sf.juife.LinkButton; |
import net.sf.juife.LinkButton; |
50 |
|
|
|
import org.jsampler.HF; |
|
51 |
import org.jsampler.view.std.StdUtils; |
import org.jsampler.view.std.StdUtils; |
52 |
|
|
53 |
import org.jvnet.substance.SubstanceLookAndFeel; |
import org.jvnet.substance.SubstanceLookAndFeel; |
60 |
*/ |
*/ |
61 |
public class HelpAboutDlg extends InformationDialog { |
public class HelpAboutDlg extends InformationDialog { |
62 |
private JLabel lProductName = |
private JLabel lProductName = |
63 |
new JLabel("<html>\n<font size=+1>Fantasia (version 0.7a)</font>"); |
new JLabel("<html>\n<font size=+1>JSampler Fantasia (version 0.8a cvs_6)</font>"); |
64 |
|
|
65 |
private JLabel lAuthor = new JLabel(i18n.getLabel("HelpAboutDlg.lAuthor")); |
private JLabel lAuthor = new JLabel(i18n.getLabel("HelpAboutDlg.lAuthor")); |
66 |
private LinkButton btnAuthor = new Lnkbutton(i18n.getLabel("HelpAboutDlg.btnAuthor")); |
private LinkButton btnAuthor = new Lnkbutton(i18n.getLabel("HelpAboutDlg.btnAuthor")); |
296 |
private Lnkbutton btnLSWebsite = new Lnkbutton("www.linuxsampler.org"); |
private Lnkbutton btnLSWebsite = new Lnkbutton("www.linuxsampler.org"); |
297 |
private Lnkbutton btnJSWebsite = new Lnkbutton("sf.net/projects/jsampler"); |
private Lnkbutton btnJSWebsite = new Lnkbutton("sf.net/projects/jsampler"); |
298 |
|
|
299 |
|
private Button btnDocumentation = |
300 |
|
new Button(i18n.getButtonLabel("HelpAboutDlg.btnDocumentation")); |
301 |
|
|
302 |
|
private Button btnLSDevelopers = |
303 |
|
new Button(i18n.getButtonLabel("HelpAboutDlg.btnLSDevelopers")); |
304 |
|
|
305 |
private Button btnLSMailingList = |
private Button btnLSMailingList = |
306 |
new Button(i18n.getButtonLabel("HelpAboutDlg.btnLSMailingList")); |
new Button(i18n.getButtonLabel("HelpAboutDlg.btnLSMailingList")); |
307 |
|
|
351 |
c.gridwidth = 2; |
c.gridwidth = 2; |
352 |
c.insets = new Insets(12, 0, 0, 0); |
c.insets = new Insets(12, 0, 0, 0); |
353 |
c.anchor = GridBagConstraints.CENTER; |
c.anchor = GridBagConstraints.CENTER; |
354 |
|
gridbag.setConstraints(btnDocumentation, c); |
355 |
|
add(btnDocumentation); |
356 |
|
|
357 |
|
c.gridx = 0; |
358 |
|
c.gridy = 4; |
359 |
|
c.insets = new Insets(6, 0, 0, 0); |
360 |
|
gridbag.setConstraints(btnLSDevelopers, c); |
361 |
|
add(btnLSDevelopers); |
362 |
|
|
363 |
|
c.gridx = 0; |
364 |
|
c.gridy = 5; |
365 |
gridbag.setConstraints(btnLSMailingList, c); |
gridbag.setConstraints(btnLSMailingList, c); |
366 |
add(btnLSMailingList); |
add(btnLSMailingList); |
367 |
|
|
390 |
} |
} |
391 |
}); |
}); |
392 |
|
|
393 |
|
btnDocumentation.addActionListener(new ActionListener() { |
394 |
|
public void |
395 |
|
actionPerformed(ActionEvent e) { |
396 |
|
StdUtils.browse("http://www.linuxsampler.org/documentation.html"); |
397 |
|
} |
398 |
|
}); |
399 |
|
|
400 |
|
btnLSDevelopers.addActionListener(new ActionListener() { |
401 |
|
public void |
402 |
|
actionPerformed(ActionEvent e) { |
403 |
|
StdUtils.browse("http://www.linuxsampler.org/developers.html"); |
404 |
|
} |
405 |
|
}); |
406 |
|
|
407 |
btnLSMailingList.addActionListener(new ActionListener() { |
btnLSMailingList.addActionListener(new ActionListener() { |
408 |
public void |
public void |
409 |
actionPerformed(ActionEvent e) { |
actionPerformed(ActionEvent e) { |