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

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

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

revision 1777 by iliev, Thu Sep 11 18:48:36 2008 UTC revision 1778 by iliev, Sun Sep 28 20:38:36 2008 UTC
# Line 52  import static org.jsampler.view.fantasia Line 52  import static org.jsampler.view.fantasia
52   *   *
53   * @author Grigor Iliev   * @author Grigor Iliev
54   */   */
55  public class MainPane extends JPanel {  public class MainPane extends FantasiaPanel {
56          private final ChannelsBar channelsBar = new ChannelsBar();          private final ChannelsBar channelsBar = new ChannelsBar();
57          private final ChannelsPane channelsPane;          private final ChannelsPane channelsPane;
58                    
# Line 60  public class MainPane extends JPanel { Line 60  public class MainPane extends JPanel {
60                    
61          /** Creates a new instance of <code>MainPane</code> */          /** Creates a new instance of <code>MainPane</code> */
62          public MainPane() {          public MainPane() {
63                    setOpaque(false);
64                  channelsPane = new ChannelsPane("", new ActionListener() {                  channelsPane = new ChannelsPane("", new ActionListener() {
65                          public void                          public void
66                          actionPerformed(ActionEvent e) { scrollToBottom(); }                          actionPerformed(ActionEvent e) { scrollToBottom(); }
# Line 70  public class MainPane extends JPanel { Line 71  public class MainPane extends JPanel {
71                                    
72                  setLayout(gridbag);                  setLayout(gridbag);
73                                    
74                  JPanel p = new JPanel();                  JPanel p = new FantasiaPanel();
75                    p.setOpaque(false);
76                  p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS));                  p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS));
77                  p.add(channelsBar);                  p.add(channelsBar);
78                  p.add(Box.createGlue());                  p.add(Box.createGlue());
# Line 125  public class MainPane extends JPanel { Line 127  public class MainPane extends JPanel {
127                    
128          private JPanel          private JPanel
129          createChannelsPane() {          createChannelsPane() {
130                  JPanel p = new JPanel();                  JPanel p = new FantasiaPanel();
131                  p.setLayout(new BoxLayout(p, BoxLayout.Y_AXIS));                  p.setLayout(new BoxLayout(p, BoxLayout.Y_AXIS));
132                  channelsPane.setAlignmentX(LEFT_ALIGNMENT);                  channelsPane.setAlignmentX(LEFT_ALIGNMENT);
133                  p.add(channelsPane);                  p.add(channelsPane);

Legend:
Removed from v.1777  
changed lines
  Added in v.1778

  ViewVC Help
Powered by ViewVC