牛鞭擦进女人下身放播_日本japanese漂亮丰满_婷婷亚洲五月琪琪综合_国产性爱直播在线观看_日本50岁丰满熟妇xxxx

mainframe是什么意思,mainframe中文翻譯,mainframe發(fā)音、用法及例句
發(fā)布時(shí)間:2024-11-23 10:00:01

?mainframe

mainframe發(fā)音

英:[?me?nfre?m]  美:[?me?nfre?m]

英:  美:

mainframe中文意思翻譯

n.主機(jī), 大型計(jì)算機(jī)

mainframe常見例句

1 、Surveillance data is all in the hospital mainframe.─── 監(jiān)測數(shù)據(jù)都在醫(yī)院的主機(jī)上

2 、A computer of intermediatesize and computing power, between a minicomputer and mainframe.───在小型計(jì)算機(jī)和大型計(jì)算機(jī)之間,具有中等容量和計(jì)算能力的計(jì)算機(jī)。

3 、In such an environment, any set pattern of mixed mainframe, will be sent to the capture of other mainframe data packets, thereby tapping on the network for all communications.───因此在這樣的環(huán)境中,任何設(shè)置成混雜模式的主機(jī),將可以捕獲發(fā)送給其它主機(jī)的數(shù)據(jù)包,從而**網(wǎng)絡(luò)上的所有通信。

4 、Mainframe gear box make together with deceleration and torque distribution, it adopt super-torque load balancing system, the torque factor has reach the leading level of domestic.───主機(jī)傳動箱集減速及扭矩分配為一體,采用超扭矩均載系統(tǒng),其扭矩因數(shù)達(dá)到國內(nèi)領(lǐng)先水平。

5 、Create data sets on the mainframe.───在大型機(jī)上創(chuàng)建數(shù)據(jù)集。

6 、In a way, all this is a throwback to the era of “time-sharing” on mainframe computers.───從某種程度上來說,所有這一切都回到了大型主機(jī)的“時(shí)間共享”時(shí)代。

7 、Exchangeable disk storage: Refers to disc pack storage used with mainframe computers.───可替換磁碟貯存:指大型電腦用的磁碟組貯存方法。

8 、But he asked questioningly, "Mainframe?───他說,“有一間房間那么大?!”

9 、A computer of intermediate size and computing power, between a minicomputer and mainframe.───在小型計(jì)算機(jī)和大型計(jì)算機(jī)之間,具有中等容量和計(jì)算能力的計(jì)算機(jī)。

10 、Mainframe computers , are large , extremely powerful computers used by many large companies .───大型主計(jì)算機(jī)是許多大公司機(jī)構(gòu)使用的大型的、功能也非常強(qiáng)大的計(jì)算機(jī)。

11 、This paper gives an analysis on the extended transaction capacity (XTC) technology.And it draws out the key-problem-issues on how to implement the XTC on Unisys OS2200 mainframe.───分析了擴(kuò)展事務(wù)處理能力技術(shù)(XTC)的特點(diǎn)和主要優(yōu)缺點(diǎn),提出了從單主機(jī)系統(tǒng)向松耦合主機(jī)系統(tǒng)轉(zhuǎn)型的實(shí)施技術(shù)要點(diǎn),并進(jìn)行了實(shí)例對比。

12 、My spiders have control of the mainframe.─── 我的小蜘蛛們已經(jīng)控制了平臺主機(jī)

13 、E-Business applications or a collection of mainframe applications that share the same database may be an example of such separation.───共享相同數(shù)據(jù)庫的電子商務(wù)應(yīng)用程序或大型機(jī)應(yīng)用程序的集合是這種劃分的一個(gè)例子。

14 、Ethernet sharing : sharing network environment, all of the hosts connected to a bus with other mainframe competition bandwidth.───共享以太網(wǎng):在共享網(wǎng)絡(luò)環(huán)境中,所有的主機(jī)都連接到同一條總線并且與其他的主機(jī)競爭帶寬。

15 、Mainframe (computer) is a large computer, in particular one to which other computers can be connected so that they can share facilities the mainframe provides.───主計(jì)算機(jī)(大型機(jī))是一種大型計(jì)算機(jī),其他計(jì)算機(jī)可以連接到此計(jì)算機(jī)上,以共享這臺主計(jì)算機(jī)提供的各種設(shè)施。

