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

Diff of /jsampler/trunk/src/org/jsampler/view/JSViews.java

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

revision 2287 by iliev, Mon Oct 11 09:31:27 2010 UTC revision 2288 by iliev, Wed Nov 23 21:19:44 2011 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-2010 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   *   *
# Line 31  import java.util.jar.Manifest; Line 31  import java.util.jar.Manifest;
31    
32  import java.util.logging.Level;  import java.util.logging.Level;
33    
34  import javax.swing.SwingUtilities;  import net.sf.juife.PDUtils;
35    
36  import org.jsampler.CC;  import org.jsampler.CC;
37  import org.jsampler.HF;  import org.jsampler.HF;
38    import org.jsampler.Prefs;
39    
40  /**  /**
41   * This class provides information about the available views in the current distribution.   * This class provides information about the available views in the current distribution.
# Line 100  public class JSViews { Line 101  public class JSViews {
101                          return;                          return;
102                  }                  }
103                  if(CC.getMainFrame() != null) {                  if(CC.getMainFrame() != null) {
104                          SwingUtilities.invokeLater(new Runnable() {                          PDUtils.runOnUiThread(new Runnable() {
105                                  public void                                  public void
106                                  run() { CC.getMainFrame().setVisible(false); }                                  run() { CC.getMainFrame().setVisible(false); }
107                          });                          });
# Line 110  public class JSViews { Line 111  public class JSViews {
111                          CC.setViewConfig (                          CC.setViewConfig (
112                                  (JSViewConfig)Class.forName(entry.viewConfig).newInstance()                                  (JSViewConfig)Class.forName(entry.viewConfig).newInstance()
113                          );                          );
114                            CC.getViewConfig().setUIDefaultFont(Prefs.getInterfaceFont());
115                  } catch(Exception e) {                  } catch(Exception e) {
116                          CC.getLogger().info(HF.getErrorMessage(e));                          CC.getLogger().info(HF.getErrorMessage(e));
117                          return;                          return;

Legend:
Removed from v.2287  
changed lines
  Added in v.2288

  ViewVC Help
Powered by ViewVC