mainframe是什么意思,mainframe中文翻譯,mainframe發(fā)音、用法及例句
?mainframe
mainframe發(fā)音
英:[?me?nfre?m] 美:[?me?nfre?m]
英: 美:
mainframe中文意思翻譯
n.主機, 大型計算機
mainframe常見(jiàn)例句
1 、Surveillance data is all in the hospital mainframe.─── 監測數據都在醫院的主機上
2 、A computer of intermediatesize and computing power, between a minicomputer and mainframe.───在小型計算機和大型計算機之間,具有中等容量和計算能力的計算機。
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)境中,任何設置成混雜模式的主機,將可以捕獲發(fā)送給其它主機的數據包,從而**網(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.───主機傳動(dòng)箱集減速及扭矩分配為一體,采用超扭矩均載系統,其扭矩因數達到國內領(lǐng)先水平。
5 、Create data sets on the mainframe.───在大型機上創(chuàng )建數據集。
6 、In a way, all this is a throwback to the era of “time-sharing” on mainframe computers.───從某種程度上來(lái)說(shuō),所有這一切都回到了大型主機的“時(shí)間共享”時(shí)代。
7 、Exchangeable disk storage: Refers to disc pack storage used with mainframe computers.───可替換磁碟貯存:指大型電腦用的磁碟組貯存方法。
8 、But he asked questioningly, "Mainframe?───他說(shuō),“有一間房間那么大?!”
9 、A computer of intermediate size and computing power, between a minicomputer and mainframe.───在小型計算機和大型計算機之間,具有中等容量和計算能力的計算機。
10 、Mainframe computers , are large , extremely powerful computers used by many large companies .───大型主計算機是許多大公司機構使用的大型的、功能也非常強大的計算機。
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.───分析了擴展事務(wù)處理能力技術(shù)(XTC)的特點(diǎn)和主要優(yōu)缺點(diǎn),提出了從單主機系統向松耦合主機系統轉型的實(shí)施技術(shù)要點(diǎn),并進(jìn)行了實(shí)例對比。
12 、My spiders have control of the mainframe.─── 我的小蜘蛛們已經(jīng)控制了平臺主機
13 、E-Business applications or a collection of mainframe applications that share the same database may be an example of such separation.───共享相同數據庫的電子商務(wù)應用程序或大型機應用程序的集合是這種劃分的一個(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)境中,所有的主機都連接到同一條總線(xiàn)并且與其他的主機競爭帶寬。
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.───主計算機(大型機)是一種大型計算機,其他計算機可以連接到此計算機上,以共享這臺主計算機提供的各種設施。
16 、A minicomputer is also known as a midsized or low-end mainframe computer.───一臺不型計算機,也常被稱(chēng)為中型計算機或低級主機。
17 、Every insurance company has some legacy mainframe systems.───個(gè)公司會(huì )用以前的大型電腦?
18 、High availability began in the 1970s with mainframe systems, which support high uptime as part of their inherent design.───利用大型機系統的高可用性始于七十年代,這些系統作為它們固有設計的一部分,能保證系統長(chá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通信控制器,通常稱(chēng)為前端處理器(FEP)。3745設備信道連接大型機,支持與局域網(wǎng)以及其他前端處理器(FEP)相連接。
20 、Skills Required-Cobol, JCL, EZTRIEVE Experience 3-4 years in Mainframe Technologies, with good attitude and comp...... ...───公司名稱(chēng):派瑞日軟件科技(上海)有限公司工作地點(diǎn):上海市發(fā)布時(shí)間:2009-5-1
21 、Special numeric-control system is fitted with mainframe of the bending machine.───主機配置折彎機專(zhuān)用數控系統;
22 、Probably should've waited to schedule the celebration of a working mainframe until the mainframe was actually, you know, working.─── 既然想給主機正式啟動(dòng)運行 辦一場(chǎng)慶典 那就該等到主機能夠啟動(dòng)運行時(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族控制器。它的一端連接終端及其他輸入輸出設備,另一端連接大型機信道。
24 、Until recently, most users hooked into the net through a direct high-speed connection on a mainframe or UNIX-based system.───到目前為止,絕大多數的用戶(hù)都是通過(guò)主機或基于UNIX系統的直接高速連接器來(lái)上網(wǎng)。
25 、The type of fixed function computer terminals used with IBM mainframe computers.───具有固定功能的計算機終端類(lèi)型,用于IBM大型計算機。
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.───公司估計,除了使主機有更多能力處理其他應用程序以外,此解決方案還減少了高達約90的交易成本。
27 、It's a virus. It's working through our mainframe.─── 是一種病毒 正在入侵主機
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標記,就可以使用桌面程序打開(kāi)和處理大型機中的數據。
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.───主計算機,大型機是一種大型計算機,其它計算機可以連接到此計算機上,以共享這臺主計算機提供的各種設施。
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.───前端處理機指的是微機系統,注冊過(guò)的用戶(hù)通過(guò)主機上的人力資源信息可以進(jìn)入系統。
31 、With double outlet design, insert molding mainframe equipment, production lines without stopping production.───雙出料口設計,添加成型主機設備,生產(chǎn)線(xià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.───主要從事:域名注冊,虛擬主機,網(wǎng)頁(yè)設計,程序開(kāi)發(fā),電子信箱,網(wǎng)站維護,主機托管,電子商務(wù)等。
34 、I was archiving files on the mainframe computer.─── 我當時(shí)在主機上做文件歸檔
35 、Mainframe computers, are large, extremely powerful computers used by many large companies.───大型主計算機是大型的、功能也非常強大的計算機。
36 、In Chinese, the iron box is conventionally called the mainframe.───在中文里,這個(gè)箱子被習慣地稱(chēng)為主機。
37 、The office micro interface with the mainframe in the head office.───辦公室的微機與總部的中央處理器相互聯(lián)結。
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.───在新加坡的一臺大型機上的CICS或IMS事務(wù)能夠被一臺在慕尼黑的Domino服務(wù)器上運行的Lotus腳本驅動(dòng)的基于COM的應用程序調用。
39 、A mainframe is also referred to as a Scanner, Multiplexer, Matrix, or Programmable Switch.───主機也被稱(chēng)為掃描儀、復用器、矩陣或可編程開(kāi)關(guān)。
40 、A mainframe computer on which everyone in the office depended suddenly went down.───辦公室每個(gè)人都在用的大型計算機突然趴下了。
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推出了靈活的軟磁盤(pán)作為一個(gè)中型載貨節目到電腦主機.由于磁盤(pán)這么靈活的,他們被戲稱(chēng)為軟盤(pán)。
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.───在直接數字控制(DNC)中,由于最初的構思和20世紀60年代的發(fā)展,幾臺機器被一臺中央主機計算機逐步地直接控制。
43 、A communications device for an IBM mainframe computer.───一種通信設備,用于IBM大型計算機。
44 、The Model 7001 Scanner Mainframe controls the scanner cards.───7001型掃描器主機控制這些開(kāi)關(guān)卡。
45 、Maybe she doesn't need to be connected to the mainframe.─── 也許她不需要它們連進(jìn)主機
46 、High availability began in the 1970s with mainframe systems, which support high up time as part of their inherent design.───利用大型機系統的高可用性始于七十年代,這些系統作為它們固有設計的一部分,能保證系統長(chá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.───在大型計算機時(shí)代,網(wǎng)絡(luò )不過(guò)是把啞終端連到地下室里的大盒子上的電線(xiàn)而已。
48 、"When China's National Meteorological Bureau bought mainframe computers from Cray Inc. of the U.S., it just sold us two processors.───“中國國家氣象局購買(mǎi)美國克雷公司的大型計算機,克雷公司只賣(mài)給我們兩臺處理器。
49 、High availability began in the 1970s with mainframe systems,which support high up time as part of their inherent design.───利用大型機系統的高可用性始于二十世紀七十年代,這些系統作為它們固有設計的一部分,能保證系統長(cháng)時(shí)間正常工作。
50 、Adds a large mainframe computer to which workstations can be connected to your network diagram.───在網(wǎng)絡(luò )圖中添加可連接工作站的大型機。
51 、The mainframe includes the body of machine, main cylinder and press edge fitting, and cylinder of pack out and filling liquid equipment etc.───主機部分包括機身、主缸、壓邊裝置、頂出缸及充液裝置等組成。
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.───在主機箱的背后,有各種端口,用來(lái)溝通CPU和其它輸入輸出設備的聯(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系統網(wǎng)絡(luò )體系的一種特殊的變化,用于控制3270終端與IBM大型機之間的通信。
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.───在一秒鐘內,大型的主機能執行一百萬(wàn)條或者更多的指令,所以每失去一秒鐘就出現了對主機所具有的計算能力的驚人浪費。
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.───作者研制的軟件系統亦稱(chēng)ADCS實(shí)時(shí)控制系統是以COMPAQ486微機為主機的自動(dòng)測控系統。
57 、Signal switching is performed on cards that are inserted into the mainframe rack.───信號切換是在**入到主機的開(kāi)關(guān)卡上完成的。
58 、An extremely powerful mainframe computer used for complex mathematical calculations demanding high speed and storage, ?e.g.,? weather forecasting.───一種功能特別強的主計算機,可用于要求高速度和大存儲量的復雜數學(xué)計算,例如天氣預報。
59 、A batch protocol used to communicate with an IBM mainframe or compatible system.───一批協(xié)議,用于與IBM大型機或兼容系統之間的通信。
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.───一般而言,這些板僅僅提供便捷的接口來(lái)做,其中大多數是執行任務(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)計算器源碼,包含子網(wǎng)識別,子網(wǎng)計算,主機計算,主機識別。
62 、Up to six Model 7174A matrix cards can be connected in this manner in a Model 707A Switching Mainframe.───在707A型開(kāi)關(guān)主機中,可按這種方式連接多達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?───你們多少人是在電腦上工作而終獲得頭痛病,尤其當你們?yōu)榇蠊竟ぷ鞑⑶页撩杂谒麄冎鳈C的時(shí)候?
64 、Skill Requirement:1. 2-3 years work experience;2. Above 2years of technical experience in Mainframe and COBOL;3. At leas...... ...───公司名稱(chēng):大連阿爾泰克信息技術(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...... ...───公司名稱(chēng):匯豐環(huán)球客戶(hù)服務(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.───但是,正如百萬(wàn)臺蘋(píng)果機擊潰由高等祭司所衛護壟斷的主機電腦,電子貨幣也將打破金融婆羅門(mén)的壟斷。
67 、The entropy theory is used to analyz P2P application,worm,natural mainframe,and extract axis attributes.───利用熵理論分析P2P應用、蠕蟲(chóng)、正常主機的屬性特征,得到軸屬性。
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也是一種成功的組件,適用于小型機、大型機以及局域網(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ìn)應用軟件的開(kāi)發(fā),政府已經(jīng)慢慢但穩步地從大型機計算轉到客戶(hù)機/服務(wù)器系統。
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í)現上,和傳統的DVR實(shí)現方式不同,只需采用一臺“龍睛2000”矩陣主機即方便地完成了上述需求。
71 、And this virus allows you to spy on our mainframe.─── 這個(gè)病毒能讓你監視我們的主機
72 、You could cut the hardline at the mainframe.─── 但你可以去把主機上的智硬線(xiàn)剪斷
73 、It only uses the excess capacity of the mainframe.───它只使用了大型機上過(guò)剩的計算能力。
74 、You can't hack the mainframe if you're dead.─── 要是你死了 就無(wú)法破解主機了
75 、Engine comprehensive test instrument used for mainframe computer with a color monitor, printer.───發(fā)動(dòng)機綜合測試儀采用計算機為主機配有彩色顯示器、打印機。
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.───于是,主機程序員開(kāi)始向他的這位朋友描繪他的系統:“主機就像一位陷入沉思的圣人一樣,端坐在數據中心。
77 、Mainframe, auxiliary machine and dicing machine all apply frequency converted motor.───主機、輔機、切粒機采用變頻電機。
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è)巨人超級電腦主機電腦后,教學(xué)過(guò)程中還可以每秒百萬(wàn)、幾十億的數據存取能力.
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è)虛擬存儲、更通常被稱(chēng)為MVS,是最常用的操作系統和系統的系統/ 370人/ 390 IBM大型計算機。
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.───利用這些尚未使用的計算能力這是IGA的另外一個(gè)目標就可以為那些已經(jīng)購買(mǎi)了大量大型服務(wù)器的組織帶來(lái)經(jīng)濟上的回報。
81 、Y2K is a problem basically because mainframe computer programmers paid little attention to the long-term future.───2000年問(wèn)題產(chǎn)生的主要原因是大型計算機的程序設計員對未來(lái)的長(cháng)期使用沒(méi)有給予足夠的重視,問(wèn)題由此造成。
82 、Mainframe in your head? I'm a gamer.─── 頭腦里裝有主機 我是個(gè)職業(yè)玩家
83 、Mainframe These were the so-called mainframe machines.───它們被稱(chēng)為主機。
84 、Install both the mainframe and desktop software.───安裝大型機和桌面軟件。
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程序一旦寫(xiě)好了,就能在任何一種計算機(PC機、Macintosh機、Unix工作站、甚至是大型機)上無(wú)須修改就能運行。
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í)間過(guò)長(cháng),某些大型機系統,存取供應者和電子郵件軟件甚至會(huì )把這些信刪去。
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í)間過(guò)長(cháng),某些大型機系統,存取供應者和電子郵件軟件甚 至會(huì )把這些信刪去。
88 、To connect the outputs of the cards together, certain cards have their outputs connected to the backplane of the scanner mainframe.───為了將開(kāi)關(guān)卡的輸出連接在一起,特定開(kāi)關(guān)卡的輸出都會(huì )被連接到掃描儀主機的背板。
89 、On the back of the mainframe box, there are various ports, with which CPU may be linked with input and output devices.───在主機箱的背后, 有各種端口,用來(lái)溝通cpu 和其它輸入輸出設備的聯(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.───與微型機相比,中型機體積比較大且運算能力更強,但與大型機相比,無(wú)論是體積還是運算能力都要小的多。
如何上傳PC文件到Mainframe
先看看我們要上傳的TXT 文件 啟動(dòng)你的 Mainframe 虛擬機,進(jìn)入 ISPF 界面界面,選 6 看圖下的順序操作 點(diǎn)擊保存,成功后發(fā)現多了 ISPF Command Shell 界面多了一行命令,證明上傳成功了
怎么用java寫(xiě)日歷
以下是兩個(gè)類(lèi),請樓主分別存成兩個(gè)java文件:
其中
MainFrame.java是顯示日歷程序,Clock.java是日歷計算程序。編譯后運行MainFrame這個(gè)類(lèi)即可。
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("萬(wàn)年歷");
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);// 將顯示的字符設置為居中
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()); // 得到當前所選年份
c_month = Integer.parseInt(com2.getSelectedItem().toString()) - 1; // 得到當前月份,并減1,計算機中的月為0-11
c_week = use(c_year, c_month); // 調用函數use,得到星期幾
Resetday(c_week, c_year, c_month); // 調用函數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); // 將星期日的日期設置為紅色
}
for (int i = 6; i < 49; i = i + 7) {
label[i].setForeground(Color.green);// 將星期六的日期設置為綠色
}
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)); // 得到當前時(shí)間的月份
year = (int) (now.get(Calendar.YEAR)); // 得到當前時(shí)間的年份
com1.setSelectedIndex(year - 1); // 設置下拉列表顯示為當前年
com2.setSelectedIndex(month_num); // 設置下拉列表顯示為當前月
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í)間為所要查詢(xún)的年月的第一天
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; // 存儲月份的天數
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++) { // 初始化標簽
label[i].setText("");
}
week_log = week_log + 6; // 將星期數加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í)間的類(lèi):Clock
/** *//**
* Clock.java
* Summary 數字時(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í)例化線(xiàn)程
t.start(); //調用線(xiàn)程
}
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í)間顯示類(lèi)型
Calendar now=Calendar.getInstance();
time=SDF.format(now.getTime()); //得到當前日期和時(shí)間
g.setFont(f);
g.setColor(Color.orange);
g.drawString(time,45,25);
}
}
版權聲明: 本站僅提供信息存儲空間服務(wù),旨在傳遞更多信息,不擁有所有權,不承擔相關(guān)法律責任,不代表本網(wǎng)贊同其觀(guān)點(diǎn)和對其真實(shí)性負責。如因作品內容、版權和其它問(wèn)題需要同本網(wǎng)聯(lián)系的,請發(fā)送郵件至 舉報,一經(jīng)查實(shí),本站將立刻刪除。