Open source code: jsplashwindow

xiaoxiao2021-03-06  38

Package nicholas.swing;

Import java.awt. *; import java.awt.event. *; import javax.swing. *;

/ ** *

Title: jsplashwindow *

description: Start Up window *

Copyright: Copyright (c) 2005 *

Company: ColinSoft < / p> * @author Nicholas Lin * @version beta * / public class JSplashWindow extends JWindow {private static JSplashWindow csw; private Image image; private String user; private String lab; private int x1 = 155; private int y1 = 220; private INT x2 = 250; private int y2 = 235; private disposeadapter da; / ** * constructor * / private jsplashwindow (string u, string filename) {

setCursor (Cursor.getPredefinedCursor (Cursor.WAIT_CURSOR)); ImageIcon icon = new ImageIcon (. getClass () getResource (filename)); image = icon.getImage (); user = ""; user = u; setAlwaysOnTop (true);

转载请注明原文地址:https://www.9cbs.com/read-71964.html

New Post(0)