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

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

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

revision 1742 by iliev, Mon Dec 3 23:22:02 2007 UTC revision 1743 by iliev, Sat May 31 23:04:01 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 37  import javax.swing.JLabel; Line 37  import javax.swing.JLabel;
37  import javax.swing.JScrollBar;  import javax.swing.JScrollBar;
38  import javax.swing.JScrollPane;  import javax.swing.JScrollPane;
39    
40    import javax.swing.plaf.basic.BasicButtonUI;
41    import javax.swing.plaf.basic.BasicLabelUI;
42  import javax.swing.plaf.basic.ComboPopup;  import javax.swing.plaf.basic.ComboPopup;
43    
44  import org.jsampler.view.std.JSInstrumentChooser;  import org.jsampler.view.std.JSInstrumentChooser;
# Line 45  import org.jvnet.lafwidget.animation.Fad Line 47  import org.jvnet.lafwidget.animation.Fad
47  import org.jvnet.lafwidget.animation.FadeKind;  import org.jvnet.lafwidget.animation.FadeKind;
48    
49  import org.jvnet.substance.SubstanceComboBoxUI;  import org.jvnet.substance.SubstanceComboBoxUI;
 import org.jvnet.substance.combo.SubstanceComboPopup;  
50  import org.jvnet.substance.SubstanceLookAndFeel;  import org.jvnet.substance.SubstanceLookAndFeel;
51    
52  /**  /**
# Line 104  public class FantasiaUtils { Line 105  public class FantasiaUtils {
105                                                    
106                          super.paintComponent(g2d);                          super.paintComponent(g2d);
107                  }                  }
108                    
109                    public void
110                    updateUI() { setUI(new BasicLabelUI()); }
111          }          }
112                    
113          private static class ScreenButton extends JButton {          private static class ScreenButton extends JButton {
# Line 115  public class FantasiaUtils { Line 119  public class FantasiaUtils {
119                          setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));                          setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));
120                          setMargin(new Insets(0, 0, 0, 0));                          setMargin(new Insets(0, 0, 0, 0));
121                                                    
                         putClientProperty (  
                                 SubstanceLookAndFeel.BUTTON_NO_MIN_SIZE_PROPERTY, Boolean.TRUE  
                         );  
                           
                         putClientProperty (  
                                 SubstanceLookAndFeel.BUTTON_PAINT_NEVER_PROPERTY, Boolean.TRUE  
                         );  
                           
                         putClientProperty(SubstanceLookAndFeel.FLAT_PROPERTY, Boolean.TRUE);  
                           
                         FadeConfigurationManager.getInstance().disallowFades(FadeKind.ROLLOVER, this);  
                           
122                          setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));                          setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
123                          setFont(Res.fontScreen);                          setFont(Res.fontScreen);
124                          setForeground(new java.awt.Color(0xFFA300));                          setForeground(new java.awt.Color(0xFFA300));
# Line 143  public class FantasiaUtils { Line 135  public class FantasiaUtils {
135                                                    
136                          super.paintComponent(g2d);                          super.paintComponent(g2d);
137                  }                  }
138                    
139                    public void
140                    updateUI() { setUI(new BasicButtonUI()); }
141          }          }
142  }  }

Legend:
Removed from v.1742  
changed lines
  Added in v.1743

  ViewVC Help
Powered by ViewVC