freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

java課程設(shè)計(jì)--萬年歷-文庫(kù)吧

2025-05-17 15:53 本頁(yè)面


【正文】 鈕 面板 labelYear = new JButton(年 份 :)。 // 顯 示年 份 文字 labelMonth = new JButton(月 份 :)。 // 顯 示月 份 文字 buttonPreYear = new JButton()。 // 上一年按 鈕 buttonNextYear = new JButton()。 // 下一年的按 鈕 buttonPreMonth = new JButton()。 // 上一月按 鈕 buttonNextMonth = new JButton()。// 下一月按 鈕 newTime = new JButton(更新 時(shí)間 )。 boxYear = new JComboBox()。 // 年的下拉列表 boxMonth = new JComboBox()。 // 月的下拉列表 ca = new GregorianCalendar()。 Jhour = new JTextField(2)。 Jminute = new JTextField(2)。 Jsecond = new JTextField(2)。 date = new JPanel()。 dateTime1 = new JLabel(時(shí) )。 dateTime2 = new JLabel(分 )。 dateTime3 = new JLabel(秒 )。 繪制萬年歷的界面 public WanNianLi() { (萬年歷 )。 (500, 400)。 // 將面板居中處理 Dimension d = ().getScreenSize()。 int screenWidth = 。 int screenHeight = 。 ((screenWidth ()) / 2, (screenHeight ()) / 2)。 (true)。 ()。 (true)。 } 增加控件 // 把按鈕放到了按鈕面板里 (labelYear)。 (buttonPreYear)。 (boxYear)。 (buttonNextYear)。 (labelMonth)。 (buttonPreMonth)。 (boxMonth)。 (buttonNextMonth)。 // 把按鈕面板放到了 northPane中 (buttonPane, )。 // 把 northPane和 centerPane放到主面板中 (northPane, )。 (centerPane, )。 (date,)。 增加監(jiān)聽 //給年份下拉列表添加事件監(jiān)聽器 (new ActionListener()) //給月份下拉列表添加事件監(jiān)聽器 (new ActionListener()) //上一年的按鈕監(jiān)聽 (new ActionListener()) //下一年的按鈕監(jiān)聽 (new ActionListener() //上一月的監(jiān)聽 (new ActionListener() //下一月的監(jiān)聽 (new ActionListener() //更新時(shí)間按鈕的監(jiān)聽 (new ActionListener() ) 封裝操作 // 封裝給年份下拉列表賦值的操作 private void initBoxYear() //封裝給月份下拉列表賦值的操作 private void initBoxMonth() package 萬年歷 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 public class WanNianLi extends JFrame { private int temp0 = 0。 private int year = 0。 private int month = 0。 private int hour = 0。 private int minute = 0。 private int second = 0。 Calendar ca = null。 private JTextField Jhour = null。 private JTextField Jminute = null。 private JTextField Jsecond = null。 private JPanel contentPane = null。// 主面板 private JPanel northPane = null。 // 放按鈕面板的面板 private JPanel centerPane = null。 // 中間的日期面板 private JPanel buttonPane = null。 // 按鈕面板 private JPanel time = null。 //時(shí)鐘面板 private JPanel date = null。 private JButton labelYear = null。 // 顯示年份文字 private JButton labelMonth = null。 // 顯示月份文字 private JButton buttonPreYear = null。 // 上一年按鈕 private JButton buttonNextYear = null。 // 下一年的按鈕 private JButton buttonPreMonth
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1