16 、A minicomputer is also known as a midsized or low-end mainframe computer.───一臺不型計(jì)算機(jī),也常被稱為中型計(jì)算機(jī)或低級主機(jī)。

17 、Every insurance company has some legacy mainframe systems.───個(gè)公司會用以前的大型電腦?

18 、High availability began in the 1970s with mainframe systems, which support high uptime as part of their inherent design.───利用大型機(jī)系統(tǒng)的高可用性始于七十年代,這些系統(tǒng)作為它們固有設(shè)計(jì)的一部分,能保證系統(tǒng)長時(shí)間正常工作。

19 、IBM's communications controllers, often called front-end processors. 3745 devices channel-attach to the mainframe and support connections to LANs and other FEPS.───IBM通信控制器,通常稱為前端處理器(FEP)。3745設(shè)備信道連接大型機(jī),支持與局域網(wǎng)以及其他前端處理器(FEP)相連接。

20 、Skills Required-Cobol, JCL, EZTRIEVE Experience 3-4 years in Mainframe Technologies, with good attitude and comp...... ...───公司名稱:派瑞日軟件科技(上海)有限公司工作地點(diǎn):上海市發(fā)布時(shí)間:2009-5-1

21 、Special numeric-control system is fitted with mainframe of the bending machine.───主機(jī)配置折彎機(jī)專用數(shù)控系統(tǒng);

22 、Probably should've waited to schedule the celebration of a working mainframe until the mainframe was actually, you know, working.─── 既然想給主機(jī)正式啟動運(yùn)行 辦一場慶典 那就該等到主機(jī)能夠啟動運(yùn)行時(shí)再辦

23 、IBM's cluster controller. It connects to terminals and other I/O devices on one end, and a mainframe channel on the other.───IBM族控制器。它的一端連接終端及其他輸入輸出設(shè)備,另一端連接大型機(jī)信道。

24 、Until recently, most users hooked into the net through a direct high-speed connection on a mainframe or UNIX-based system.───到目前為止,絕大多數(shù)的用戶都是通過主機(jī)或基于UNIX系統(tǒng)的直接高速連接器來上網(wǎng)。

25 、The type of fixed function computer terminals used with IBM mainframe computers.───具有固定功能的計(jì)算機(jī)終端類型,用于IBM大型計(jì)算機(jī)。

26 、The company estimates that, in addition to freeing up mainframe capacity for other applications, this solution has reduced transaction costs by approximately 90 percent.───公司估計(jì),除了使主機(jī)有更多能力處理其他應(yīng)用程序以外,此解決方案還減少了高達(dá)約90的交易成本。

27 、It's a virus. It's working through our mainframe.─── 是一種病毒 正在入侵主機(jī)

28 、For example, with the right XML tags, you can use a desktop program to open and work with data from a mainframe computer.───例如,利用正確的XML標(biāo)記,就可以使用桌面程序打開和處理大型機(jī)中的數(shù)據(jù)。

29 、Mainframe(computer)is a large computer, in particular one to which other computers can be connected so that they can share facilities the mainframe provides.───主計(jì)算機(jī),大型機(jī)是一種大型計(jì)算機(jī),其它計(jì)算機(jī)可以連接到此計(jì)算機(jī)上,以共享這臺主計(jì)算機(jī)提供的各種設(shè)施。

30 、Front-end refers to the microcomputer system by which the user accesses a mainframe computer on which the human resource information system is resident.───前端處理機(jī)指的是微機(jī)系統(tǒng),注冊過的用戶通過主機(jī)上的人力資源信息可以進(jìn)入系統(tǒng)。

31 、With double outlet design, insert molding mainframe equipment, production lines without stopping production.───雙出料口設(shè)計(jì),添加成型主機(jī)設(shè)備,生產(chǎn)線產(chǎn)不需停。

32 、Exchangeable disk storage Refers to disc pack storage used with mainframe computers.───可替換磁碟貯存指大型電腦用的磁碟組貯存方法。

33 、Primarily engaged in: domain name registration, virtual host, website design, process development, e-mail, web site maintenance, and mainframe hosting and e-commerce.───主要從事:域名注冊,虛擬主機(jī),網(wǎng)頁設(shè)計(jì),程序開發(fā),電子信箱,網(wǎng)站維護(hù),主機(jī)托管,電子商務(wù)等。

