From 5634a9b9aeb7cd3fd679a6b792b7f2ac37f6a3c4 Mon Sep 17 00:00:00 2001 From: XJH040985927 <1759361294@qq.com> Date: Tue, 31 May 2022 00:31:00 +0800 Subject: [PATCH 01/13] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=B8=80=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme.md | 2 - src/java2022spring/ComputerWindowMenu.java | 45 ++++++++++++++++++++++ src/java2022spring/Main.java | 8 ++++ src/java2022spring/Test.java | 7 ---- 4 files changed, 53 insertions(+), 9 deletions(-) delete mode 100644 readme.md create mode 100644 src/java2022spring/ComputerWindowMenu.java create mode 100644 src/java2022spring/Main.java delete mode 100644 src/java2022spring/Test.java diff --git a/readme.md b/readme.md deleted file mode 100644 index 4af16ad..0000000 --- a/readme.md +++ /dev/null @@ -1,2 +0,0 @@ -# 科学计算器 -0103 张三 \ No newline at end of file diff --git a/src/java2022spring/ComputerWindowMenu.java b/src/java2022spring/ComputerWindowMenu.java new file mode 100644 index 0000000..8c7441b --- /dev/null +++ b/src/java2022spring/ComputerWindowMenu.java @@ -0,0 +1,45 @@ +package java2022spring; +import javax.swing.*; +import java.awt.*; +import java.awt.*; +public class ComputerWindowMenu extends JFrame{ + private static final long serialVersionUID = 1L; + JMenuBar menubar=new JMenuBar(); + JMenu menu1=new JMenu("编辑(E)"); + JMenu menu2=new JMenu("查找(Y)"); + JMenu menu3=new JMenu("帮助(H)"); + + public ComputerWindowMenu(int x,int y,int z,int h) { + setTitle("计算器"); + init(); + setLocation(x,y); + setSize(z,h); + setVisible(true); + setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); + + } +void init() { + this.menubar.add(menu2); + this.menubar.add(menu1); + this.menubar.add(menu3); + this.setJMenuBar(menubar); + JPanel panel1=new JPanel(); + JPanel panel2=new JPanel(); + JTextArea text=new JTextArea(); + this.setLayout(new BorderLayout()); + text.setPreferredSize(new Dimension (370,60)); + panel1.add(text); + add(panel1,BorderLayout.NORTH); + panel2.setLayout(new FlowLayout()); + panel2.setLayout(new GridLayout(5,4)); + JButton button[]=new JButton[20]; + String name[]= {"C","CE","%","÷","7","8","9","x","4","5","6","-","1","2","3","3","+","e","0",".","="}; + int i; + for(i=0;i<=19;i++) { + button[i]=new JButton(name[i]); + } + for(i=0;i<=19;i++ ) + panel2.add(button[i]); + add(panel2,BorderLayout.CENTER); +} +} diff --git a/src/java2022spring/Main.java b/src/java2022spring/Main.java new file mode 100644 index 0000000..b95d082 --- /dev/null +++ b/src/java2022spring/Main.java @@ -0,0 +1,8 @@ +package java2022spring; +public class Main { + public static void main(String args[]) { + ComputerWindowMenu win1=new ComputerWindowMenu(100,100,400,400); + } + +} + diff --git a/src/java2022spring/Test.java b/src/java2022spring/Test.java deleted file mode 100644 index 24deb29..0000000 --- a/src/java2022spring/Test.java +++ /dev/null @@ -1,7 +0,0 @@ -package java2022spring; - -public class Test { - public static void main(String[] args) { - System.out.println("Hello world!"); - } -} -- Gitee From 8ce689f3805d6cc17fadfcc376da1cc339e4b6d9 Mon Sep 17 00:00:00 2001 From: XJH040985927 <1759361294@qq.com> Date: Thu, 2 Jun 2022 23:48:12 +0800 Subject: [PATCH 02/13] =?UTF-8?q?=E6=94=B9=E4=B8=8B=E6=A1=86=E6=9E=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/java2022spring/Main.class | Bin 0 -> 562 bytes bin/java2022spring/StandardCalculator.class | Bin 0 -> 2802 bytes src/java2022spring/ComputerWindowMenu.java | 45 -------------------- src/java2022spring/Main.java | 2 +- 4 files changed, 1 insertion(+), 46 deletions(-) create mode 100644 bin/java2022spring/Main.class create mode 100644 bin/java2022spring/StandardCalculator.class delete mode 100644 src/java2022spring/ComputerWindowMenu.java diff --git a/bin/java2022spring/Main.class b/bin/java2022spring/Main.class new file mode 100644 index 0000000000000000000000000000000000000000..632b8c8162506f1ce3584140724538e12b9d41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qZClmkF?r9}5{+$G*nb;(Au)|l0&s9|A;A{)ah1r%vhQgX_aB1V^(BZH4 z#f9F3F0PBl{Dl4SfcaD`9yAZd;sxe2v3Q~RTr94eFT~=)d?^+$Dm0If>gFq?!hDT% zxcLTY$UI6q!aPQ5nD3B|G~Xi~WgaITZJr=4GCv|MHa{UX&Cf_n%u}%jdG6^()k5b{ zHJ@Rvy@u2Ac~Xe>;A~8(qTw9Q$&me(N-R!`;4ZeFG%YGQ^Vcsj*EQys%vFLGP~GT* zHi4xp;IEj8+n9ylFw!O_;xYD`VLop$gqUF5@Kzjs|pqR Date: Sat, 4 Jun 2022 01:03:27 +0800 Subject: [PATCH 03/13] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=A7=91=E5=AD=A6?= =?UTF-8?q?=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/java2022spring/StandardCalculator.class | Bin 2802 -> 4759 bytes src/java2022spring/ScientificCalculator.java | 5 + src/java2022spring/StandardCalculator.java | 97 +++++++++++++++++++ 3 files changed, 102 insertions(+) create mode 100644 src/java2022spring/ScientificCalculator.java create mode 100644 src/java2022spring/StandardCalculator.java diff --git a/bin/java2022spring/StandardCalculator.class b/bin/java2022spring/StandardCalculator.class index 5a3e76e6aeaa01cc042f563b1d5c10b2f2805f37..fc34af9ffb81bd6628707b705f9cfcbf78820fe7 100644 GIT binary patch literal 4759 zcmcIod3;pW75*+W;k`^=LU534u@u*g6~ zt+ZP0;;t=%)@og%wQ99yVvX9>+G=-OyKgEk-D_K|wbg#-y-CRS>#zTmU*0`;IrrRi z&-u=|XL#zZM;-^TUainDO=0mqYrj=jTUVFtccSs$no!D$M=U4OYQ?(KF)NjDH24)v zVLMopJRm$<+8wLU)-YXRfy~!f2U0cmemkD3+0dPeCgNM8$&?+p9R;n=j;FgU_GWJ# zCt@4tTP&whA*U~q+#6LWn#{n}ToDjW*?lV&=1k`3;L2F8It72qKA2LNJD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Qys%vFLGP~GT* zHi4xp;IEj8+n9ylFw!O_;xYD`VLop$gqUF5@Kzjs|pqR0) { + if(i>1) { + str0= str0.substring(0, i-1); + text.setText(str0); + } + else + text.setText("0"); + first = true; + operator = "="; + } + } + else if(str.equals("C")){ + text.setText("0"); + first = true; + operator = "="; + } + else if("0123456789.".indexOf(str) >= 0){ + if (first) { + text.setText(str); + } else if((str.equals(".")) && (text.getText().indexOf(".")<0)){ + text.setText(text.getText() + "."); + } + else if (!str.equals(".")){ + text.setText(text.getText()+str); + } + first=false; + } + else if(str.equals("|x|")||str.equals("1/x")){ + if(str.equals("1/x")) { + result = Double.valueOf(text.getText()).doubleValue(); + if(result== 0) { + text.setText("错误"); + } else { + result=1/result; + } + } + } +} +} + \ No newline at end of file -- Gitee From 8051c1692c0a09eb25de1660f9b8b5ed84267be1 Mon Sep 17 00:00:00 2001 From: XJH040985927 <1759361294@qq.com> Date: Sun, 5 Jun 2022 13:35:38 +0800 Subject: [PATCH 04/13] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/java2022spring/StandardCalculator.java | 81 ++++++++++++++++++---- 1 file changed, 68 insertions(+), 13 deletions(-) diff --git a/src/java2022spring/StandardCalculator.java b/src/java2022spring/StandardCalculator.java index 33a0902..bc9aa80 100644 --- a/src/java2022spring/StandardCalculator.java +++ b/src/java2022spring/StandardCalculator.java @@ -1,6 +1,5 @@ package java2022spring; import javax.swing.*; -import java.text.DecimalFormat; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; @@ -15,7 +14,8 @@ public class StandardCalculator extends JFrame implements ActionListener{ int i=0; boolean first; double result; - String operator = "="; + String operator="="; + boolean operate; public StandardCalculator(){} public StandardCalculator(String s,int x,int y,int z,int n) { init(s); @@ -49,6 +49,12 @@ public class StandardCalculator extends JFrame implements ActionListener{ } add(panel2,BorderLayout.CENTER); button[18].setBackground(Color.gray); + menuitem2.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent arg0) { + StandardCalculator science = new StandardCalculator(); + science.setVisible(true); + } + }); } public void actionPerformed(ActionEvent e) { String str=e.getActionCommand(); @@ -63,7 +69,7 @@ public class StandardCalculator extends JFrame implements ActionListener{ else text.setText("0"); first = true; - operator = "="; + } } else if(str.equals("C")){ @@ -81,17 +87,66 @@ public class StandardCalculator extends JFrame implements ActionListener{ text.setText(text.getText()+str); } first=false; + } + else + Operator(str); + } + private void Operator(String str) { + if (operator.equals("/")) { + if (getNumber() == 0.0) { + operate = false; + text.setText("错误:除数不能为零"); + } + else + result/= getNumber(); + } + else if (operator.equals("1/x")) { + if (result == 0.0) { + operate = false; + text.setText("零没有倒数"); + } + else + result= 1 / result; + } + else if (operator.equals("+")) { + result+= getNumber(); + } + else if (operator.equals("-")) { + result -= getNumber(); + } + else if (operator.equals("*")) { + result *= getNumber(); } - else if(str.equals("|x|")||str.equals("1/x")){ - if(str.equals("1/x")) { - result = Double.valueOf(text.getText()).doubleValue(); - if(result== 0) { - text.setText("错误"); - } else { - result=1/result; - } + else if (operator.equals("|x|")) { + result = Math.abs(result); + } + else if (operator.equals("=")) { + result= getNumber(); + } + if (operate) { + long t1; + double t2; + t1 = (long) result; + t2 = result- t1; + if (t2 == 0) { + text.setText(String.valueOf(t1)); + } + else { + text.setText(String.valueOf(result)); } + } + operator =str; + first= true; + operate= true; } + + public double getNumber() { + double result0= 0; + try { + result0= Double.valueOf(text.getText()).doubleValue(); + } catch (NumberFormatException e) {} + return result0; + } + } -} - \ No newline at end of file + -- Gitee From e515df1a4c1a2b879f1d7252d3a0ee3ad813c9fb Mon Sep 17 00:00:00 2001 From: XJH040985927 <1759361294@qq.com> Date: Sun, 5 Jun 2022 22:17:17 +0800 Subject: [PATCH 05/13] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=A7=91=E5=AD=A6?= =?UTF-8?q?=E8=AE=A1=E7=AE=97=E5=99=A8=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/java2022spring/StandardCalculator.class | Bin 4759 -> 5810 bytes src/java2022spring/Main2.java | 5 +++ src/java2022spring/ScientificCalculator.java | 40 +++++++++++++++++-- 3 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 src/java2022spring/Main2.java diff --git a/bin/java2022spring/StandardCalculator.class b/bin/java2022spring/StandardCalculator.class index fc34af9ffb81bd6628707b705f9cfcbf78820fe7..bfc18903aaa5e56652231f0d4ba220bb62c34e5f 100644 GIT binary patch literal 5810 zcmcIodwdkvb^eaDVn)jVVuS$mepyH>B!K|&6c|a!fRRih0$H3U9!Y~(SnVpiE0D39 z;P^r9#KEzhy4bE`8iL$3F^P*-#Ilp7b<@Og`b^WL=`%LiPMtoTwsvAW-?_7T>*rtp zDfZrb=bUrToco=}J);-idFJZ?>SUjVJi*eV-f^#HbxlpWI~7ZGR<~xnM2DB^Xz=3g zJ#jCSOj!sCTovoBPM=VjJxwXE%eOE^uu$pM-ib`Lf80-Gs&}+!V#&nbSUTe;{FK1z z@)JF69#^yXj#1G}dcBw0A}HuerjNt~#S;a{EmQ@ujNi3JFlVB~ZgNIT)d)fvzc(Y8 zJ63o`$S+biZ9*(8b)G3F!IpwE&;`-1iu#??> zNVR%vWZreA5e8w4hj*ru$n>>)G4Yq z2*8Z1Pn^DT`tDbsI`_&`4_`U^WEj<`(CzCTOod}(17%+6`^=RuUl^8A_9h3@;8-98 zv&U#3c0(AOgL7?jFdZ{2TsJ<*j5osA9*8wKD8fwDz0-jktgd%Zj9E75A*oZ=4Gyls zJessOmhfA8y4w8Iey=S~_}#t9b}xRwOU3j#M+{|-#L|N02BY`P0iNTUNub=#f8__l zeDnJqv?|~s^|BH^;NSob3Z|z0jJ{jbf`L>vv?1!?kn%0^TVp2~3xW?h_%(c35GL(F zEFCkJhsq8GuejNPhc*T_xsCo|k3rZFPp17FO$ZwGp)#67FnB2GPFb5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GgJ-21k@hYgfmq;&UV35@40&vJeyRRT23(Js1|~! ygz0HEfBKiR=cB&$@++Ni6Bx}!-dju?xQ%~Ge*^iY^G;c=&8(4kwu0-^RPaCem!s1F diff --git a/src/java2022spring/Main2.java b/src/java2022spring/Main2.java new file mode 100644 index 0000000..8014c80 --- /dev/null +++ b/src/java2022spring/Main2.java @@ -0,0 +1,5 @@ +package java2022spring; + +public class Main2 { + +} diff --git a/src/java2022spring/ScientificCalculator.java b/src/java2022spring/ScientificCalculator.java index 9dee9da..4645267 100644 --- a/src/java2022spring/ScientificCalculator.java +++ b/src/java2022spring/ScientificCalculator.java @@ -1,5 +1,39 @@ package java2022spring; - -public class ScientificCalculator { - +import java.awt.*; +import java.awt.event.*; +import javax.swing.*; +public class ScientificCalculator extends JFrame{ + JMenuBar menubar=new JMenuBar(); + JMenu moshi=new JMenu("模式"); + JMenuItem menuitem1=new JMenuItem("标准计算器"); + JMenuItem menuitem2=new JMenuItem("科学计算器"); + JTextField text=new JTextField(); + JPanel panel1=new JPanel(); + JPanel panel2=new JPanel(); + int i=0; + boolean first; + double result; + String operator="="; + boolean operate; + public ScientificCalculator(String s,int x,int y,int z,int n) { + init(s); + this.setLocation(x,y); + setSize(z,n); + setVisible(true); + setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); + } + void init(String s) { + setTitle(s); + menubar.add(moshi); + moshi.setFont(new Font("楷体", Font.BOLD, 20)); + moshi.add(menuitem1); + moshi.add(menuitem2); + this.setLayout(new BorderLayout()); + text.setHorizontalAlignment(JTextField.RIGHT); + panel1.add(text); + text.setPreferredSize(new Dimension (370,60)); + this.add(panel1,BorderLayout.NORTH); + panel2.setLayout(new FlowLayout()); + } + } -- Gitee From f6ed0cbbcce7bb260f005fbe529c3f74cd534b1e Mon Sep 17 00:00:00 2001 From: XJH040985927 <1759361294@qq.com> Date: Mon, 6 Jun 2022 18:45:02 +0800 Subject: [PATCH 06/13] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E7=A7=91?= =?UTF-8?q?=E5=AD=A6=E8=AE=A1=E7=AE=97=E5=99=A8=E7=AA=97=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/java2022spring/ScientificCalculator.java | 18 +++++++++++++++--- src/java2022spring/{Main2.java => m.java} | 0 2 files changed, 15 insertions(+), 3 deletions(-) rename src/java2022spring/{Main2.java => m.java} (100%) diff --git a/src/java2022spring/ScientificCalculator.java b/src/java2022spring/ScientificCalculator.java index 4645267..a980352 100644 --- a/src/java2022spring/ScientificCalculator.java +++ b/src/java2022spring/ScientificCalculator.java @@ -2,7 +2,7 @@ package java2022spring; import java.awt.*; import java.awt.event.*; import javax.swing.*; -public class ScientificCalculator extends JFrame{ +public class ScientificCalculator extends JFrame implements ActionListener{ JMenuBar menubar=new JMenuBar(); JMenu moshi=new JMenu("模式"); JMenuItem menuitem1=new JMenuItem("标准计算器"); @@ -29,11 +29,23 @@ public class ScientificCalculator extends JFrame{ moshi.add(menuitem1); moshi.add(menuitem2); this.setLayout(new BorderLayout()); - text.setHorizontalAlignment(JTextField.RIGHT); panel1.add(text); - text.setPreferredSize(new Dimension (370,60)); this.add(panel1,BorderLayout.NORTH); + text.setHorizontalAlignment(JTextField.RIGHT); + text.setPreferredSize(new Dimension (370,60)); panel2.setLayout(new FlowLayout()); + JButton button1[]=new JButton[20]; + String str0[]= {"|x|","1/x","C","←","7","8","9","+","4","5","6","-","1","2","3","*","0",".","=","/"}; + String str1[]= {}; + JButton button2[]=new JButton[str1.length]; + for(i=0;i<=20;i++) { + button1[i].setFont(new Font("楷体", Font.BOLD, 20)); + button1[i].setBorderPainted(false); //字体 + button1[i].addActionListener(this);//取消边界 + panel2.add(button1[i]); + } + add(panel2,BorderLayout.CENTER); + button1[18].setBackground(Color.gray); } } diff --git a/src/java2022spring/Main2.java b/src/java2022spring/m.java similarity index 100% rename from src/java2022spring/Main2.java rename to src/java2022spring/m.java -- Gitee From 297595c1c7007a1bd39977289924373f05e5c615 Mon Sep 17 00:00:00 2001 From: XJH040985927 <1759361294@qq.com> Date: Mon, 6 Jun 2022 20:55:04 +0800 Subject: [PATCH 07/13] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=80=E4=B8=8B=20?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E7=A7=91=E5=AD=A6=E8=AE=A1=E7=AE=97=E5=99=A8?= =?UTF-8?q?=E7=AA=97=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/java2022spring/Main.class | Bin 562 -> 568 bytes src/java2022spring/Main.java | 2 +- src/java2022spring/ScientificCalculator.java | 10 +++++++++- src/java2022spring/m.java | 5 ----- 4 files changed, 10 insertions(+), 7 deletions(-) delete mode 100644 src/java2022spring/m.java diff --git a/bin/java2022spring/Main.class b/bin/java2022spring/Main.class index 632b8c8162506f1ce3584140724538e12b9d41ad..ac719d2f1aac118a881ca9753c7470a34b172af8 100644 GIT binary patch delta 24 gcmdnQvV YhKZ(8~UHmn*3}*`_uNejh`GC0iO5`D*ylh delta 18 acmdnNvWaEFYj*yp8~UHmn!NFc10w)a{Rt)j diff --git a/src/java2022spring/Main.java b/src/java2022spring/Main.java index 7d87196..f1b3bd6 100644 --- a/src/java2022spring/Main.java +++ b/src/java2022spring/Main.java @@ -1,7 +1,7 @@ package java2022spring; public class Main { public static void main(String args[]) { - StandardCalculator win1=new StandardCalculator("小皓计算器",100,100,400,400); + StandardCalculator win1=new StandardCalculator("小皓标准计算器",100,100,400,400); } } diff --git a/src/java2022spring/ScientificCalculator.java b/src/java2022spring/ScientificCalculator.java index a980352..b12e8fe 100644 --- a/src/java2022spring/ScientificCalculator.java +++ b/src/java2022spring/ScientificCalculator.java @@ -39,6 +39,7 @@ public class ScientificCalculator extends JFrame implements ActionListener{ String str1[]= {}; JButton button2[]=new JButton[str1.length]; for(i=0;i<=20;i++) { + button1[i]=new JButton(str0[i]); button1[i].setFont(new Font("楷体", Font.BOLD, 20)); button1[i].setBorderPainted(false); //字体 button1[i].addActionListener(this);//取消边界 @@ -46,6 +47,13 @@ public class ScientificCalculator extends JFrame implements ActionListener{ } add(panel2,BorderLayout.CENTER); button1[18].setBackground(Color.gray); + menuitem1.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent arg0) { + StandardCalculator win1= new StandardCalculator(); + win1.setVisible(true); } - + }); + } } + + \ No newline at end of file diff --git a/src/java2022spring/m.java b/src/java2022spring/m.java deleted file mode 100644 index 8014c80..0000000 --- a/src/java2022spring/m.java +++ /dev/null @@ -1,5 +0,0 @@ -package java2022spring; - -public class Main2 { - -} -- Gitee From cfbcc7eaecc79579daaffc9ba3b89415b58876df Mon Sep 17 00:00:00 2001 From: XJH040985927 <1759361294@qq.com> Date: Mon, 6 Jun 2022 21:05:12 +0800 Subject: [PATCH 08/13] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/java2022spring/0.txt | 0 src/java2022spring/ScientificCalculator.java | 9 ++++++--- src/java2022spring/StandardCalculator.java | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 src/java2022spring/0.txt diff --git a/src/java2022spring/0.txt b/src/java2022spring/0.txt new file mode 100644 index 0000000..e69de29 diff --git a/src/java2022spring/ScientificCalculator.java b/src/java2022spring/ScientificCalculator.java index b12e8fe..7785d67 100644 --- a/src/java2022spring/ScientificCalculator.java +++ b/src/java2022spring/ScientificCalculator.java @@ -34,11 +34,10 @@ public class ScientificCalculator extends JFrame implements ActionListener{ text.setHorizontalAlignment(JTextField.RIGHT); text.setPreferredSize(new Dimension (370,60)); panel2.setLayout(new FlowLayout()); + panel2.setLayout(new GridLayout(5, 4, 2, 2)); JButton button1[]=new JButton[20]; String str0[]= {"|x|","1/x","C","←","7","8","9","+","4","5","6","-","1","2","3","*","0",".","=","/"}; - String str1[]= {}; - JButton button2[]=new JButton[str1.length]; - for(i=0;i<=20;i++) { + for(i=0;i<=19;i++) { button1[i]=new JButton(str0[i]); button1[i].setFont(new Font("楷体", Font.BOLD, 20)); button1[i].setBorderPainted(false); //字体 @@ -54,6 +53,10 @@ public class ScientificCalculator extends JFrame implements ActionListener{ } }); } + public void actionPerformed(ActionEvent e) { + + + } } \ No newline at end of file diff --git a/src/java2022spring/StandardCalculator.java b/src/java2022spring/StandardCalculator.java index bc9aa80..f869f90 100644 --- a/src/java2022spring/StandardCalculator.java +++ b/src/java2022spring/StandardCalculator.java @@ -51,7 +51,7 @@ public class StandardCalculator extends JFrame implements ActionListener{ button[18].setBackground(Color.gray); menuitem2.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { - StandardCalculator science = new StandardCalculator(); + ScientificCalculator science = new ScientificCalculator("小皓科学计算器",100,100,400,400); science.setVisible(true); } }); -- Gitee From 79b4f7bf5e91d79c324d9484ae1c619b81d8c54d Mon Sep 17 00:00:00 2001 From: XJH040985927 <1759361294@qq.com> Date: Tue, 7 Jun 2022 19:08:24 +0800 Subject: [PATCH 09/13] =?UTF-8?q?=E7=A7=91=E5=AD=A6=E8=AE=A1=E7=AE=97?= =?UTF-8?q?=E5=99=A8=E7=AA=97=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/java2022spring/Main.class | Bin 568 -> 570 bytes bin/java2022spring/StandardCalculator.class | Bin 5810 -> 5917 bytes src/java2022spring/{0.txt => 1.txt} | 0 src/java2022spring/Main.java | 2 +- src/java2022spring/ScientificCalculator.java | 30 +++++++++++-------- src/java2022spring/StandardCalculator.java | 8 +++-- 6 files changed, 23 insertions(+), 17 deletions(-) rename src/java2022spring/{0.txt => 1.txt} (100%) diff --git a/bin/java2022spring/Main.class b/bin/java2022spring/Main.class index ac719d2f1aac118a881ca9753c7470a34b172af8..ed928912fe2251829519693975c49e9e911bfa0a 100644 GIT binary patch delta 98 zcmdnNvWsQI1I8$S26hG}1_lQ4-3$VeLPCO!Uj!L-1R3K5nbfv3i1=&-N-;5T0ZA^f jG8P6g237`cAYTlkjX|720?cD%kYtczU<5*GupSuz-4_Y> delta 96 zcmdnRvV&#A1I7qn26hG}1_lPv-3$VeLP7#50x5!w6M$$tgNV;Ypac^G7m(xvD`H^~ iVPIw82J*!qni#|xB!D~-21W)+1}PxP$RG{YBLe{34hkv& diff --git a/bin/java2022spring/StandardCalculator.class b/bin/java2022spring/StandardCalculator.class index bfc18903aaa5e56652231f0d4ba220bb62c34e5f..b0fc308da9489e533a9ac2cd1966064141cf1f55 100644 GIT binary patch delta 2720 zcmZ8j4RjRM75?t-W@mOYB%28v@&^V8$!4<2=5GTb1WX7t#3V#FCf&A&HkdU811ZS@ zX@xH5RPaPpen!*)q9_tA+DJ$yXhe%zTcy<6SZk%fR%oHxmRj3_0=;iGf`=sM-uLc( z_r5##`{quD@*c@|zIpkDmjF~y%VFoX7_WqT3F^w$b*;YE^qWE!0hz=BX1`_4<0&cdTyrEjP`+sJA?)S;js>OhZ?9c!d*$$3))!`h0sn zJ)y6%C&xaH3~}FP2?P3edvfF;o)#tkfFOC6@J~*&gl7mY^Km*``G!Ean=g{_LxOcf z?*VpSsJN38rZUSU-# z<29NM%9HUrZwqDolvR<8H(3?S_!%or#?M(5$oK`Td>OxF<&*G^zD!E?jU(5IanZnW zyrv9 zFX0nia+EqQ;&Ta~5mI+7bvqZW<7*XM!eu?=@XCh>3K3cKen(~r*%XSwWd@-=6mAOj zhMhP>l0q^$xZcjt>h|yo?y@ImiEzX!q|hY&yd%dSuaFB~j^oD`aSjlv3fxGNX)+o!WQfQV!S)yJ!+!f^qlZ`wI<>&>m<@S7qd{m&XiA{18DM%B=l<3=IGa5@3 zOhK|ta|rQg_ZVk}_Mh3?cY4##GrOL1(p;J+QTZ2enB1#x4X;qBg68wXw=VA?*gVxa z)uO%|MSYb!l~iuzLb0yaXDA-~61qvETD?(mTc=W;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qun-H&2ms3eays~pq0c0SP!IKDQ!+8pe6pZpeiQ`bt%U@8UIG71@;7b5)3mQu^ zQ{xA$&IWXoiqkf4MV9P?e2nWdDAE0w^zb-Y{^$e+#_%LNTeOF*G%sTnI6JM(>ii~s zmUJd^Hds01R!+v5{Z{jS@iBB;&V6S&JFUZ7E#LmLeAigMa?7{N@}+ah6quq4%adby znk`R?E^m#^9H4IjQ-}g1i=`~Qt+Un<&vnT9(>bHAaEfZI+O4a^h6~xCdzqpZk)_Z- zCC3h?02pQ!U*Q)@JLAxSx%}*vAc9Ii(727fxSh&y2UYRMlRrBrUlN5l+D8}CMN9xYE})B%D~V!Um7N#o*HeNJ ze6EeHOrEr6*$#ftrf9KAP0eF)w3Y1UC>z|!pk*^-OtYdlvUL;N4JO|`7HzZHA}N>{ xM>b^AC43%P#7u|n6XvN+0T)6FEi2-oNOCCJsFjBuAV1lTvgRMjapsWM{{;y`WxW6Z diff --git a/src/java2022spring/0.txt b/src/java2022spring/1.txt similarity index 100% rename from src/java2022spring/0.txt rename to src/java2022spring/1.txt diff --git a/src/java2022spring/Main.java b/src/java2022spring/Main.java index f1b3bd6..7610ab0 100644 --- a/src/java2022spring/Main.java +++ b/src/java2022spring/Main.java @@ -1,7 +1,7 @@ package java2022spring; public class Main { public static void main(String args[]) { - StandardCalculator win1=new StandardCalculator("小皓标准计算器",100,100,400,400); + StandardCalculator win1=new StandardCalculator("小皓标准计算器",500,300,350,550); } } diff --git a/src/java2022spring/ScientificCalculator.java b/src/java2022spring/ScientificCalculator.java index 7785d67..a19fc76 100644 --- a/src/java2022spring/ScientificCalculator.java +++ b/src/java2022spring/ScientificCalculator.java @@ -4,9 +4,9 @@ import java.awt.event.*; import javax.swing.*; public class ScientificCalculator extends JFrame implements ActionListener{ JMenuBar menubar=new JMenuBar(); - JMenu moshi=new JMenu("模式"); - JMenuItem menuitem1=new JMenuItem("标准计算器"); - JMenuItem menuitem2=new JMenuItem("科学计算器"); + JMenu moshi=new JMenu("妯″紡"); + JMenuItem menuitem1=new JMenuItem("鏍囧噯璁$畻鍣"); + JMenuItem menuitem2=new JMenuItem("绉戝璁$畻鍣"); JTextField text=new JTextField(); JPanel panel1=new JPanel(); JPanel panel2=new JPanel(); @@ -25,27 +25,31 @@ public class ScientificCalculator extends JFrame implements ActionListener{ void init(String s) { setTitle(s); menubar.add(moshi); - moshi.setFont(new Font("楷体", Font.BOLD, 20)); + moshi.setFont(new Font("妤蜂綋", Font.BOLD, 20)); moshi.add(menuitem1); moshi.add(menuitem2); this.setLayout(new BorderLayout()); panel1.add(text); this.add(panel1,BorderLayout.NORTH); text.setHorizontalAlignment(JTextField.RIGHT); - text.setPreferredSize(new Dimension (370,60)); + text.setPreferredSize(new Dimension (340,70)); + text.setFont(new Font("榛戜綋", Font.BOLD, 40)); + panel1.add(text); panel2.setLayout(new FlowLayout()); - panel2.setLayout(new GridLayout(5, 4, 2, 2)); - JButton button1[]=new JButton[20]; - String str0[]= {"|x|","1/x","C","←","7","8","9","+","4","5","6","-","1","2","3","*","0",".","=","/"}; - for(i=0;i<=19;i++) { + panel2.setLayout(new GridLayout(9, 4, 2, 2)); + JButton button1[]=new JButton[36]; + String str0[]= {"sin","cos","tan","x^2","x^3","x^y","蟺","e","e^x","sqrt","rt","x!","ln","lg","%","10^X","|x|","1/x","C","鈫","7","8","9","+","4","5","6","-","1","2","3","*","0",".","=","/"}; + String str1[]= {}; + JButton button2[]=new JButton[15]; + for(i=0;i<36;i++) { button1[i]=new JButton(str0[i]); - button1[i].setFont(new Font("楷体", Font.BOLD, 20)); - button1[i].setBorderPainted(false); //字体 - button1[i].addActionListener(this);//取消边界 + button1[i].setFont(new Font("妤蜂綋", Font.BOLD, 20)); + button1[i].setBorderPainted(false); //瀛椾綋 + button1[i].addActionListener(this);//鍙栨秷杈圭晫 panel2.add(button1[i]); } add(panel2,BorderLayout.CENTER); - button1[18].setBackground(Color.gray); + button1[34].setBackground(Color.gray); menuitem1.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { StandardCalculator win1= new StandardCalculator(); diff --git a/src/java2022spring/StandardCalculator.java b/src/java2022spring/StandardCalculator.java index f869f90..157c037 100644 --- a/src/java2022spring/StandardCalculator.java +++ b/src/java2022spring/StandardCalculator.java @@ -32,9 +32,11 @@ public class StandardCalculator extends JFrame implements ActionListener{ moshi.add(menuitem1); moshi.add(menuitem2); this.setLayout(new BorderLayout()); - text.setHorizontalAlignment(JTextField.RIGHT); // + text.setHorizontalAlignment(JTextField.RIGHT); + text.setPreferredSize(new Dimension (340,70)); + text.setFont(new Font("黑体", Font.BOLD, 40)); panel1.add(text); - text.setPreferredSize(new Dimension (370,60)); + text.setBorder(null); //删除文本框的边框 this.add(panel1,BorderLayout.NORTH); panel2.setLayout(new FlowLayout()); panel2.setLayout(new GridLayout(5,4,2,2));// 用网格布局器,4行,4列的网格,网格之间的水平方向垂直方向间隔均为2个像素 @@ -51,7 +53,7 @@ public class StandardCalculator extends JFrame implements ActionListener{ button[18].setBackground(Color.gray); menuitem2.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { - ScientificCalculator science = new ScientificCalculator("小皓科学计算器",100,100,400,400); + ScientificCalculator science = new ScientificCalculator("小皓科学计算器",500,300,350,550); science.setVisible(true); } }); -- Gitee From 3f5b72a9fc5d938679f7fb5161952451d6cbfb42 Mon Sep 17 00:00:00 2001 From: XJH040985927 <1759361294@qq.com> Date: Wed, 8 Jun 2022 00:03:54 +0800 Subject: [PATCH 10/13] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=A7=91=E5=AD=A6?= =?UTF-8?q?=E8=AE=A1=E7=AE=97=E5=99=A8=E7=9A=84=E7=9B=91=E8=A7=86=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/java2022spring/Main.class | Bin 570 -> 570 bytes bin/java2022spring/StandardCalculator.class | Bin 5917 -> 5917 bytes src/java2022spring/{1.txt => 0.txt} | 0 src/java2022spring/Main.java | 2 +- src/java2022spring/ScientificCalculator.java | 164 ++++++++++++++++++- src/java2022spring/StandardCalculator.java | 2 +- 6 files changed, 160 insertions(+), 8 deletions(-) rename src/java2022spring/{1.txt => 0.txt} (100%) diff --git a/bin/java2022spring/Main.class b/bin/java2022spring/Main.class index ed928912fe2251829519693975c49e9e911bfa0a..6e544c9e8a3cdec2506f196e4b17a99eea284a24 100644 GIT binary patch delta 13 VcmdnRvWsQIcSgoTlYcNe0RSls1-1YH delta 13 UcmdnRvWsQIcSgpz$v+sK04Ep)QUCw| diff --git a/bin/java2022spring/StandardCalculator.class b/bin/java2022spring/StandardCalculator.class index b0fc308da9489e533a9ac2cd1966064141cf1f55..852e2db29240eec2b491476f5ee8306faf6b590f 100644 GIT binary patch delta 16 XcmbQMH&<_ikpS~7fq>1X0x#GAFc<}F delta 16 XcmbQMH&<_ikpOdufZJwMffsB5Evy9` diff --git a/src/java2022spring/1.txt b/src/java2022spring/0.txt similarity index 100% rename from src/java2022spring/1.txt rename to src/java2022spring/0.txt diff --git a/src/java2022spring/Main.java b/src/java2022spring/Main.java index 7610ab0..c9fcf67 100644 --- a/src/java2022spring/Main.java +++ b/src/java2022spring/Main.java @@ -1,7 +1,7 @@ package java2022spring; public class Main { public static void main(String args[]) { - StandardCalculator win1=new StandardCalculator("小皓标准计算器",500,300,350,550); + StandardCalculator win1=new StandardCalculator("小皓标准计算器",500,300,450,550); } } diff --git a/src/java2022spring/ScientificCalculator.java b/src/java2022spring/ScientificCalculator.java index a19fc76..8c6197d 100644 --- a/src/java2022spring/ScientificCalculator.java +++ b/src/java2022spring/ScientificCalculator.java @@ -24,7 +24,12 @@ public class ScientificCalculator extends JFrame implements ActionListener{ } void init(String s) { setTitle(s); + this.setJMenuBar(menubar); menubar.add(moshi); + menubar.add(moshi); + moshi.setFont(new Font("妤蜂綋", Font.BOLD, 20)); + moshi.add(menuitem1); + moshi.add(menuitem2); moshi.setFont(new Font("妤蜂綋", Font.BOLD, 20)); moshi.add(menuitem1); moshi.add(menuitem2); @@ -32,15 +37,13 @@ public class ScientificCalculator extends JFrame implements ActionListener{ panel1.add(text); this.add(panel1,BorderLayout.NORTH); text.setHorizontalAlignment(JTextField.RIGHT); - text.setPreferredSize(new Dimension (340,70)); + text.setPreferredSize(new Dimension (340,90)); text.setFont(new Font("榛戜綋", Font.BOLD, 40)); panel1.add(text); panel2.setLayout(new FlowLayout()); panel2.setLayout(new GridLayout(9, 4, 2, 2)); JButton button1[]=new JButton[36]; String str0[]= {"sin","cos","tan","x^2","x^3","x^y","蟺","e","e^x","sqrt","rt","x!","ln","lg","%","10^X","|x|","1/x","C","鈫","7","8","9","+","4","5","6","-","1","2","3","*","0",".","=","/"}; - String str1[]= {}; - JButton button2[]=new JButton[15]; for(i=0;i<36;i++) { button1[i]=new JButton(str0[i]); button1[i].setFont(new Font("妤蜂綋", Font.BOLD, 20)); @@ -58,9 +61,158 @@ public class ScientificCalculator extends JFrame implements ActionListener{ }); } public void actionPerformed(ActionEvent e) { - - + String str=e.getActionCommand(); + if(str.equals("鈫")) { + String str0=text.getText(); + int i=str0.length(); + if(i>0) { + if(i>1) { + str0= str0.substring(0, i-1); + text.setText(str0); + } + else + text.setText("0"); + first = true; + + } + } + else if(str.equals("C")){ + text.setText("0"); + first = true; + operator = "="; + } + else if("0123456789.".indexOf(str) >= 0){ + if (first) { + text.setText(str); + } else if((str.equals(".")) && (text.getText().indexOf(".")<0)){ + text.setText(text.getText() + "."); + } + else if (!str.equals(".")){ + text.setText(text.getText()+str); + } + first=false; + } + else if(str.equals("蟺")) + text.setText(String.valueOf(3.14159265)); + else if(str.equals("e")) + text.setText(String.valueOf(2.17828)); + else + Operator(str); } + private void Operator(String str) { + if (operator.equals("/")) { + if (getNumber() == 0.0) { + operate = false; + text.setText("閿欒:闄ゆ暟涓嶈兘涓洪浂"); + } + else + result/= getNumber(); + } + else if (operator.equals("1/x")) { + if (result == 0.0) { + operate = false; + text.setText("闆舵病鏈夊掓暟"); + } + else + result= 1 / result; + } + else if (operator.equals("+")) { + result+= getNumber(); + } + else if (operator.equals("-")) { + result -= getNumber(); + } + else if (operator.equals("*")) { + result *=getNumber(); + } + else if (operator.equals("|x|")) { + result=Math.abs(result); + } + else if (operator.equals("=")) { + result=getNumber(); + } + else if (operator.equals("x^2")) { + double o=result; + result=o*o; + } + else if (operator.equals("x^3")) { + double o=result; + result=o*o*o; + } + else if (operator.equals("x^y")) { + result=Math.pow(result,getNumber()); + } + else if (operator.equals("sqrt")) { + result= Math.sqrt(result); + } + else if (operator.equals("rt")) { + result=result*57.3; + } + else if (operator.equals("x!")) { + double b=result; + int c=1; + for(i=1;i<=b;i++) + { + c=c*i; + result=c;} + } + else if (operator.equals("ln")) { + result=Math.log(result); + } + else if (operator.equals("lg")) { + result=Math.log10(result); + } + else if (operator.equals("%")) { + result%= getNumber(); + }else if (operator.equals("sin")) { + result=Math.sin(result); + } + else if (operator.equals("cos")) { + result=Math.cos(result); + } + else if (operator.equals("tan")) { + result=Math.tan(result); + } + else if (operator.equals("e^X")) { + result= Math.exp(result); + } + else if (operator.equals("=")) { + result=getNumber(); + } + if(operate=true) { + long t1; + double t2; + t1 = (long) result; + t2 = result- t1; + if (t2 == 0) { + text.setText(String.valueOf(t1)); + } + else { + text.setText(String.valueOf(result)); + } + } + operator =str; + first= true; + operate= true; + } + public double getNumber() { + double result0= 0; + try { + result0= Double.valueOf(text.getText()).doubleValue(); + } catch (NumberFormatException e) {} + return result0; + } + public static void main(String args[]) { + EventQueue.invokeLater(new Runnable() { + public void run() { + try { + ScientificCalculator application = new ScientificCalculator("灏忕殦绉戝璁$畻鍣",500,300,350,550); + application.setVisible(true); + + } catch (Exception e) { + e.printStackTrace(); +} + } + }); } - \ No newline at end of file diff --git a/src/java2022spring/StandardCalculator.java b/src/java2022spring/StandardCalculator.java index 157c037..477dca8 100644 --- a/src/java2022spring/StandardCalculator.java +++ b/src/java2022spring/StandardCalculator.java @@ -33,7 +33,7 @@ public class StandardCalculator extends JFrame implements ActionListener{ moshi.add(menuitem2); this.setLayout(new BorderLayout()); text.setHorizontalAlignment(JTextField.RIGHT); - text.setPreferredSize(new Dimension (340,70)); + text.setPreferredSize(new Dimension (410,80)); text.setFont(new Font("黑体", Font.BOLD, 40)); panel1.add(text); text.setBorder(null); //删除文本框的边框 -- Gitee From 2ec30915ecac4bf6bc457fae9fbda5589ff90c73 Mon Sep 17 00:00:00 2001 From: XJH040985927 <1759361294@qq.com> Date: Wed, 8 Jun 2022 00:05:10 +0800 Subject: [PATCH 11/13] =?UTF-8?q?=E7=A7=91=E5=AD=A6=E8=AE=A1=E7=AE=97?= =?UTF-8?q?=E5=99=A8=E7=9B=91=E8=A7=86=E5=99=A8=E7=9A=84=E5=A2=9E=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...5\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename src/java2022spring/0.txt => "src/java2022spring/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" (100%) diff --git a/src/java2022spring/0.txt "b/src/java2022spring/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" similarity index 100% rename from src/java2022spring/0.txt rename to "src/java2022spring/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" -- Gitee From 4612c887a39cc394590ca815e1439318902f272d Mon Sep 17 00:00:00 2001 From: XJH040985927 <1759361294@qq.com> Date: Wed, 8 Jun 2022 17:55:03 +0800 Subject: [PATCH 12/13] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A4=96=E8=A7=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/java2022spring/Main.class | Bin 570 -> 570 bytes bin/java2022spring/StandardCalculator.class | Bin 5917 -> 6386 bytes .../java2022spring/0.txt | 0 src/java2022spring/Main.java | 2 +- src/java2022spring/ScientificCalculator.java | 46 ++++-- src/java2022spring/StandardCalculator.java | 148 ++++++++++-------- 6 files changed, 117 insertions(+), 79 deletions(-) rename "src/java2022spring/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" => src/java2022spring/0.txt (100%) diff --git a/bin/java2022spring/Main.class b/bin/java2022spring/Main.class index 6e544c9e8a3cdec2506f196e4b17a99eea284a24..26b85ed03693c5ec364f83ccfe1a968985290b37 100644 GIT binary patch delta 16 YcmdnRvWsQIcSe>kf=m&Ue>2(x064G)RsaA1 delta 16 YcmdnRvWsQIcSe>&f=p_Ye>2(x05&EC@&Et; diff --git a/bin/java2022spring/StandardCalculator.class b/bin/java2022spring/StandardCalculator.class index 852e2db29240eec2b491476f5ee8306faf6b590f..dda976efb98619a2571b1d59a3810f5f258dcdd1 100644 GIT binary patch literal 6386 zcmc&&dwg8Qb^c~|rF*@)mZd98w(twTrL|;P@>?=CmSiCrNj6zyvL;Yg(zU$yYFDgw zZD9x{KuunN!6c3$0h~ApNQ0rVR*D4ngByAFskQYg8u#+}To3<&Xg??x5uB?a4 zul+0fX=lzoGjrz5cOG-@{rWqn&j7eW?K0p|n7=o?KU}k-rlzkq5s7tI1(V@eS2)qt z5RP`HqTysbVZf(g%e4Ngz5_C6Yf~cJ;~2kq%Y~j zoP>hWiY8Cs=oAqUNjg2%3Nt3pXyM4%Sv3m2 zq|={Nm^ps(4lJ8g@F z0u+kut1Q?kG(fxLi|mUQ^P?G8%gI{_Mp;Wsi+j{|3q_bNOSfAnMu~~{(Rx=1V~2%V zn9Vb^Mq*BTs;9$A>0kM!z+(H;PTKE&(q>$I=BxP@jF?t@4;V$T~&?(~v$AgiBbRGrA!ftdc_{rND z>5FL1ePz4c6%h-2v5!&0(MD%?m|oiujrTd*w9jhszA{QD7(A5f=kFH&4)PZh=?M#c zqN2(5J0i)b-ZEujKMuHRZp{Sv=vhaTM>g_Bk%hR$!a>|h*AI7fDU`XmjGJ3mt|1-I zGw?x$siP)tipP>B{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ed0vCfB%{>Dfl1!Z!UX(L|q!G?=mdk zXQ6DS`K7!Xvg2BfyzcRqSJ1e0!!m^d@f|GD`=)THvI5;Rp zCvj@E`;5_Z-b9XHh)&{Iu@tY)O36bk8qZ15aTKT=DO9$9wflWDw@ztU3Gh`)9>z+2 z9hL==9Qm{?9FoP#T#}U)W@?2$^+7C~R+jp6q6{T9(+-ogYRsR9=||1_e14-8;1X7a z270%V-fW`hno)yo*oYQ-VLL}Vu#-{H%6}d7#3$(OZq~$uxQw;ravUMfpTb^#c3y!K zlz54e@Ev>r>YK{W5 zsftxu>zjJF6f@t)77I`Ezu51G* zkLv3(`eKIn?Mb{I!)rCXS0?ce8J-%s(|yYDikPZWcUm?Y&OF1}ZaA~TYB|Xis5uVp z>W(#NyX20ZjluarwZ4cGwk|m>7aPmXo3F2tgm4AVOB2i5)Qm;QBa8#^cO8f4Vu{JR zZsxZ~Y7ael0P7KBtQ=%q9AX^A>E~YhI7v<)Dc3M6Qn;DFoZN;C?&W#&C=TOGq@Kb6 zUcj~ZCeNQ&a2aN)uQ#qS{;47|f) zCVGYSgNJ73X~98h!FC0WDS2A9XQg%fNd((gouX7858PtelPim^k-mr2`$)f^f%*kw zSScwQuKpDw4|C;m8X+c#i;(vLV>-_QtrLs75Ri6?=gD5Vg1!D0@iu$@Ne3IfHog5D D2x-Mj diff --git "a/src/java2022spring/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" b/src/java2022spring/0.txt similarity index 100% rename from "src/java2022spring/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" rename to src/java2022spring/0.txt diff --git a/src/java2022spring/Main.java b/src/java2022spring/Main.java index c9fcf67..6323eb4 100644 --- a/src/java2022spring/Main.java +++ b/src/java2022spring/Main.java @@ -1,7 +1,7 @@ package java2022spring; public class Main { public static void main(String args[]) { - StandardCalculator win1=new StandardCalculator("小皓标准计算器",500,300,450,550); + StandardCalculator win1=new StandardCalculator("小皓标准计算器",500,300,500,600); } } diff --git a/src/java2022spring/ScientificCalculator.java b/src/java2022spring/ScientificCalculator.java index 8c6197d..0cfa9c7 100644 --- a/src/java2022spring/ScientificCalculator.java +++ b/src/java2022spring/ScientificCalculator.java @@ -23,6 +23,9 @@ public class ScientificCalculator extends JFrame implements ActionListener{ setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); } void init(String s) { + Color color0=new Color(125,200,240);// + Color color1=new Color(255,255,255); + Color color2=new Color(192,192,192); setTitle(s); this.setJMenuBar(menubar); menubar.add(moshi); @@ -37,13 +40,13 @@ public class ScientificCalculator extends JFrame implements ActionListener{ panel1.add(text); this.add(panel1,BorderLayout.NORTH); text.setHorizontalAlignment(JTextField.RIGHT); - text.setPreferredSize(new Dimension (340,90)); + text.setPreferredSize(new Dimension (450,100)); text.setFont(new Font("榛戜綋", Font.BOLD, 40)); panel1.add(text); panel2.setLayout(new FlowLayout()); panel2.setLayout(new GridLayout(9, 4, 2, 2)); JButton button1[]=new JButton[36]; - String str0[]= {"sin","cos","tan","x^2","x^3","x^y","蟺","e","e^x","sqrt","rt","x!","ln","lg","%","10^X","|x|","1/x","C","鈫","7","8","9","+","4","5","6","-","1","2","3","*","0",".","=","/"}; + String str0[]= {"sin","cos","tan","x^2","x^3","x^y","蟺","e","e^x","sqrt","rt","x!","ln","lg","%","10^X","|x|","CE","C","鈫","7","8","9","+","4","5","6","-","1","2","3","*","0",".","=","/"}; for(i=0;i<36;i++) { button1[i]=new JButton(str0[i]); button1[i].setFont(new Font("妤蜂綋", Font.BOLD, 20)); @@ -51,11 +54,29 @@ public class ScientificCalculator extends JFrame implements ActionListener{ button1[i].addActionListener(this);//鍙栨秷杈圭晫 panel2.add(button1[i]); } + for(i=0;i<20;i++) { + button1[i].setBackground(color2); + } + button1[23].setBackground(color2); + button1[27].setBackground(color2); + button1[31].setBackground(color2); + button1[35].setBackground(color2); + button1[20].setBackground(color1); + button1[21].setBackground(color1); + button1[22].setBackground(color1); + button1[24].setBackground(color1); + button1[25].setBackground(color1); + button1[26].setBackground(color1); + button1[28].setBackground(color1); + button1[29].setBackground(color1); + button1[30].setBackground(color1); + button1[32].setBackground(color1); + button1[33].setBackground(color1); add(panel2,BorderLayout.CENTER); - button1[34].setBackground(Color.gray); + button1[34].setBackground(color0); menuitem1.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { - StandardCalculator win1= new StandardCalculator(); + StandardCalculator win1= new StandardCalculator("灏忕殦鏍囧噯璁$畻鍣",500,300,500,600); win1.setVisible(true); } }); @@ -96,6 +117,9 @@ public class ScientificCalculator extends JFrame implements ActionListener{ text.setText(String.valueOf(3.14159265)); else if(str.equals("e")) text.setText(String.valueOf(2.17828)); + else if(str.equals("CE")) { + text.setText(null); + } else Operator(str); } @@ -108,14 +132,6 @@ public class ScientificCalculator extends JFrame implements ActionListener{ else result/= getNumber(); } - else if (operator.equals("1/x")) { - if (result == 0.0) { - operate = false; - text.setText("闆舵病鏈夊掓暟"); - } - else - result= 1 / result; - } else if (operator.equals("+")) { result+= getNumber(); } @@ -206,7 +222,7 @@ public class ScientificCalculator extends JFrame implements ActionListener{ EventQueue.invokeLater(new Runnable() { public void run() { try { - ScientificCalculator application = new ScientificCalculator("灏忕殦绉戝璁$畻鍣",500,300,350,550); + ScientificCalculator application = new ScientificCalculator("灏忕殦绉戝璁$畻鍣",500,300,500,600); application.setVisible(true); } catch (Exception e) { @@ -214,5 +230,7 @@ public class ScientificCalculator extends JFrame implements ActionListener{ } } }); -} + } + } + \ No newline at end of file diff --git a/src/java2022spring/StandardCalculator.java b/src/java2022spring/StandardCalculator.java index 477dca8..5cfc275 100644 --- a/src/java2022spring/StandardCalculator.java +++ b/src/java2022spring/StandardCalculator.java @@ -5,12 +5,13 @@ import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class StandardCalculator extends JFrame implements ActionListener{ JMenuBar menubar=new JMenuBar(); - JMenu moshi=new JMenu("模式"); - JMenuItem menuitem1=new JMenuItem("标准计算器"); - JMenuItem menuitem2=new JMenuItem("科学计算器"); + JMenu moshi=new JMenu("妯″紡"); + JMenuItem menuitem1=new JMenuItem("鏍囧噯璁$畻鍣"); + JMenuItem menuitem2=new JMenuItem("绉戝璁$畻鍣"); JTextField text=new JTextField(); JPanel panel1=new JPanel(); JPanel panel2=new JPanel(); + Color color0= new Color(125, 200, 240); int i=0; boolean first; double result; @@ -25,42 +26,65 @@ public class StandardCalculator extends JFrame implements ActionListener{ setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); } void init( String s) { + Color color0=new Color(125,200,240);// + Color color1=new Color(255,255,255); + Color color2=new Color(192,192,192); setTitle(s); this.setJMenuBar(menubar); menubar.add(moshi); - moshi.setFont(new Font("楷体", Font.BOLD, 20)); + moshi.setFont(new Font("妤蜂綋", Font.BOLD, 20)); moshi.add(menuitem1); moshi.add(menuitem2); this.setLayout(new BorderLayout()); text.setHorizontalAlignment(JTextField.RIGHT); - text.setPreferredSize(new Dimension (410,80)); - text.setFont(new Font("黑体", Font.BOLD, 40)); + text.setPreferredSize(new Dimension (470,100)); + text.setFont(new Font("榛戜綋", Font.BOLD, 40)); panel1.add(text); - text.setBorder(null); //删除文本框的边框 + text.setBorder(null); + text.setBackground(color1);//鍒犻櫎鏂囨湰妗嗙殑杈规 this.add(panel1,BorderLayout.NORTH); panel2.setLayout(new FlowLayout()); - panel2.setLayout(new GridLayout(5,4,2,2));// 用网格布局器,4行,4列的网格,网格之间的水平方向垂直方向间隔均为2个像素 - String str[]= {"|x|","1/x","C","←","7","8","9","+","4","5","6","-","1","2","3","*","0",".","=","/"}; + panel2.setLayout(new GridLayout(5,4,2,2));// 鐢ㄧ綉鏍煎竷灞鍣紝4琛岋紝4鍒楃殑缃戞牸锛岀綉鏍间箣闂寸殑姘村钩鏂瑰悜鍨傜洿鏂瑰悜闂撮殧鍧囦负2涓儚绱 + String str[]= {"|x|","CE","C","鈫","7","8","9","+","4","5","6","-","1","2","3","*","0",".","=","/"}; JButton button[]=new JButton[20]; for(i=0;i<=19;i++) { button[i]=new JButton(str[i]); - button[i].setFont(new Font("楷体", Font.BOLD, 20)); - button[i].setBorderPainted(false); //字体 - button[i].addActionListener(this);//取消边界 + button[i].setFont(new Font("妤蜂綋", Font.BOLD, 20)); + button[i].setBorderPainted(false); //瀛椾綋 + button[i].addActionListener(this);//鍙栨秷杈圭晫 panel2.add(button[i]); } add(panel2,BorderLayout.CENTER); - button[18].setBackground(Color.gray); + button[4].setBackground(color1); + button[5].setBackground(color1); + button[6].setBackground(color1); + button[8].setBackground(color1); + button[9].setBackground(color1); + button[10].setBackground(color1); + button[12].setBackground(color1); + button[13].setBackground(color1); + button[16].setBackground(color1); + button[17].setBackground(color1); + button[14].setBackground(color1); + button[0].setBackground(color2); + button[1].setBackground(color2); + button[2].setBackground(color2); + button[3].setBackground(color2); + button[7].setBackground(color2); + button[11].setBackground(color2); + button[15].setBackground(color2); + button[18].setBackground(color0); + button[19].setBackground(color2); menuitem2.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { - ScientificCalculator science = new ScientificCalculator("小皓科学计算器",500,300,350,550); + ScientificCalculator science = new ScientificCalculator("灏忕殦绉戝璁$畻鍣",500,300,600,700); science.setVisible(true); } }); } public void actionPerformed(ActionEvent e) { String str=e.getActionCommand(); - if(str.equals("←")) { + if(str.equals("鈫")) { String str0=text.getText(); int i=str0.length(); if(i>0) { @@ -78,7 +102,11 @@ public class StandardCalculator extends JFrame implements ActionListener{ text.setText("0"); first = true; operator = "="; + result=0; } + else if(str.equals("CE")){ + text.setText(null); + } else if("0123456789.".indexOf(str) >= 0){ if (first) { text.setText(str); @@ -90,58 +118,50 @@ public class StandardCalculator extends JFrame implements ActionListener{ } first=false; } - else - Operator(str); - } - private void Operator(String str) { - if (operator.equals("/")) { - if (getNumber() == 0.0) { - operate = false; - text.setText("错误:除数不能为零"); - } - else - result/= getNumber(); - } - else if (operator.equals("1/x")) { - if (result == 0.0) { - operate = false; - text.setText("零没有倒数"); - } - else - result= 1 / result; - } - else if (operator.equals("+")) { - result+= getNumber(); - } - else if (operator.equals("-")) { - result -= getNumber(); - } - else if (operator.equals("*")) { - result *= getNumber(); + else if(str.equals("x^2")||str.equals("|x|")){ + operate1(str); } - else if (operator.equals("|x|")) { - result = Math.abs(result); - } - else if (operator.equals("=")) { - result= getNumber(); + else + operate2(str); } - if (operate) { - long t1; - double t2; - t1 = (long) result; - t2 = result- t1; - if (t2 == 0) { - text.setText(String.valueOf(t1)); - } - else { - text.setText(String.valueOf(result)); + private void operate2(String str) { + if (operator.equals("/")) { + if (getNumber() == 0.0) { + operate = false; + text.setText("閿欒:闄ゆ暟涓嶈兘涓洪浂"); + } + else + result/= getNumber(); + } + else if (operator.equals("+")) { + result+= getNumber(); + } + else if (operator.equals("-")) { + result -= getNumber(); + } + else if (operator.equals("*")) { + result *= getNumber(); + } + + else if (operator.equals("=")) { + result= getNumber(); + }if (operate) { + + text.setText(String.valueOf(result)); + } + operator=str; + first= true; + operate= true; } - } - operator =str; - first= true; - operate= true; - } - + private void operate1(String str) { + if (operator.equals("|x|")) { + result = Math.abs(result); + text.setText(String.valueOf(result)); + } + operator=str; + first= true; + operate= true; + } public double getNumber() { double result0= 0; try { -- Gitee From 503d7b1c3f7990fa26d6972acd082522bb3b4260 Mon Sep 17 00:00:00 2001 From: XJH040985927 <1759361294@qq.com> Date: Wed, 8 Jun 2022 20:34:41 +0800 Subject: [PATCH 13/13] =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/java2022spring/StandardCalculator.class | Bin 6386 -> 6310 bytes src/java2022spring/{0.txt => 1.txt} | 0 src/java2022spring/ScientificCalculator.java | 111 +++++++++++-------- src/java2022spring/StandardCalculator.java | 36 +++--- 4 files changed, 81 insertions(+), 66 deletions(-) rename src/java2022spring/{0.txt => 1.txt} (100%) diff --git a/bin/java2022spring/StandardCalculator.class b/bin/java2022spring/StandardCalculator.class index dda976efb98619a2571b1d59a3810f5f258dcdd1..b0274c40b9e8112a0b3ecb18010d36fefa3bb2e5 100644 GIT binary patch delta 202 zcmexlxXe)C)W2Q(7#J9A86(&km>3xpCnqv1ZZtf?vssEamP>Fd!xo0=3_BTSFzjQP z$#9rq*5nTHR>?UGJPdOg#2Mx>s4^^I&|+A~pwF;~!GvM)WHkw+Vm}5Z24>x;^xno8;Gw=AD9XeT3MBc!DwYCy%NPV0mNSF_#l(O-pe}}Rh6u1a0mfhk fDF#LcX2uW@pD~mXq>2kD@(xG?0b@9jU;*&~@Czla delta 280 zcmZ2x_{mV<)W2Q(7#J9A8Kc-4m>3xpCnqv1ZZtf?qsq=0!pI<>l~|UjpOcuEuJ2cx zo0MAQmS2>cSmIidoLW$lnV+}$D^Dz!;53FU3^N#ZGR$Py$1scGFvIN0$>Ob&a~XIT z<}rvf%x6$#SjeEou!upQVKIXV!;;C25=Ql<3``6xK#RrrJhZkj*l%Ox+`;I*jWNJu zIRlHI`g#UNpu7NsFk>(SGeam)oe)^{GN9-Rp!iA#5r$O^VIciL5fB;95CNo_7(^ID z8Ki)^e*t-d3{3wSgc+FF85o%v7}