Java_information_cue
代码说明:
Java实现一个信息提示窗口,实现方法:大多数的信息窗口是没有标题栏的,因此信息窗口不能由继承JFrame 类来实现,一种简单的做法是通过继承JWindow 来实现(当然继承Window 类也可以,但一个原则是尽量使用swing 中的界面类)。 在加载图信息窗口上的图片时,用到java.awt 包中的MediaTracker 类。使用该类的好处是可以更好地管理程序中要使用的图片,同时还可以保证图片和界面同时显示,避免了窗口显示后很久才显示图片的缺点。 ( Java implementation of an information prompt window method: Most of the information is no title bar of the window, the information window can not be achieved by the inherited class JFrame, a simple approach is to be achieved through inheritance JWindow (of course, the Window class can inherit but a principle is to make use of the interface class swing). When loaded on the chart image information window, use the java.awt package MediaTracker class. The advantage of using this class is that you can better manage the program you want to use the picture, but also can guarantee the picture display and interface simultaneously, avoiding the window a long time to display pictures shortcomings. )
下载说明:请别用迅雷下载,失败请重下,重下不扣分!