Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
edited background colors and fonts
  • Loading branch information
sss13010 committed Apr 7, 2017
1 parent 281c52f commit 16f71f7
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/view/DoodadCardWindow.java
@@ -1,6 +1,8 @@
package view;

import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
Expand Down Expand Up @@ -29,7 +31,8 @@ public class DoodadCardWindow {
}
private void prepareGUI(){
mainFrame = new JFrame("Doodad");
mainFrame.setSize(400,250);
mainFrame.getContentPane().setBackground(new Color(250, 51, 51));
mainFrame.setSize(350,250);
//need to set this to null and position everything manually
mainFrame.setLayout(new GridLayout(3, 1));

Expand All @@ -38,24 +41,26 @@ public class DoodadCardWindow {
System.exit(0);
}
});
headerLabel = new JLabel("", JLabel.CENTER);
headerLabel = new JLabel("", JLabel.CENTER);
headerLabel.setFont(headerLabel.getFont().deriveFont(Font.BOLD, 16f));
statusLabel = new JLabel("",JLabel.CENTER);
statusLabel.setSize(350,100);

controlPanel = new JPanel();
controlPanel.setLayout(new FlowLayout());
controlPanel.setBackground(new Color(250, 51, 51));

mainFrame.add(headerLabel);
mainFrame.add(controlPanel);
mainFrame.add(statusLabel);
mainFrame.setVisible(true);
}

private void showButtonDemo(){
headerLabel.setText("Call Doodad Title here");
statusLabel.setText("Call Doodad Description here");
//resources folder should be inside SWING folder.

JButton payDoodad = new JButton("Pay");
// payDoodad.setLayout(null);
// payDoodad.setLocation(10,220);
Expand Down

0 comments on commit 16f71f7

Please sign in to comment.