Revision: 3048
http://obo.svn.sourceforge.net/obo/?rev=3048&view=rev
Author: nomi
Date: 2010-01-19 19:20:35 +0000 (Tue, 19 Jan 2010)
Log Message:
-----------
Some (unsuccessful) attempts to get the loading screen to show up from the installed version (it shows up fine if
you run from the shell).
Modified Paths:
--------------
phenote/trunk/src/java/phenote/gui/LoadingScreen.java
Modified: phenote/trunk/src/java/phenote/gui/LoadingScreen.java
===================================================================
--- phenote/trunk/src/java/phenote/gui/LoadingScreen.java 2010-01-19 18:02:04 UTC (rev 3047)
+++ phenote/trunk/src/java/phenote/gui/LoadingScreen.java 2010-01-19 19:20:35 UTC (rev 3048)
@@ -2,6 +2,7 @@
import java.awt.BorderLayout;
import java.awt.Color;
+import java.awt.Dimension;
import java.awt.Font;
import java.io.FileNotFoundException;
@@ -47,12 +48,18 @@
* Create the frame
*/
public LoadingScreen() {
+// LoadingScreen(700, 375); // Default size
+ this(new Dimension(400, 275)); // Default size
+ }
+
+ public LoadingScreen(Dimension dimension) {
super();
setBackground(Color.WHITE);
getContentPane().setBackground(Color.WHITE);
- setBounds(100, 100, 700, 375);
+ LOG.debug("LoadingScreen: set bounds to 100, 100, " + (int)dimension.getWidth() + ", " + (int)dimension.getHeight()); // DEL
+ setBounds(100, 100, (int)dimension.getWidth(), (int)dimension.getHeight());
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- setResizable(false);
+// setResizable(false);
final JPanel panel = new JPanel();
panel.setBackground(Color.WHITE);
@@ -132,7 +139,7 @@
footerTextPane.setAutoscrolls(false);
footerTextPane.setEditable(false);
footerTextPane.setText("<html><body><center><font size=2>Phenote is a project of the Berkeley Bioinformatics Open-Source Projects" +
- " (<a href='http://www.berkeleybop.org'>BBOP</a>).</font></center></body></html>");
+ " (<a href='http://www.berkeleybop.org'>BBOP</a>).<br>It is distributed under the FreeBSD license.</font></center></body></html>");
final GroupLayout groupLayout = new GroupLayout((JComponent) footerPanel);
groupLayout.setHorizontalGroup(
@@ -150,8 +157,9 @@
.addContainerGap())
);
footerPanel.setLayout(groupLayout);
- //
pack();
+ getContentPane().repaint(); // ?
+ show(); // ?
}
public void setMessageText(String m) {
@@ -170,6 +178,8 @@
SwingUtilities.invokeLater(new Runnable() {
public void run() {
startupProgressBar.setValue(theProgress);
+ getContentPane().repaint(); // ?
+ show(); // ?
}
});
}
@@ -194,6 +204,7 @@
final boolean boo = b;
SwingUtilities.invokeLater(new Runnable() {
public void run() {
+ LOG.debug("LoadingScreen.setScreenVisible " + boo); // DEL
setVisible(boo);
}
});
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|