You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
979 B
41 lines
979 B
/* |
|
* Copyright(c) 2001-2010, FineReport Inc, All Rights Reserved. |
|
*/ |
|
package com.fr.design.gui.frpane; |
|
|
|
import com.fr.design.dialog.BasicDialog; |
|
import com.fr.design.gui.ibutton.UIButton; |
|
import com.fr.log.FineLoggerFactory; |
|
|
|
import javax.swing.JPanel; |
|
|
|
|
|
/** |
|
* @author richer |
|
* @since 6.5.5 创建于2011-6-16 |
|
*/ |
|
public class LoadingBasicPaneTest { |
|
|
|
public static void main(String[] args) { |
|
LoadingBasicPane lb = new LoadingBasicPane() { |
|
protected void initComponents(JPanel container) { |
|
for (int i = 0; i < 10; i++) { |
|
try { |
|
Thread.sleep(500); |
|
} catch (InterruptedException e) { |
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
} |
|
container.add(new UIButton(i + "adfadwdadawdwad")); |
|
} |
|
} |
|
|
|
@Override |
|
protected String title4PopupWindow() { |
|
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Test") ; |
|
} |
|
}; |
|
BasicDialog dlg = lb.showWindow(null); |
|
dlg.setVisible(true); |
|
} |
|
|
|
} |