- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
SSD4实验实验报告
实验六
实验目的
编写一个完整的DATE/TIME选择界面,能实现时间,时区选择
对windows显示属性界面进行分析,写出UAR报告
实验内容
编写以下程序项目,并包含以下内容
要求:
The second setting (0 to 59)
The minute setting (0 to 59)
The hour setting (in 24 hour time, 0 to 23)
The day of the month
The month of the year
The year
The index of the currently selected time zone
The offset in minutes from GMT for the currently-selected time zone
The title of the currently selected time zone
样例界面:
对以下界面进行界面分析
实验步骤
实验代码
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* exercise5B.java
*
* Created on 2012-12-2, 16:13:25
*/
package mycode;
import java.awt.BasicStroke;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.TimerTask;
import javax.swing.ButtonGroup;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JSpinner;
import javax.swing.JTable;
import javax.swing.SpinnerNumberModel;
import javax.swing.table.AbstractTableModel;
import javax.swing.table.TableCellRenderer;
// Variables declaration - do not modify
// Variables declaration - do not modify
/**
*
* @author Administrator
*/
public class exercise5B extends javax.swing.JFrame {
/** Creates new form exercise5B */
public exercise5B() {
calendar = Calendar.getInstance();
amorpm = calendar.get(Calendar.AM_PM);//获取当天是在上午还是下午
initComponents();
x=jLabel1.getLocation().x;
y=jLabel1.getLocation().y;
selectnum = -1;
}
/** 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
您可能关注的文档
最近下载
- 露天矿山岩质边坡工程设计规范(TCSRME 009-2021).pdf VIP
- 精品解析:2024年高中化学奥林匹克北京地区预选赛化学试题(解析版).docx VIP
- 国际音标练习(共52张).ppt VIP
- 部编版语文一年级上册教案-表格式(全册).pdf VIP
- 射血分数保留的心力衰竭诊断与治疗中国专家共识2025要点 .pdf VIP
- 2024年一级注册计量师考试题目解析.docx VIP
- 《新生儿高氨血症诊断与治疗的专家共识》解读PPT课件.pptx VIP
- 初中语文讲座:《素养导向初中语文大单元教学》课件.pdf
- 2019年阅兵PPT课件教学课件.pptx VIP
- 2025杭州电力设备制造有限公司招聘70人(第二批)笔试模拟试题及答案解析.docx VIP
文档评论(0)