package com.hs.gui;
import javax.swing.JDialog;
import javax.swing.JLabel;
public class JDialogTest extends JDialog {
public JDialogTest()
{
this.setSize(200, 100);
this.setTitle("package");
}
public static void main(String[] args) {
JDialogTest jdt = new JDialogTest();
JLabel jl = new JLabel("import");
jdt.add(jl);
String [] strs = new String[] {"import.", "import..", "import..."};
jdt.setVisible(true);
for(int i = 0; i < 100; i++)
{
try {
for (String string : strs) {
Thread.sleep(100);
jl.setText(string);
}
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
jdt.setVisible(true);
}
}