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 |
|
|
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(); } |
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()); |
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); |