




已阅读5页,还剩2页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
计算机界面Java编程实现结果:代码:import java.awt.*;import javax.swing.*;public class jisuanqi extends JFramepublic jisuanqi()JPanel p1=new JPanel();p1.setLayout(new GridLayout(5,11);JButton j1 = new JButton(Sta);j1.setBackground(Color.white);j1.setForeground(Color.blue);p1.add(j1); JButton j2 = new JButton(F-E);j2.setBackground(Color.white);j2.setForeground(Color.magenta);p1.add(j2);JButton j3 = new JButton();j3.setBackground(Color.white);j3.setForeground(Color.magenta );p1.add(j3);JButton j4 = new JButton();j4.setBackground(Color.white);j4.setForeground(Color.magenta);p1.add(j4);JButton j5 = new JButton(MC);j5.setBackground(Color.white);j5.setForeground(Color.red);p1.add(j5);JButton j6 = new JButton(7);j6.setBackground(Color.white);j6.setForeground(Color.blue);p1.add(j6);JButton j7 = new JButton(8);j7.setBackground(Color.white);j7.setForeground(Color.blue);p1.add(j7);JButton j8 = new JButton(9);j8.setBackground(Color.white);j8.setForeground(Color.blue);p1.add(j8);JButton j9 = new JButton(/);j9.setBackground(Color.white);j9.setForeground(Color.red);p1.add(j9);JButton j10 = new JButton(Mod);j10.setBackground(Color.white);j10.setForeground(Color.red);p1.add(j10);JButton j11 = new JButton(And);j11.setBackground(Color.white);j11.setForeground(Color.red);p1.add(j11);JButton j12 = new JButton(Ave);j12.setForeground(Color.darkGray);j12.setEnabled(false);p1.add(j12);JButton j13 = new JButton(dms);j13.setBackground(Color.white);j13.setForeground(Color.magenta);p1.add(j13);JButton j14 = new JButton(Exp);j14.setBackground(Color.white);j14.setForeground(Color.magenta);p1.add(j14);JButton j15 = new JButton(ln);j15.setBackground(Color.white);j15.setForeground(Color.magenta);p1.add(j15);JButton j16 = new JButton(MR);j16.setBackground(Color.white);j16.setForeground(Color.red);p1.add(j16);JButton j17 = new JButton(4);j17.setBackground(Color.white);j17.setForeground(Color.blue);p1.add(j17);JButton j18 = new JButton(5);j18.setBackground(Color.white);j18.setForeground(Color.blue);p1.add(j18);JButton j19 = new JButton(6);j19.setBackground(Color.white);j19.setForeground(Color.blue);p1.add(j19);JButton j20 = new JButton(*);j20.setBackground(Color.white);j20.setForeground(Color.red);p1.add(j20);JButton j21 = new JButton(Or);j21.setBackground(Color.white);j21.setForeground(Color.red);p1.add(j21);JButton j22 = new JButton(Xor);j22.setBackground(Color.white);j22.setForeground(Color.red);p1.add(j22);JButton j23 = new JButton(Sum);j23.setForeground(Color.darkGray);j23.setEnabled(false);p1.add(j23);JButton j24 = new JButton(sin);j24.setBackground(Color.white);j24.setForeground(Color.magenta);p1.add(j24);JButton j25 = new JButton(xy);j25.setBackground(Color.white);j25.setForeground(Color.magenta);p1.add(j25);JButton j26 = new JButton(log);j26.setBackground(Color.white);j26.setForeground(Color.magenta );p1.add(j26);JButton j27 = new JButton(MS);j27.setBackground(Color.white);j27.setForeground(Color.red);p1.add(j27);JButton j28 = new JButton(1);j28.setBackground(Color.white);j28.setForeground(Color.blue);p1.add(j28);JButton j29 = new JButton(2);j29.setBackground(Color.white);j29.setForeground(Color.blue);p1.add(j29);JButton j30 = new JButton(3);j30.setBackground(Color.white);j30.setForeground(Color.blue);p1.add(j30);JButton j31 = new JButton(-);j31.setBackground(Color.white);j31.setForeground(Color.red);p1.add(j31);JButton j32 = new JButton(Lsh);j32.setBackground(Color.white);j32.setForeground(Color.red);p1.add(j32);JButton j33 = new JButton(Not);j33.setBackground(Color.white);j33.setForeground(Color.red);p1.add(j33);JButton j34 = new JButton(s);j34.setForeground(Color.darkGray);j34.setEnabled(false);p1.add(j34);JButton j35 = new JButton(cos);j35.setBackground(Color.white);j35.setForeground(Color.magenta );p1.add(j35);JButton j36 = new JButton(x3);j36.setBackground(Color.white);j36.setForeground(Color.magenta );p1.add(j36);JButton j37 = new JButton(n!);j37.setBackground(Color.white);j37.setForeground(Color.magenta );p1.add(j37);JButton j38 = new JButton(M+);j38.setBackground(Color.white);j38.setForeground(Color.red);p1.add(j38);JButton j39 = new JButton(0);j39.setBackground(Color.white);j39.setForeground(Color.blue);p1.add(j39);JButton j40 = new JButton(+/-);j40.setBackground(Color.white);j40.setForeground(Color.blue);p1.add(j40);JButton j41 = new JButton(.);j41.setBackground(Color.white);j41.setForeground(Color.blue);p1.add(j41);JButton j42 = new JButton(+);j42.setBackground(Color.white);j42.setForeground(Color.red);p1.add(j42);JButton j43 = new JButton(=);j43.setBackground(Color.white);j43.setForeground(Color.red);p1.add(j43);JButton j44 = new JButton(Int);j44.setBackground(Color.white);j44.setForeground(Color.red);p1.add(j44);JButton j45 = new JButton(Dat);j45.setForeground(Color.darkGray);j45.setEnabled(false);p1.add(j45);JButton j46 = new JButton(tan);j46.setBackground(Color.white);j46.setForeground(Color.magenta );p1.add(j46);JButton j47 = new JButton(x2);j47.setBackground(Color.white);j47.setForeground(Color.magenta );p1.add(j47);JButton j48 = new JButton(1/x);j48.setBackground(Color.white);j48.setForeground(Color.magenta );p1.add(j48);JButton j49 = new JButton(pi);j49.setBackground(Color.white);j49.setForeground(Color.blue);p1.add(j49);JButton j50 = new JButton(A);j50.setForeground(Color.darkGray);j50.setEnabled(false);p1.add(j50);JButton j51 = new JButton(B);j51.setForeground(Color.darkGray);j51.setEnabled(false);p1.add(j51);JButton j52 = new JButton(C);j52.setForeground(Color.darkGray);j52.setEnabled(false);p1.add(j52);JButton j53 = new JButton(D);j53.setForeground(Color.darkGray);j53.setEnabled(false);p1.add(j53);JButton j54 = new JButton(E);j54.setForeground(Color.darkGray);j54.setEnabled(false);p1.add(j54);JButton j55 = new JButton(F);j55.setForeground(Color.darkGray);j55.setEnabled(false);p1.add(j55); add(p1,BorderLayout.SOUTH);JPanel p2 = new JPanel(new BorderLayout();p2.add(new JTextField(0.),BorderLayout.NORTH);add(p2,BorderLayout.NORTH);JPanel p3 =new JPanel();p3.setLayout(new GridLayout(2,3,5,5);p3.add(new JRadioButton(角度);p3.add(new JRadioButton(弧度);p3.add(new JRadioButton(梯度);JButton i1 = new JButton(Backspace);i1.setBackground(Color.white);i1.setForeground(Color.red);p3.add(i1);JButton i2 = new JButton(CE);i2.setBackground(Color.white);i2.setForeground(Color.red);p3.add(i2);JButton i3 = new JButton(C);i3.setBackground(Color
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025合同范本报告格式与样本
- 2025年K2教育中AI个性化学习系统对学生学习心理的影响报告
- 2025年K2教育个性化学习系统应用效果与挑战分析报告
- 2025年CCS技术在能源行业应用的经济效益与社会责任研究报告
- 2025年Z世代消费偏好下新消费品牌品牌传播效果分析报告
- 2025年BIM技术在建筑项目照明设计中的应用报告
- 《商品基础知识与养护技能》物流商品学 教案全套 6空气与商品中的水-16易老化、易玷污日用品货物储运养护实务
- 人教版地理八年级地理上册-课件-第二章第四节-2.4《自然灾害》
- 2025数学常考压轴题上册九年级(沪科版)专题10反比例函数的六大实际问题(解析版)
- 2025数学常考压轴题上册八年级(沪科版)专题09 构造全等三角形的五大方法-解析版
- 零售药店采购员岗位培训考核试题(带答案)
- 2025年成都市中考历史试题卷(含答案)
- 建设工程法规考试题真题及答案
- 《创伤失血性休克中国急诊专家共识(2023)》解读课件
- MOOC 数字逻辑电路实验-东南大学 中国大学慕课答案
- 国际标准舞智慧树知到期末考试答案2024年
- 国家开放大学《人文英语4》边学边练参考答案
- 入团志愿书(2016版本)(可编辑打印标准A4) (1)
- 年产3000吨新茶饮及抹茶智能精深产能加工项目可行性研究报告-甲乙丙资信
- 发动机综合分析仪在现代汽车维修中的应用
- 财务部门内部管理制度-1
评论
0/150
提交评论