/[svn]/jsampler/trunk/src/org/jsampler/view/fantasia/HelpAboutDlg.java
ViewVC logotype

Diff of /jsampler/trunk/src/org/jsampler/view/fantasia/HelpAboutDlg.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1496 by iliev, Mon Nov 19 22:22:22 2007 UTC revision 1818 by iliev, Wed Dec 24 17:29:47 2008 UTC
# Line 1  Line 1 
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   *   *
# Line 23  Line 23 
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;
# Line 34  import java.awt.Insets; Line 33  import java.awt.Insets;
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;
# Line 48  import javax.swing.JScrollPane; Line 46  import javax.swing.JScrollPane;
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;
# Line 64  import static org.jsampler.view.fantasia Line 60  import static org.jsampler.view.fantasia
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"));
# Line 300  public class HelpAboutDlg extends Inform Line 296  public class HelpAboutDlg extends Inform
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                    
# Line 349  public class HelpAboutDlg extends Inform Line 351  public class HelpAboutDlg extends Inform
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                                                    
# Line 377  public class HelpAboutDlg extends Inform Line 390  public class HelpAboutDlg extends Inform
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) {

Legend:
Removed from v.1496  
changed lines
  Added in v.1818

  ViewVC Help
Powered by ViewVC