Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Hill committed Apr 21, 2017
2 parents 2b7a5f9 + 40306a9 commit da734c8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
Binary file modified bin/view/FSWindow$1.class
Binary file not shown.
Binary file modified bin/view/FSWindow.class
Binary file not shown.
25 changes: 11 additions & 14 deletions src/view/FSWindow.java
Expand Up @@ -102,7 +102,6 @@ public class FSWindow {
tabbedPane.addTab("Income", incomeTable);
tabbedPane.setMnemonicAt(1, KeyEvent.VK_2);


String[] expenseColumns = {"Description", "CashFlow"};
Object[][] expense = {
{"Description", "CashFlow"},
Expand All @@ -122,8 +121,6 @@ public class FSWindow {
tabbedPane.addTab("Expenses", expenseTable);
tabbedPane.setMnemonicAt(2, KeyEvent.VK_3);



String[] assetColumns = {"Description", "CashFlow"};
Object[][] asset = {
{"Description", "CashFlow"},
Expand Down Expand Up @@ -188,18 +185,18 @@ public class FSWindow {
expenseTable.setPreferredSize(new Dimension(410, 250));
assetTable.setPreferredSize(new Dimension(410, 250));
assetTable2.setPreferredSize(new Dimension(410, 250));

mainFrame = new JFrame("CashFlow");
mainFrame.getContentPane().setBackground(new Color(149, 32, 216));
mainFrame.setSize(1000,750);
//need to set this to null and position everything manually
mainFrame.setLayout(new FlowLayout());
mainFrame.getContentPane().setBackground(new Color(49, 32, 216));

mainFrame.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent windowEvent){
System.exit(0);
}
});

tabbedPane.setPreferredSize(new Dimension(500, 750));

headerLabel = new JLabel("", JLabel.CENTER);
headerLabel.setFont(headerLabel.getFont().deriveFont(Font.BOLD, 16f));
statusLabel = new JLabel("",JLabel.CENTER);
Expand All @@ -208,20 +205,20 @@ public class FSWindow {

controlPanel = new JPanel();
controlPanel.setLayout(new FlowLayout());
controlPanel.setBackground(new Color(149, 32, 216));
controlPanel.setBackground(new Color(49, 32, 216));

mainFrame.setLayout(new FlowLayout());
mainFrame.add(headerLabel);
mainFrame.add(controlPanel);
mainFrame.add(statusLabel);
mainFrame.setVisible(true);
mainFrame.setVisible(true);
mainFrame.setExtendedState(JFrame.MAXIMIZED_BOTH);
mainFrame.add(splitPane);
//add game window like so
// splitPane.add(gamewindow);
splitPane.add(tabbedPane);

}
private ImageIcon createImageIcon(String string) {
// TODO Auto-generated method stub
return null;
}

protected Component makeTextPanel(String text) {
JPanel panel = new JPanel(false);
JLabel filler = new JLabel(text);
Expand Down

0 comments on commit da734c8

Please sign in to comment.