package com.Bit4Tat;
import java.awt.BorderLayout;
import java.awt.CardLayout;
import java.awt.Color;
import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JPanel;
private static final long serialVersionUID = 1L;
super(w);
this.setLayout(new BorderLayout());
this.setBackground(Color.WHITE);
this.add(createHeaderPanel("exchanges_small.png", "Exchanges"), BorderLayout.NORTH);
SubPanel subPanel = new SubPanel();
subPanel.setLayout(new CardLayout());
subPanel.setBorder(BorderFactory.createMatteBorder(1, 0, 0, 0, Color.DARK_GRAY));
SubPanel mtGoxPanel = new SubPanel ("Mt. Gox Ticker");
mtGoxPanel.add(new JLabel(" "));
mtGoxPanel.add(new JLabel(" "));
mtGoxPanel.add(new HeaderLabel("High"));
mtGoxPanel.add(new JLabel(" "));
mtGoxPanel.add(new JLabel(""));
mtGoxPanel.add(new JLabel(" "));
mtGoxPanel.add(new HeaderLabel("Average"));
mtGoxPanel.add(new JLabel(" "));
mtGoxPanel.add(new JLabel(""));
mtGoxPanel.add(new JLabel(" "));
mtGoxPanel.add(new HeaderLabel("Volume"));
mtGoxPanel.add(new JLabel(" "));
mtGoxPanel.add(new JLabel(""));
mtGoxPanel.add(new JLabel(" "));
mtGoxPanel.add(new HeaderLabel("Last"));
mtGoxPanel.add(new JLabel(" "));
mtGoxPanel.add(new JLabel(""));
mtGoxPanel.add(new JLabel(" "));
mtGoxPanel.add(new HeaderLabel("Buy"));
mtGoxPanel.add(new JLabel(" "));
mtGoxPanel.add(new JLabel(""));
mtGoxPanel.add(new JLabel(" "));
mtGoxPanel.add(new HeaderLabel("Sell"));
mtGoxPanel.add(new JLabel(" "));
mtGoxPanel.add(new JLabel(""));
subPanel.add("Mt. Gox", mtGoxPanel);
SubPanel tradehillPanel = new SubPanel ("Tradehill");
subPanel.add("Tradehill", tradehillPanel);
JPanel sidePanel = createSidePanel(this, subPanel, "Exchanges", "Mt. Gox", "Tradehill");
this.add(sidePanel, BorderLayout.WEST);
this.add(subPanel);
currentSubPanel = mtGoxPanel;
}
}