Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
All changes by joe
  • Loading branch information
Joe authored and Joe committed Mar 2, 2017
1 parent 31cb8c8 commit b53a84e
Show file tree
Hide file tree
Showing 7 changed files with 116 additions and 47 deletions.
6 changes: 6 additions & 0 deletions .classpath
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry excluding="Main/" kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="bin"/>
</classpath>
3 changes: 3 additions & 0 deletions bin/.gitignore
@@ -0,0 +1,3 @@
/model/
/view/
/controller/
Binary file modified bin/controller/Cashflow.class
Binary file not shown.
8 changes: 7 additions & 1 deletion src/controller/Cashflow.java
@@ -1,5 +1,11 @@
package controller;

public class Cashflow {
import view.*;

public class Cashflow
{
public static void main(String[] args)
{
new MainWindow();
}
}
2 changes: 1 addition & 1 deletion src/model/Card.java
Expand Up @@ -16,7 +16,7 @@ public class Card



public Market_Card(String title, String type, Boolean effect, int value){
public Card(String title, String type, Boolean effect, int value){
_title = title;
_type = type;
_effect = effect;
Expand Down
94 changes: 49 additions & 45 deletions src/model/Market_Cards.java

Large diffs are not rendered by default.

50 changes: 50 additions & 0 deletions src/view/MainWindow.java
@@ -0,0 +1,50 @@
package view;

import java.awt.*;

import javax.swing.JFrame;
import javax.swing.JPanel;

public class MainWindow {

private JFrame frame;

/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
MainWindow window = new MainWindow();
window.frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}

/**
* Create the application.
*/
public MainWindow() {
initialize();
}

/**
* Initialize the contents of the frame.
*/
private void initialize() {
frame = new JFrame();
frame.setExtendedState(JFrame.MAXIMIZED_BOTH);
//frame.setBackground(new Color(186,85,211));
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//frame.getContentPane().setLayout(null);
frame.setVisible(true);

JPanel panel = new JPanel();
panel.setBackground(new Color(186,85,211));
frame.add(panel);
}
}

0 comments on commit b53a84e

Please sign in to comment.