34 、I was archiving files on the mainframe computer.─── 我當(dāng)時(shí)在主機(jī)上做文件歸檔

35 、Mainframe computers, are large, extremely powerful computers used by many large companies.───大型主計(jì)算機(jī)是大型的、功能也非常強(qiáng)大的計(jì)算機(jī)。

36 、In Chinese, the iron box is conventionally called the mainframe.───在中文里,這個(gè)箱子被習(xí)慣地稱為主機(jī)。

37 、The office micro interface with the mainframe in the head office.───辦公室的微機(jī)與總部的中央處理器相互聯(lián)結(jié)。

38 、CICS or IMS transactions on a mainframe in Singapore can be invoked by a COM-based application driven by Lotus Script running on a Domino server in Munich.───在新加坡的一臺大型機(jī)上的CICS或IMS事務(wù)能夠被一臺在慕尼黑的Domino服務(wù)器上運(yùn)行的Lotus腳本驅(qū)動的基于COM的應(yīng)用程序調(diào)用。

39 、A mainframe is also referred to as a Scanner, Multiplexer, Matrix, or Programmable Switch.───主機(jī)也被稱為掃描儀、復(fù)用器、矩陣或可編程開關(guān)。

40 、A mainframe computer on which everyone in the office depended suddenly went down.───辦公室每個(gè)人都在用的大型計(jì)算機(jī)突然趴下了。

41 、In 1972, IBM introduced flexible diskettes as a medium for loading programs into mainframe computers.Because the disks were so flexible, they were nicknamed floppy disks.───在1972年,IBM推出了靈活的軟磁盤作為一個(gè)中型載貨節(jié)目到電腦主機(jī).由于磁盤這么靈活的,他們被戲稱為軟盤。

42 、In direct numerical control (DNC), as originally conceived and developed in the 1960's, several machines are directly controlled step by step by a central mainframe computer.───在直接數(shù)字控制(DNC)中,由于最初的構(gòu)思和20世紀(jì)60年代的發(fā)展,幾臺機(jī)器被一臺中央主機(jī)計(jì)算機(jī)逐步地直接控制。

43 、A communications device for an IBM mainframe computer.───一種通信設(shè)備,用于IBM大型計(jì)算機(jī)。

44 、The Model 7001 Scanner Mainframe controls the scanner cards.───7001型掃描器主機(jī)控制這些開關(guān)卡。

45 、Maybe she doesn't need to be connected to the mainframe.─── 也許她不需要它們連進(jìn)主機(jī)

46 、High availability began in the 1970s with mainframe systems, which support high up time as part of their inherent design.───利用大型機(jī)系統(tǒng)的高可用性始于七十年代,這些系統(tǒng)作為它們固有設(shè)計(jì)的一部分,能保證系統(tǒng)長時(shí)間正常工作。

47 、In the days of mainframe computers, networks were simply the wires that connected the dumb terminals to the big box in the basement.───在大型計(jì)算機(jī)時(shí)代,網(wǎng)絡(luò)不過是把啞終端連到地下室里的大盒子上的電線而已。

48 、"When China's National Meteorological Bureau bought mainframe computers from Cray Inc. of the U.S., it just sold us two processors.───“中國國家氣象局購買美國克雷公司的大型計(jì)算機(jī),克雷公司只賣給我們兩臺處理器。

49 、High availability began in the 1970s with mainframe systems,which support high up time as part of their inherent design.───利用大型機(jī)系統(tǒng)的高可用性始于二十世紀(jì)七十年代,這些系統(tǒng)作為它們固有設(shè)計(jì)的一部分,能保證系統(tǒng)長時(shí)間正常工作。

50 、Adds a large mainframe computer to which workstations can be connected to your network diagram.───在網(wǎng)絡(luò)圖中添加可連接工作站的大型機(jī)。

51 、The mainframe includes the body of machine, main cylinder and press edge fitting, and cylinder of pack out and filling liquid equipment etc.───主機(jī)部分包括機(jī)身、主缸、壓邊裝置、頂出缸及充液裝置等組成。

52 、The easy access of microcomputers to huge mainframe data bases.───與原文之義吻合。

53 、On the back of the mainframe box,there are various ports,with which CPU may be linked with input and output devices.───在主機(jī)箱的背后,有各種端口,用來溝通CPU和其它輸入輸出設(shè)備的聯(lián)系。

