Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
hbseo committed Nov 25, 2016
1 parent 0d57d44 commit 628d142
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion Serious/Serious.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;

// v0.5
// v0.51

public class Serious extends JFrame implements ActionListener{
JPanel panel;
JFrame frame;
JButton [] num_btn = new JButton[10];
JButton Primebtn, MODbtn, AVGbtn, factorialbtn, deletebtn, clearbtn,
dividebtn, multiplebtn, percentbtn, leftbracketbtn, rightbracketbtn,
Expand Down Expand Up @@ -57,6 +59,31 @@ public Serious() {
equalbtn = new JButton("=");
dotbtn = new JButton(".");

//버튼 글씨색

for (int i=0; i<10; i++)
num_btn[i].setForeground(Color.BLACK);

dotbtn.setForeground(Color.BLACK);
leftbracketbtn.setForeground(Color.BLACK);
rightbracketbtn.setForeground(Color.BLACK);
percentbtn.setForeground(Color.BLACK);
deletebtn.setForeground(Color.BLACK);
clearbtn.setForeground(Color.RED);

equalbtn.setForeground(Color.BLUE);
plusbtn.setForeground(Color.BLUE);
minusbtn.setForeground(Color.BLUE);
multiplebtn.setForeground(Color.BLUE);
dividebtn.setForeground(Color.BLUE);

Color orange = new Color(255, 153, 000);

Primebtn.setForeground(orange);
MODbtn.setForeground(orange);
AVGbtn.setForeground(orange);
factorialbtn.setForeground(orange);

// 버튼 배열
num_btn[0].setBounds(0,420,160,60);
num_btn[7].setBounds(0,240,80,60);
Expand Down Expand Up @@ -125,6 +152,8 @@ public Serious() {

add(panel);



setVisible(true);

}
Expand Down

0 comments on commit 628d142

Please sign in to comment.