Browse Source

final/10.0
kerry 7 years ago
parent
commit
fd2563bfe4
  1. 13
      designer-base/src/main/java/com/fr/design/gui/frpane/LoadingBasicPane.java

13
designer-base/src/main/java/com/fr/design/gui/frpane/LoadingBasicPane.java

@ -8,9 +8,13 @@ import com.fr.design.gui.ilable.UILabel;
import com.fr.design.layout.FRGUIPaneFactory; import com.fr.design.layout.FRGUIPaneFactory;
import com.fr.design.utils.gui.LayoutUtils; import com.fr.design.utils.gui.LayoutUtils;
import javax.swing.JPanel;
import javax.swing.JProgressBar;
import javax.swing.SwingConstants;
import javax.swing.SwingWorker;
import java.awt.BorderLayout;
import java.awt.CardLayout;
import javax.swing.*;
import java.awt.*;
/** /**
* @author richer * @author richer
@ -23,6 +27,10 @@ public abstract class LoadingBasicPane extends BasicPane {
private JProgressBar progressBar; private JProgressBar progressBar;
public LoadingBasicPane() { public LoadingBasicPane() {
initCards(); initCards();
initPane();
}
protected void initPane(){
new SwingWorker<Integer, Void>() { new SwingWorker<Integer, Void>() {
@Override @Override
@ -42,6 +50,7 @@ public abstract class LoadingBasicPane extends BasicPane {
} }
private void initCards() { private void initCards() {
card = new CardLayout(); card = new CardLayout();
setLayout(card); setLayout(card);

Loading…
Cancel
Save