54 、A specific variation of IBM's System Network Architecture for controlling communications between a 3270 terminal connected to an IBM mainframe.───IBM系統(tǒng)網(wǎng)絡(luò)體系的一種特殊的變化,用于控制3270終端與IBM大型機(jī)之間的通信。

55 、During a single second, a large mainframe can execute a million instructions or more, so each unused second represents a tremendous waste of potential computing power.───在一秒鐘內(nèi),大型的主機(jī)能執(zhí)行一百萬條或者更多的指令,所以每失去一秒鐘就出現(xiàn)了對主機(jī)所具有的計(jì)算能力的驚人浪費(fèi)。

56 、The software system developed by theauthor,which is referred to as real-time control system,is the automatic monitoring controlsystem taking COMPAQ 486 microcomputer as mainframe.───作者研制的軟件系統(tǒng)亦稱ADCS實(shí)時(shí)控制系統(tǒng)是以COMPAQ486微機(jī)為主機(jī)的自動測控系統(tǒng)。

57 、Signal switching is performed on cards that are inserted into the mainframe rack.───信號切換是在**入到主機(jī)的開關(guān)卡上完成的。

58 、An extremely powerful mainframe computer used for complex mathematical calculations demanding high speed and storage, ?e.g.,? weather forecasting.───一種功能特別強(qiáng)的主計(jì)算機(jī),可用于要求高速度和大存儲量的復(fù)雜數(shù)學(xué)計(jì)算,例如天氣預(yù)報(bào)。

59 、A batch protocol used to communicate with an IBM mainframe or compatible system.───一批協(xié)議,用于與IBM大型機(jī)或兼容系統(tǒng)之間的通信。

60 、Generally, these panels just provide a convenient interface to do tasks -- most of them execute modules of IBM mainframe utility programs to do the actual work.───一般而言,這些板僅僅提供便捷的接口來做,其中大多數(shù)是執(zhí)行任務(wù)的IBM大型公用程序模塊的實(shí)際工作。

61 、A very good source IP subnet calculator, subnet that contains the identification, subnet calculation, mainframe computing, host identification.───一個(gè)非常好的IP子網(wǎng)計(jì)算器源碼,包含子網(wǎng)識別,子網(wǎng)計(jì)算,主機(jī)計(jì)算,主機(jī)識別。

62 、Up to six Model 7174A matrix cards can be connected in this manner in a Model 707A Switching Mainframe.───在707A型開關(guān)主機(jī)中,可按這種方式連接多達(dá)6塊矩陣卡。

63 、How many of you go to work on computers and end up getting headaches, particularly when you work for large corporations and are hooked up to their mainframe?───你們多少人是在電腦上工作而終獲得頭痛病,尤其當(dāng)你們?yōu)榇蠊竟ぷ鞑⑶页撩杂谒麄冎鳈C(jī)的時(shí)候?

64 、Skill Requirement:1. 2-3 years work experience;2. Above 2years of technical experience in Mainframe and COBOL;3. At leas...... ...───公司名稱:大連阿爾泰克信息技術(shù)有限公司工作地點(diǎn):遼寧省大連市發(fā)布時(shí)間:2009-7-25

65 、Operational Performance Delivery (OPD) is primarily to provide support to all mainframe system users and initiate as wel...... ...───公司名稱:匯豐環(huán)球客戶服務(wù)(廣東)有限公司工作地點(diǎn):廣東省廣州市發(fā)布時(shí)間:2009-7-31

66 、But just as a million Macs broke the monopoly of the high priests guarding access to mainframe computers, so e-money will break the monopoly of financial Brahmins.───但是,正如百萬臺蘋果機(jī)擊潰由高等祭司所衛(wèi)護(hù)壟斷的主機(jī)電腦,電子貨幣也將打破金融婆羅門的壟斷。

67 、The entropy theory is used to analyz P2P application,worm,natural mainframe,and extract axis attributes.───利用熵理論分析P2P應(yīng)用、蠕蟲、正常主機(jī)的屬性特征,得到軸屬性。

68 、Lotus Notes is another successful groupware program designed for mini-computer and mainframe computer systems as well as localarea networks(LANs) and widearea networks(WAWANs).───Lotus Notes也是一種成功的組件,適用于小型機(jī)、大型機(jī)以及局域網(wǎng)或廣域網(wǎng)。

