mainframe是什么意思、mainframe中文翻译、发音、用法及例句

日期: 栏目:知识类 浏览:

  •

  mainframe

  英:【ˈmeɪnfreɪm】美:【ˈmeɪnfreɪm】

  英:

  美:

  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.───因此在这样的环境中,任何设置成混杂模式的主机,将可以捕获发送给其它主机的数据包,从而**网络上的所有通信。

  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.───主机传动箱集减速及扭矩分配为一体,采用超扭矩均载系统,其扭矩因数达到国内领先水平。

  5 、Create data sets on the

  mainframe

  .───在大型机上创建数据集。

  6 、In a way, all this is a throwback to the era of “time-sharing” on

  mainframe

  computers.───从某种程度上来说,所有这一切都回到了大型主机的“时间共享”时代。

  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

  .───在小型计算机和大型计算机之间,具有中等容量和计算能力的计算机。

  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

  .───分析了扩展事务处理能力技术(XTC)的特点和主要优缺点,提出了从单主机系统向松耦合主机系统转型的实施技术要点,并进行了实例对比。

  12 、My spiders have control of the

  mainframe

  .─── 我的小蜘蛛们已经控制了平台主机

  13 、E-Business applications or a collection of

  mainframe

  applications that share the same database may be an example of such separation.───共享相同数据库的电子商务应用程序或大型机应用程序的集合是这种划分的一个例子。

  14 、Ethernet sharing : sharing network environment, all of the hosts connected to a bus with other

  mainframe

  competition bandwidth.───共享以太网:在共享网络环境中,所有的主机都连接到同一条总线并且与其他的主机竞争带宽。

  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.───一台不型计算机,也常被称为中型计算机或低级主机。

  17 、Every insurance company has some legacy

  mainframe

  systems.───个公司会用以前的大型电脑?

  18 、High availability began in the 1970s with

  mainframe

  systems, which support high uptime as part of their inherent design.───利用大型机系统的高可用性始于七十年代,这些系统作为它们固有设计的一部分,能保证系统长时间正常工作。

  19 、IBMs 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设备信道连接大型机,支持与局域网以及其他前端处理器(FEP)相连接。

  20 、Skills Required-Cobol, JCL, EZTRIEVE Experience 3-4 years in Mainframe Technologies, with good attitude and comp...... ...───公司名称:派瑞日软件科技(上海)有限公司工作地点:上海市发布时间:2009-5-1

  21 、Special numeric-control system is fitted with

  mainframe

  of the bending machine.───主机配置折弯机专用数控系统;

  22 、Probably shouldve waited to schedule the celebration of a working

  mainframe

  until the

  mainframe

  was actually, you know, working.─── 既然想给主机正式启动运行 办一场庆典 那就该等到主机能够启动运行时再办

  23 、IBMs 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.───到目前为止,绝大多数的用户都是通过主机或基于UNIX系统的直接高速连接器来上网。

  25 、The type of fixed function computer terminals used with IBM

  mainframe

  computers.───具有固定功能的计算机终端类型,用于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 、Its a virus. Its 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标记,就可以使用桌面程序打开和处理大型机中的数据。

  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.───前端处理机指的是微机系统,注册过的用户通过主机上的人力资源信息可以进入系统。

  31 、With double outlet design, insert molding

  mainframe

  equipment, production lines without stopping production.───双出料口设计,添加成型主机设备,生产线产不需停。

  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.───主要从事:域名注册,虚拟主机,网页设计,程序开发,电子信箱,网站维护,主机托管,电子商务等。

  34 、I was archiving files on the

  mainframe

  computer.─── 我当时在主机上做文件归档

  35 、Mainframe computers, are large, extremely powerful computers used by many large companies.───大型主计算机是大型的、功能也非常强大的计算机。

  36 、In Chinese, the iron box is conventionally called the

  mainframe

  .───在中文里,这个箱子被习惯地称为主机。

  37 、The office micro interface with the

  mainframe

  in the head office.───办公室的微机与总部的中央处理器相互联结。

  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事务能够被一台在慕尼黑的Domino服务器上运行的Lotus脚本驱动的基于COM的应用程序调用。

  39 、A

  mainframe

  is also referred to as a Scanner, Multiplexer, Matrix, or Programmable Switch.───主机也被称为扫描仪、复用器、矩阵或可编程开关。

  40 、A

  mainframe

  computer on which everyone in the office depended suddenly went down.───办公室每个人都在用的大型计算机突然趴下了。

  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推出了灵活的软磁盘作为一个中型载货节目到电脑主机.由于磁盘这么灵活的,他们被戏称为软盘。

  42 、In direct numerical control (DNC), as originally conceived and developed in the 1960s, several machines are directly controlled step by step by a central

  mainframe

  computer.───在直接数字控制(DNC)中,由于最初的构思和20世纪60年代的发展,几台机器被一台中央主机计算机逐步地直接控制。

  43 、A communications device for an IBM

  mainframe

  computer.───一种通信设备,用于IBM大型计算机。

  44 、The Model 7001 Scanner Mainframe controls the scanner cards.───7001型扫描器主机控制这些开关卡。

  45 、Maybe she doesnt need to be connected to the

  mainframe

  .─── 也许她不需要它们连进主机

  46 、High availability began in the 1970s with

  mainframe

  systems, which support high up time as part of their inherent design.───利用大型机系统的高可用性始于七十年代,这些系统作为它们固有设计的一部分,能保证系统长时间正常工作。

  47 、In the days of

  mainframe

  computers, networks were simply the wires that connected the dumb terminals to the big box in the basement.───在大型计算机时代,网络不过是把哑终端连到地下室里的大盒子上的电线而已。

  48 、"When Chinas National Meteorological Bureau bought

  mainframe

  computers from Cray Inc. of the U.S., it just sold us two processors.───“中国国家气象局购买美国克雷公司的大型计算机,克雷公司只卖给我们两台处理器。

  49 、High availability began in the 1970s with

  mainframe

  systems,which support high up time as part of their inherent design.───利用大型机系统的高可用性始于二十世纪七十年代,这些系统作为它们固有设计的一部分,能保证系统长时间正常工作。

  50 、Adds a large

  mainframe

  computer to which workstations can be connected to your network diagram.───在网络图中添加可连接工作站的大型机。

  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.───在主机箱的背后,有各种端口,用来沟通CPU和其它输入输出设备的联系。

  54 、A specific variation of IBMs System Network Architecture for controlling communications between a 3270 terminal connected to an IBM

  mainframe

  .───IBM系统网络体系的一种特殊的变化,用于控制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.───在一秒钟内,大型的主机能执行一百万条或者更多的指令,所以每失去一秒钟就出现了对主机所具有的计算能力的惊人浪费。

  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

  .───作者研制的软件系统亦称ADCS实时控制系统是以COMPAQ486微机为主机的自动测控系统。

  57 、Signal switching is performed on cards that are inserted into the

  mainframe

  rack.───信号切换是在**入到主机的开关卡上完成的。

  58 、An extremely powerful

  mainframe

  computer used for complex mathematical calculations demanding high speed and storage, ?e.g.,? weather forecasting.───一种功能特别强的主计算机,可用于要求高速度和大存储量的复杂数学计算,例如天气预报。

  59 、A batch protocol used to communicate with an IBM

  mainframe

  or compatible system.───一批协议,用于与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.───一般而言,这些板仅仅提供便捷的接口来做,其中大多数是执行任务的IBM大型公用程序模块的实际工作。

  61 、A very good source IP subnet calculator, subnet that contains the identification, subnet calculation,

  mainframe

  computing, host identification.───一个非常好的IP子网计算器源码,包含子网识别,子网计算,主机计算,主机识别。

  62 、Up to six Model 7174A matrix cards can be connected in this manner in a Model 707A Switching Mainframe.───在707A型开关主机中,可按这种方式连接多达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

  ?───你们多少人是在电脑上工作而终获得头痛病,尤其当你们为大公司工作并且沉迷于他们主机的时候?

  64 、Skill Requirement:1. 2-3 years work experience;2. Above 2years of technical experience in Mainframe and COBOL;3. At leas...... ...───公司名称:大连阿尔泰克信息技术有限公司工作地点:辽宁省大连市发布时间:2009-7-25

  65 、Operational Performance Delivery (OPD) is primarily to provide support to all

  mainframe

  system users and initiate as wel...... ...───公司名称:汇丰环球客户服务(广东)有限公司工作地点:广东省广州市发布时间: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.───但是,正如百万台苹果机击溃由高等祭司所卫护垄断的主机电脑,电子货币也将打破金融婆罗门的垄断。

  67 、The entropy theory is used to analyz P2P application,worm,natural

  mainframe

  ,and extract axis attributes.───利用熵理论分析P2P应用、蠕虫、正常主机的属性特征,得到轴属性。

  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也是一种成功的组件,适用于小型机、大型机以及局域网或广域网。

  69 、To reduce computing costs and improve application development, governments have been shifting slowly but steadily away from

  mainframe

  computing to client/server systems.───为减少计算成本和改进应用软件的开发,政府已经慢慢但稳步地从大型机计算转到客户机/服务器系统。

  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.───实现上,和传统的DVR实现方式不同,只需采用一台“龙睛2000”矩阵主机即方便地完成了上述需求。

  71 、And this virus allows you to spy on our

  mainframe

  .─── 这个病毒能让你监视我们的主机

  72 、You could cut the hardline at the

  mainframe

  .─── 但你可以去把主机上的智硬线剪断

  73 、It only uses the excess capacity of the

  mainframe

  .───它只使用了大型机上过剩的计算能力。

  74 、You cant hack the

  mainframe

  if youre dead.─── 要是你死了 就无法破解主机了

  75 、Engine comprehensive test instrument used for

  mainframe

  computer with a color monitor, printer.───发动机综合测试仪采用计算机为主机配有彩色显示器、打印机。

  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.───于是,主机程序员开始向他的这位朋友描绘他的系统:“主机就像一位陷入沉思的圣人一样,端坐在数据中心。

  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.───另一个巨人超级电脑主机电脑后,教学过程中还可以每秒百万、几十亿的数据存取能力.

  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.───多个虚拟存储、更通常被称为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的另外一个目标就可以为那些已经购买了大量大型服务器的组织带来经济上的回报。

  81 、Y2K is a problem basically because

  mainframe

  computer programmers paid little attention to the long-term future.───2000年问题产生的主要原因是大型计算机的程序设计员对未来的长期使用没有给予足够的重视,问题由此造成。

  82 、Mainframe in your head? Im a gamer.─── 头脑里装有主机 我是个职业玩家

  83 、Mainframe These were the so-called

  mainframe

  machines.───它们被称为主机。

  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程序一旦写好了,就能在任何一种计算机(PC机、Macintosh机、Unix工作站、甚至是大型机)上无须修改就能运行。

  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.───如果信息被滞留在电子收信箱或发送信箱的时间过长,某些大型机系统,存取供应者和电子邮件软件甚至会把这些信删去。

  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.───如果信息被滞留在电子收信箱或发送信箱的时间过长,某些大型机系统,存取供应者和电子邮件软件甚 至会把这些信删去。

  88 、To connect the outputs of the cards together, certain cards have their outputs connected to the backplane of the scanner

  mainframe

  .───为了将开关卡的输出连接在一起,特定开关卡的输出都会被连接到扫描仪主机的背板。

  89 、On the back of the

  mainframe

  box, there are various ports, with which CPU may be linked with input and output devices.───在主机箱的背后, 有各种端口,用来沟通cpu 和其它输入输出设备的联系。

  90 、Midrange computers are larger and more powerful than most microcomputers but are smaller and less powerful than most large

  mainframe

  computer systems.───与微型机相比,中型机体积比较大且运算能力更强,但与大型机相比,无论是体积还是运算能力都要小的多。

  如何上传PC文件到Mainframe

  先看看我们要上传的TXT 文件 启动你的 Mainframe 虚拟机,进入 ISPF 界面界面,选 6 看图下的顺序操作 点击保存,成功后发现多了 ISPF Command Shell 界面多了一行命令,证明上传成功了

  怎么用java写日历

  以下是两个类,请楼主分别存成两个java文件:

  其中

  MainFrame.java是显示日历程序,Clock.java是日历计算程序。编译后运行MainFrame这个类即可。

  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(); // 实例化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);// 将显示的字符设置为居中

  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)); // 得到当前时间的月份

  year = (int) (now.get(Calendar.YEAR)); // 得到当前时间的年份

  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); // 设置时间为所要查询的年月的第一天

  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); // 前个月

  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;

  //显示时间的类:Clock

  /** *//**

  * Clock.java

  * Summary 数字时间显示

  * 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); //实例化线程

  t.start(); //调用线程

  }

  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");//格式化时间显示类型

  Calendar now=Calendar.getInstance();

  time=SDF.format(now.getTime()); //得到当前日期和时间

  g.setFont(f);

  g.setColor(Color.orange);

  g.drawString(time,45,25);

  }

  }

标签: