Java Swing方面的问题

valims 2010-07-27 06:14:25
各位大侠,我最近在用swing开发的时候遇到一个问题,我怎么样才能获得JDialog的背景图片是否加载完成呢?请不吝赐教!谢谢!
...全文
85 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
hy158753228 2010-07-27
  • 打赏
  • 举报
回复
LZ去查API吧
The MediaTracker class is a utility class to track the status of a number of media objects. Media objects could include audio clips as well as images, though currently only images are supported.

To use a media tracker, create an instance of MediaTracker and call its addImage method for each image to be tracked. In addition, each image can be assigned a unique identifier. This identifier controls the priority order in which the images are fetched. It can also be used to identify unique subsets of the images that can be waited on independently. Images with a lower ID are loaded in preference to those with a higher ID number.
iichuang 2010-07-27
  • 打赏
  • 举报
回复
e,这个不会
huntor 2010-07-27
  • 打赏
  • 举报
回复
java.awt.MediaTracker 类

62,623

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