69 、To reduce computing costs and improve application development, governments have been shifting slowly but steadily away from mainframe computing to client/server systems.───為減少計(jì)算成本和改進(jìn)應(yīng)用軟件的開發(fā),政府已經(jīng)慢慢但穩(wěn)步地從大型機(jī)計(jì)算轉(zhuǎn)到客戶機(jī)/服務(wù)器系統(tǒng)。

70 、Implementation, and the traditional way of DVR different, to use a single "dragon eye 2000" Matrix mainframe that facilitate completion of the above requirements.───實(shí)現(xiàn)上,和傳統(tǒng)的DVR實(shí)現(xiàn)方式不同,只需采用一臺“龍睛2000”矩陣主機(jī)即方便地完成了上述需求。

71 、And this virus allows you to spy on our mainframe.─── 這個(gè)病毒能讓你監(jiān)視我們的主機(jī)

72 、You could cut the hardline at the mainframe.─── 但你可以去把主機(jī)上的智硬線剪斷

73 、It only uses the excess capacity of the mainframe.───它只使用了大型機(jī)上過剩的計(jì)算能力。

74 、You can't hack the mainframe if you're dead.─── 要是你死了 就無法破解主機(jī)了

75 、Engine comprehensive test instrument used for mainframe computer with a color monitor, printer.───發(fā)動機(jī)綜合測試儀采用計(jì)算機(jī)為主機(jī)配有彩色顯示器、打印機(jī)。

76 、The mainframe programmer then began to describe his system to his friend, saying ``The mainframe sits like an ancient sage meditating in the midst of the data center.───于是,主機(jī)程序員開始向他的這位朋友描繪他的系統(tǒng):“主機(jī)就像一位陷入沉思的圣人一樣,端坐在數(shù)據(jù)中心。

77 、Mainframe, auxiliary machine and dicing machine all apply frequency converted motor.───主機(jī)、輔機(jī)、切粒機(jī)采用變頻電機(jī)。

78 、Another giant in computers after the super computer is Mainframe, which can also process millions of instruction per second and capable of accessing billions of data.───另一個(gè)巨人超級電腦主機(jī)電腦后,教學(xué)過程中還可以每秒百萬、幾十億的數(shù)據(jù)存取能力.

79 、Multiple Virtual Storage, more commonly called MVS, was the most commonly used operating system on the System/370 and System/390 IBM mainframe computers.───多個(gè)虛擬存儲、更通常被稱為MVS,是最常用的操作系統(tǒng)和系統(tǒng)的系統(tǒng)/ 370人/ 390 IBM大型計(jì)算機(jī)。

80 、Harnessing the unused compute power - another goal of IGA - will provide immediate economic benefits to any organization that has a large installed base of mainframe servers.───利用這些尚未使用的計(jì)算能力這是IGA的另外一個(gè)目標(biāo)就可以為那些已經(jīng)購買了大量大型服務(wù)器的組織帶來經(jīng)濟(jì)上的回報(bào)。

81 、Y2K is a problem basically because mainframe computer programmers paid little attention to the long-term future.───2000年問題產(chǎn)生的主要原因是大型計(jì)算機(jī)的程序設(shè)計(jì)員對未來的長期使用沒有給予足夠的重視,問題由此造成。

82 、Mainframe in your head? I'm a gamer.─── 頭腦里裝有主機(jī) 我是個(gè)職業(yè)玩家

83 、Mainframe These were the so-called mainframe machines.───它們被稱為主機(jī)。

84 、Install both the mainframe and desktop software.───安裝大型機(jī)和桌面軟件。

85 、Java programs, once written, can run without modification on just about any kind of computer: a PC, a Macintosh, a Unix workstation-heck, even a mainframe.───Java程序一旦寫好了,就能在任何一種計(jì)算機(jī)(PC機(jī)、Macintosh機(jī)、Unix工作站、甚至是大型機(jī))上無須修改就能運(yùn)行。

86 、Some mainframe systems , access providers, and mailer software will even delete messages if they are left in the electronic in-or out-box too long.───如果信息被滯留在電子收信箱或發(fā)送信箱的時(shí)間過長,某些大型機(jī)系統(tǒng),存取供應(yīng)者和電子郵件軟件甚至?xí)堰@些信刪去。

