1 |
/* |
/* |
2 |
* JSampler - a java front-end for LinuxSampler |
* JSampler - a java front-end for LinuxSampler |
3 |
* |
* |
4 |
* Copyright (C) 2005-2009 Grigor Iliev <grigor@grigoriliev.com> |
* Copyright (C) 2005-2011 Grigor Iliev <grigor@grigoriliev.com> |
5 |
* |
* |
6 |
* This file is part of JSampler. |
* This file is part of JSampler. |
7 |
* |
* |
39 |
import javax.swing.BorderFactory; |
import javax.swing.BorderFactory; |
40 |
import javax.swing.Box; |
import javax.swing.Box; |
41 |
import javax.swing.BoxLayout; |
import javax.swing.BoxLayout; |
|
import javax.swing.ImageIcon; |
|
42 |
import javax.swing.JEditorPane; |
import javax.swing.JEditorPane; |
43 |
import javax.swing.JLabel; |
import javax.swing.JLabel; |
44 |
import javax.swing.JPanel; |
import javax.swing.JPanel; |
45 |
import javax.swing.JScrollPane; |
import javax.swing.JScrollPane; |
|
import javax.swing.JSeparator; |
|
46 |
import javax.swing.JTextField; |
import javax.swing.JTextField; |
47 |
|
|
48 |
import net.sf.juife.InformationDialog; |
import net.sf.juife.swing.InformationDialog; |
49 |
import net.sf.juife.JuifeUtils; |
import net.sf.juife.swing.LinkButton; |
|
import net.sf.juife.LinkButton; |
|
50 |
|
|
51 |
import org.jsampler.HF; |
import org.jsampler.view.swing.SHF; |
52 |
|
|
53 |
import static org.jsampler.view.classic.ClassicI18n.i18n; |
import static org.jsampler.view.classic.ClassicI18n.i18n; |
54 |
|
|
59 |
*/ |
*/ |
60 |
public class HelpAboutDlg extends InformationDialog { |
public class HelpAboutDlg extends InformationDialog { |
61 |
private JLabel lProductName = |
private JLabel lProductName = |
62 |
new JLabel("<html>\n<font size=+1>JS Classic (version 0.9)</font>"); |
new JLabel("<html>\n<font size=+1>JS Classic (version 0.9cvs2)</font>"); |
63 |
|
|
64 |
private JLabel lAuthor = new JLabel(i18n.getLabel("HelpAboutDlg.lAuthor")); |
private JLabel lAuthor = new JLabel(i18n.getLabel("HelpAboutDlg.lAuthor")); |
65 |
private JTextField tfAuthor = new JTextField(i18n.getLabel("HelpAboutDlg.tfAuthor")); |
private JTextField tfAuthor = new JTextField(i18n.getLabel("HelpAboutDlg.tfAuthor")); |
317 |
checkDesktopSupported() { |
checkDesktopSupported() { |
318 |
if(Desktop.isDesktopSupported()) return true; |
if(Desktop.isDesktopSupported()) return true; |
319 |
|
|
320 |
HF.showErrorMessage(i18n.getError("HelpAboutDlg.DesktopApiNotSupported"), this); |
SHF.showErrorMessage(i18n.getError("HelpAboutDlg.DesktopApiNotSupported"), this); |
321 |
|
|
322 |
return false; |
return false; |
323 |
} |
} |