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

正文內(nèi)容

java課程設(shè)計(jì)方案-資料下載頁

2025-05-05 23:07本頁面
  

【正文】 ){ JFileChooser fc=new JFileChooser()。 int sel =(this)。 if (sel==)43 { File f=()。 try{InputStream fr=new FileInputStream(f)。 byte b[]=new byte[(int)()]。 (b)。(new String(b))。()。 }catch(Exception e) {()。} }} public static void main(String[] args){NoteBook tt=new NoteBook()。 Thread t1=new Thread(tt)。 ()。 ImagePanel im=new ImagePanel()。new Thread(im).start()。Music t2=new Music()。} } BMonthPane 類的代碼:class MonthPane extends JPanel{ JTextField showDay[]。 int first,days。 String[] week。 JLabel[] title。 int year,month,day。 MonthPane(){ super(new GridLayout(7,7,3,3))。 year=()。 month=()。 day=()。 String week[]={七,一 ,二,三,四,五,六}。 title=new JLabel[7]。 for(int j=0。j7。j++){ title[j]=new JLabel()。 44 title[j].setText(week[j])。 title[j].setBorder(())。 title[j].setFont(new Font(,1,18))。 } title[0].setForeground()。 title[6].setForeground()。 showDay=new JTextField[42]。 for(int i=0。i42。i++){ showDay[i]=new JTextField()。 showDay[i].setFont(new Font(,0,14))。 showDay[i].setEditable(false)。 } for(int i=0。i7。i++) add(title[i])。 for(int i=0。i42。i++) add(showDay[i])。 arrangeNum(year,month,day)。 } public void arrangeNum(int year,int month,int day){ days=(year,month)。 Calendar c=()。 (year,month1,1)。 first=()1。 if(first!=0){ for(int i=0。ifirst。i++){ showDay[i].setText()。 } } for(int i=first,n=1。ifirst+days。i++,n++){ showDay[i].setText(+n)。 int r=i+1。 if(n==day){ if(r%7==0||(r+6)%7==0){ showDay[i].setForeground()。 showDay[i].setFont(new Font(TimesRoman,20))。 }45 else{ showDay[i].setForeground()。 showDay[i].setFont(new Font(TimesRoman,20))。 } } else{ showDay[i].setFont(new Font(TimesRoman,12))。 showDay[i].setForeground()。 } } if(first+days41){ for(int i=first+days。i42。i++){ showDay[i].setText()。 } } } } CYearMonth 類的代碼:class YearMonth extends JPanel{int year。int month。JLabel y1。JLabel m1。JSpinner showYear。 JSpinner showMonth。SpinnerNumberModel yearModel,monthModel。YearMonth(){y1=new JLabel(年)。m1=new JLabel(月)。Calendar c=()。 year=()。month=()+1。yearModel=new SpinnerNumberModel(year,0,10000,1)。showYear=new JSpinner(yearModel)。(new (showYear,000))。46(new Dimension(60,30))。(new Font(TimesRomn,16))。monthModel=new SpinnerNumberModel(month,0,13,1)。showMonth=new JSpinner(monthModel)。(new Dimension(60,30))。(new Font(TimesRomn,16))。(new FlowLayout())。 (showYear)。(y1)。 (showMonth)。(m1)。}}DImagePanel 類的代碼:class ImagePanel extends JPanel implements Runnable{ JLabel l。 Icon ii[] = new Icon[5]。 int count = 0。 public ImagePanel(){ showInit()。 new Thread(this).start()。 } public void run(){ while(true){ try{(4000)。 } catch(Exception e){} count ++。 if(count4) count = 0。 (ii[count])。 } } void showInit(){ String[] pic={,}。 for(int i=0。 i5。 i++)47 ii[i] = new ImageIcon(pic[i])。 l = new JLabel(ii[count])。 add(l)。 } }EMusic 類的代碼:class Music extends JPanel implements ActionListener,ItemListener{JButton start,stop。JComboBox music。String s。String[] musicName={,十年.mp3,}。MediaPlayer play。public Music(){musicinit()。(music)。(start)。(stop)。musicaddEvent()。play=new MediaPlayer()。} public void musicinit(){ music=new JComboBox(musicName)。start=new JButton(開始)。stop=new JButton(停止)。(this)。} public void musicaddEvent(){ (this)。(this)。 } public void itemStateChanged(ItemEvent e){ ()。 s =(()).toString()。 48 (file:+s)。 ()。 } public void actionPerformed(ActionEvent e){ JButton o=(JButton)()。 if(o==start){()。} else{()。 } } }FDateTime 類的代碼:class DateTime{ static Calendar today=()。 static int getYear(){ return ()。 } static int getMonth(){ return ()+1。 } static int getDay(){ return ()。 } static int getMonDay(int year,int month){ switch(month) { case 1: case 3: case 5: case 7: case 8: case 10: case 12: return 31。 case 4:49 case 6: case 9: case 11: return 30。 case 2: if(year%4==0amp。amp。year%100!=0||year%400==0) return 29。 else return 28。 default: return 0。 }
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1