87 、Some mainframe systems, access providers, and mailer software will even delete messages if they are left in the electronic in-or out-box too long.───如果信息被滯留在電子收信箱或發(fā)送信箱的時(shí)間過長,某些大型機(jī)系統(tǒng),存取供應(yīng)者和電子郵件軟件甚 至?xí)堰@些信刪去。

88 、To connect the outputs of the cards together, certain cards have their outputs connected to the backplane of the scanner mainframe.───為了將開關(guān)卡的輸出連接在一起,特定開關(guān)卡的輸出都會被連接到掃描儀主機(jī)的背板。

89 、On the back of the mainframe box, there are various ports, with which CPU may be linked with input and output devices.───在主機(jī)箱的背后, 有各種端口,用來溝通cpu 和其它輸入輸出設(shè)備的聯(lián)系。

90 、Midrange computers are larger and more powerful than most microcomputers but are smaller and less powerful than most large mainframe computer systems.───與微型機(jī)相比,中型機(jī)體積比較大且運(yùn)算能力更強(qiáng),但與大型機(jī)相比,無論是體積還是運(yùn)算能力都要小的多。

如何上傳PC文件到Mainframe

先看看我們要上傳的TXT 文件 啟動你的 Mainframe 虛擬機(jī),進(jìn)入 ISPF 界面界面,選 6 看圖下的順序操作 點(diǎn)擊保存,成功后發(fā)現(xiàn)多了 ISPF Command Shell 界面多了一行命令,證明上傳成功了

怎么用java寫日歷

以下是兩個(gè)類,請樓主分別存成兩個(gè)java文件:

其中

MainFrame.java是顯示日歷程序,Clock.java是日歷計(jì)算程序。編譯后運(yùn)行MainFrame這個(gè)類即可。

1.MainFrame.java

---

import java.awt.BorderLayout;

import java.awt.Color;

import java.awt.GridLayout;

import java.awt.Toolkit;

import java.awt.event.ActionEvent;

import java.awt.event.ActionListener;

import java.sql.Date;

import java.util.Calendar;

import javax.swing.JComboBox;

import javax.swing.JFrame;

import javax.swing.JLabel;

import javax.swing.JPanel;

