13-Java多线程---_图文.pptVIP

  • 0
  • 0
  • 约 61页
  • 2017-01-19 发布于浙江
  • 举报
13.4 线程调度与控制 public void createClock()// 创建一个时钟,并加入 applet容器中 { getContentPane().add(stillClock = new StillClock(locale, timeZone)); } public void getHTMLParameters() { // 从 HTML文件中获得参数 String language = getParameter(language); String country = getParameter(country); String timezone = getParameter(timezone); ? // 如果在 HTML文件中没有给出参数值,则设置默认值 if (language == null) language = en; if (country == null) country = US; if (timezone == null) timezone = CST; ? //初始化 locale和 timezone locale = new Locale(language, country); timeZone = TimeZone.

文档评论(0)

1亿VIP精品文档

相关文档