1 package de.orangecafe.amazonrcp.splash;
2
3 import org.springframework.richclient.application.splash.AbstractSplashScreen;
4 import org.springframework.richclient.application.splash.MonitoringSplashScreen;
5 import org.springframework.richclient.application.splash.InfiniteProgressPanel;
6 import org.springframework.richclient.application.splash.InfiniteProgressPanelProgressMonitor;
7 import org.springframework.richclient.progress.ProgressMonitor;
8
9 import javax.swing.*;
10 import java.awt.*;
11
12
13
14
15
16 public class AmazonRCPSplashScreen extends AbstractSplashScreen implements MonitoringSplashScreen {
17 private InfiniteProgressPanel _progressPanel = new InfiniteProgressPanel();
18
19 protected Component createContentPane() {
20 _progressPanel.setPreferredSize(new Dimension(400, 250));
21 _progressPanel.setBorder(BorderFactory.createLineBorder(Color.BLACK, 1));
22
23
24
25 return _progressPanel;
26 }
27
28 public ProgressMonitor getProgressMonitor() {
29 return new InfiniteProgressPanelProgressMonitor(_progressPanel);
30 }
31 }