public class MainFrame extends JFrame {

/** *//**

*

*/

private static final long serialVersionUID = 1L;

JPanel panel = new JPanel(new BorderLayout());

JPanel panel1 = new JPanel();

JPanel panel2 = new JPanel(new GridLayout(7, 7));

JPanel panel3 = new JPanel();

JLabel[] label = new JLabel[49];

JLabel y_label = new JLabel("年份");

JLabel m_label = new JLabel("月份");

JComboBox com1 = new JComboBox();

JComboBox com2 = new JComboBox();

int re_year, re_month;

int x_size, y_size;

String year_num;

Calendar now = Calendar.getInstance(); // 實(shí)例化Calendar

MainFrame() {

super("萬年歷");

setSize(300, 350);

x_size = (int) (Toolkit.getDefaultToolkit().getScreenSize().getWidth());

y_size = (int) (Toolkit.getDefaultToolkit().getScreenSize().getHeight());

setLocation((x_size - 300) / 2, (y_size - 350) / 2);

setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

panel1.add(y_label);

panel1.add(com1);

panel1.add(m_label);

panel1.add(com2);

for (int i = 0; i < 49; i++) {

label[i] = new JLabel("", JLabel.CENTER);// 將顯示的字符設(shè)置為居中

panel2.add(label[i]);

}

panel3.add(new Clock(this));

panel.add(panel1, BorderLayout.NORTH);

panel.add(panel2, BorderLayout.CENTER);

panel.add(panel3, BorderLayout.SOUTH);

panel.setBackground(Color.white);

panel1.setBackground(Color.white);

panel2.setBackground(Color.white);

panel3.setBackground(Color.white);

Init();

com1.addActionListener(new ClockAction());

com2.addActionListener(new ClockAction());

setContentPane(panel);

setVisible(true);

setResizable(false);

}

class ClockAction implements ActionListener {

public void actionPerformed(ActionEvent arg0) {

int c_year, c_month, c_week;

c_year = Integer.parseInt(com1.getSelectedItem().toString()); // 得到當(dāng)前所選年份

c_month = Integer.parseInt(com2.getSelectedItem().toString()) - 1; // 得到當(dāng)前月份,并減1,計(jì)算機(jī)中的月為0-11

c_week = use(c_year, c_month); // 調(diào)用函數(shù)use,得到星期幾

Resetday(c_week, c_year, c_month); // 調(diào)用函數(shù)Resetday

}

}

public void Init() {

int year, month_num, first_day_num;

String log[] = { "日", "一", "二", "三", "四", "五", "六" };

for (int i = 0; i < 7; i++) {

label[i].setText(log[i]);

}

for (int i = 0; i < 49; i = i + 7) {

label[i].setForeground(Color.red); // 將星期日的日期設(shè)置為紅色

}

for (int i = 6; i < 49; i = i + 7) {

label[i].setForeground(Color.green);// 將星期六的日期設(shè)置為綠色

}

for (int i = 1; i < 10000; i++) {

com1.addItem("" + i);

}

for (int i = 1; i < 13; i++) {

com2.addItem("" + i);

}

month_num = (int) (now.get(Calendar.MONTH)); // 得到當(dāng)前時(shí)間的月份

year = (int) (now.get(Calendar.YEAR)); // 得到當(dāng)前時(shí)間的年份

com1.setSelectedIndex(year - 1); // 設(shè)置下拉列表顯示為當(dāng)前年

com2.setSelectedIndex(month_num); // 設(shè)置下拉列表顯示為當(dāng)前月

first_day_num = use(year, month_num);

Resetday(first_day_num, year, month_num);

}

public int use(int reyear, int remonth) {

int week_num;

now.set(reyear, remonth, 1); // 設(shè)置時(shí)間為所要查詢的年月的第一天

week_num = (int) (now.get(Calendar.DAY_OF_WEEK));// 得到第一天的星期

return week_num;

}

@SuppressWarnings("deprecation")

public void Resetday(int week_log, int year_log, int month_log) {

int month_day_score; // 存儲月份的天數(shù)

int count;

month_day_score = 0;

count = 1;

Date date = new Date(year_log, month_log + 1, 1); // now

Calendar cal = Calendar.getInstance();

cal.setTime(date);

cal.add(Calendar.MONTH, -1); // 前個(gè)月

month_day_score = cal.getActualMaximum(Calendar.DAY_OF_MONTH);// 最后一天

for (int i = 7; i < 49; i++) { // 初始化標(biāo)簽

label[i].setText("");

}

week_log = week_log + 6; // 將星期數(shù)加6,使顯示正確

month_day_score = month_day_score + week_log;

for (int i = week_log; i < month_day_score; i++, count++) {

label[i].setText(count + "");

}

}

public static void main(String[] args) {

JFrame.setDefaultLookAndFeelDecorated(true);

new MainFrame();

}

}

2.Clock.java

-----

import java.awt.BorderLayout;

import java.awt.Color;

import java.awt.GridLayout;

import java.awt.Toolkit;

import java.awt.event.ActionEvent;

import java.awt.event.ActionListener;

import java.sql.Date;

import java.util.Calendar;

import javax.swing.JComboBox;

import javax.swing.JFrame;

import javax.swing.JLabel;

import javax.swing.JPanel;

//顯示時(shí)間的類:Clock

/** *//**

* Clock.java

* Summary 數(shù)字時(shí)間顯示

* Created on

* @author

* remark

*/

import java.awt.Canvas;

import java.awt.Color;

import java.awt.Font;

import java.awt.Graphics;

import java.text.SimpleDateFormat;

import java.util.Calendar;

class Clock extends Canvas implements Runnable{

/** *//**

*

*/

private static final long serialVersionUID = 3660124045489727166L;

MainFrame mf;

Thread t;

String time;

public Clock(MainFrame mf){

this.mf=mf;

setSize(280,40);

setBackground(Color.white);

t=new Thread(this); //實(shí)例化線程

t.start(); //調(diào)用線程

}

public void run(){

while(true){

try{

Thread.sleep(1000); //休眠1秒鐘

}catch(InterruptedException e){

System.out.println("異常");

}

this.repaint(100);

}

}

public void paint(Graphics g){

Font f=new Font("宋體",Font.BOLD,16);

SimpleDateFormat SDF=new SimpleDateFormat("yyyy'年'MM'月'dd'日'HH:mm:ss");//格式化時(shí)間顯示類型

Calendar now=Calendar.getInstance();

time=SDF.format(now.getTime()); //得到當(dāng)前日期和時(shí)間

g.setFont(f);

g.setColor(Color.orange);

g.drawString(time,45,25);

}

}