日期:2014-05-20 浏览次数:20732 次
import java.awt.Dimension; import java.io.Serializable; import javax.swing.JDialog; public class JDialogTest{ public JDialogTest(Serializable s){ JDialog dialog = new JDialog(); dialog.setTitle("Dialog测试"+s); dialog.setSize(new Dimension(50, 60)); dialog.setVisible(true); } public static void main(String[] args){ for(int i=0;i<3;i++){ new JDialogTest(i); } }