SSD4实验四实验报告.doc
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
实验四 实验目的 1. 编写程序界面,可以调节时间 2. 编写UAR报告 实验内容 1. 模拟以下界面,要求数字能在1-59间调节 2. 对以下界面编写UAR报告 实验步骤 1. 第一部分 实验代码 /* * exercise4.java * * Created on 2012-11-22, 15:25:45 */ package mycode; import java.util.Calendar; /** * * @author Administrator */ public class exercise4 extends javax.swing.JFrame { /** Creates new form exercise4 */ public exercise4() { initComponents(); hour = Integer.parseInt(jLabel1.getText()); minutes=Integer.parseInt(jLabel2.getText()); seconds=Integer.parseInt(jLabel3.getText()); } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code"> private void initComponents() { jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jButton3 = new javax.swing.JButton(); jButton4 = new javax.swing.JButton(); jButton5 = new javax.swing.JButton(); jButton6 = new javax.swing.JButton(); jButton7 = new javax.swing.JButton(); jButton8 = new javax.swing.JButton(); jButton9 = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setBackground(java.awt.Color.gray); setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR)); jPanel1.setBackground(java.awt.Color.lightGray); jLabel1.setFont(new java.awt.Font("宋体", 1, 36)); // NOI18N jLabel1.setText("0"); jLabel2.setFont(new java.awt.Font("宋体", 1, 36)); // NOI18N jLabel2.setText("0"); jLabel3.setFont(new java.awt.Font("宋体", 1, 36)); // NOI18N jLabel3.setText("0"); jButton1.setFont(new java.awt.Font("宋体", 0, 24)); // NOI18N jButton1.setText("OK"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt);
- 粉丝: 171
- 资源: 3万+
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助