New epic splash screen
This commit is contained in:
parent
526131cfd6
commit
2a077b4cf4
@ -5,19 +5,16 @@
|
||||
<Property name="defaultCloseOperation" type="int" value="3"/>
|
||||
<Property name="title" type="java.lang.String" value="SyMAT Starting"/>
|
||||
<Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
||||
<Dimension value="[400, 320]"/>
|
||||
<Dimension value="[702, 471]"/>
|
||||
</Property>
|
||||
<Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
||||
<Dimension value="[400, 320]"/>
|
||||
<Dimension value="[702, 471]"/>
|
||||
</Property>
|
||||
<Property name="undecorated" type="boolean" value="true"/>
|
||||
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
||||
<Dimension value="[400, 320]"/>
|
||||
<Dimension value="[702, 471]"/>
|
||||
</Property>
|
||||
<Property name="resizable" type="boolean" value="false"/>
|
||||
<Property name="shape" type="java.awt.Shape" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
|
||||
<Connection code="new RoundRectangle2D.Double(0, 0, getSize().width, getSize().height, 25, 25)" type="code"/>
|
||||
</Property>
|
||||
</Properties>
|
||||
<SyntheticProperties>
|
||||
<SyntheticProperty name="formSizePolicy" type="int" value="1"/>
|
||||
@ -36,12 +33,17 @@
|
||||
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
|
||||
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
|
||||
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
|
||||
<AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,64,0,0,1,-112"/>
|
||||
<AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,-41,0,0,2,-66"/>
|
||||
</AuxValues>
|
||||
|
||||
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
|
||||
<SubComponents>
|
||||
<Container class="javax.swing.JLayeredPane" name="jLayeredPane1">
|
||||
<Properties>
|
||||
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
||||
<Color blue="ff" green="ff" red="ff" type="rgb"/>
|
||||
</Property>
|
||||
</Properties>
|
||||
<Constraints>
|
||||
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
|
||||
<BorderConstraints direction="Center"/>
|
||||
@ -55,41 +57,83 @@
|
||||
<Component class="javax.swing.JLabel" name="dispLabel">
|
||||
<Properties>
|
||||
<Property name="font" type="java.awt.Font" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
|
||||
<Connection code="MainGUI.ubuntuRegular.deriveFont(20.0F)" type="code"/>
|
||||
<Connection code="MainGUI.ubuntuRegular.deriveFont(22.0F)" type="code"/>
|
||||
</Property>
|
||||
<Property name="horizontalAlignment" type="int" value="0"/>
|
||||
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
||||
<Image iconType="3" name="/net/apocalypselabs/symat/splash.gif"/>
|
||||
</Property>
|
||||
<Property name="text" type="java.lang.String" value="<html><br><br>&nbsp;&nbsp;&nbsp;Loading..."/>
|
||||
<Property name="horizontalTextPosition" type="int" value="0"/>
|
||||
<Property name="horizontalAlignment" type="int" value="2"/>
|
||||
<Property name="text" type="java.lang.String" value="Loading..."/>
|
||||
<Property name="horizontalTextPosition" type="int" value="2"/>
|
||||
<Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
||||
<Dimension value="[400, 320]"/>
|
||||
</Property>
|
||||
</Properties>
|
||||
<Constraints>
|
||||
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
|
||||
<AbsoluteConstraints x="0" y="0" width="-1" height="-1"/>
|
||||
<AbsoluteConstraints x="250" y="250" width="350" height="80"/>
|
||||
</Constraint>
|
||||
</Constraints>
|
||||
</Component>
|
||||
<Component class="javax.swing.JLabel" name="jLabel1">
|
||||
<Properties>
|
||||
<Property name="font" type="java.awt.Font" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
|
||||
<Connection code="MainGUI.ubuntuRegular.deriveFont(18.0F)" type="code"/>
|
||||
<Connection code="MainGUI.ubuntuRegular.deriveFont(20.0F)" type="code"/>
|
||||
</Property>
|
||||
<Property name="horizontalAlignment" type="int" value="11"/>
|
||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
|
||||
<Connection code=""<html><b>Version "+MainGUI.VERSION_NAME+"</b>"" type="code"/>
|
||||
<Connection code=""v. "+MainGUI.VERSION_NAME" type="code"/>
|
||||
</Property>
|
||||
<Property name="verticalAlignment" type="int" value="1"/>
|
||||
</Properties>
|
||||
<AuxValues>
|
||||
<AuxValue name="JLayeredPane.layer" type="java.lang.Integer" value="300"/>
|
||||
</AuxValues>
|
||||
<Constraints>
|
||||
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
|
||||
<AbsoluteConstraints x="200" y="110" width="130" height="30"/>
|
||||
<AbsoluteConstraints x="520" y="70" width="80" height="30"/>
|
||||
</Constraint>
|
||||
</Constraints>
|
||||
</Component>
|
||||
<Component class="javax.swing.JLabel" name="jLabel2">
|
||||
<Properties>
|
||||
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
||||
<Image iconType="3" name="/net/apocalypselabs/symat/images/symat-hex-logo.png"/>
|
||||
</Property>
|
||||
</Properties>
|
||||
<Constraints>
|
||||
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
|
||||
<AbsoluteConstraints x="0" y="0" width="700" height="470"/>
|
||||
</Constraint>
|
||||
</Constraints>
|
||||
</Component>
|
||||
<Component class="javax.swing.JLabel" name="jLabel3">
|
||||
<Properties>
|
||||
<Property name="font" type="java.awt.Font" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
|
||||
<Connection code="MainGUI.ubuntuRegular.deriveFont(12.0F)" type="code"/>
|
||||
</Property>
|
||||
<Property name="horizontalAlignment" type="int" value="0"/>
|
||||
<Property name="text" type="java.lang.String" value="<html><div style="text-align: center;">Apocalypse<br>Laboratories</div>"/>
|
||||
</Properties>
|
||||
<AuxValues>
|
||||
<AuxValue name="JLayeredPane.layer" type="java.lang.Integer" value="300"/>
|
||||
</AuxValues>
|
||||
<Constraints>
|
||||
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
|
||||
<AbsoluteConstraints x="50" y="420" width="120" height="40"/>
|
||||
</Constraint>
|
||||
</Constraints>
|
||||
</Component>
|
||||
<Component class="javax.swing.JLabel" name="jLabel4">
|
||||
<Properties>
|
||||
<Property name="font" type="java.awt.Font" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
|
||||
<Connection code="MainGUI.ubuntuRegular.deriveFont(12.0F)" type="code"/>
|
||||
</Property>
|
||||
<Property name="horizontalAlignment" type="int" value="0"/>
|
||||
<Property name="text" type="java.lang.String" value="symatapp.com"/>
|
||||
</Properties>
|
||||
<AuxValues>
|
||||
<AuxValue name="JLayeredPane.layer" type="java.lang.Integer" value="300"/>
|
||||
</AuxValues>
|
||||
<Constraints>
|
||||
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
|
||||
<AbsoluteConstraints x="370" y="430" width="110" height="-1"/>
|
||||
</Constraint>
|
||||
</Constraints>
|
||||
</Component>
|
||||
|
@ -45,6 +45,7 @@
|
||||
*/
|
||||
package net.apocalypselabs.symat;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.awt.geom.RoundRectangle2D;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.InputStream;
|
||||
@ -67,7 +68,7 @@ public class SplashScreen extends javax.swing.JFrame {
|
||||
*/
|
||||
public SplashScreen() {
|
||||
initComponents();
|
||||
|
||||
setBackground(new Color(0, 0, 0, 0));
|
||||
setIconImage((new ImageIcon(
|
||||
getClass().getResource("icon.png"))).getImage());
|
||||
setLocationRelativeTo(null);
|
||||
@ -85,38 +86,58 @@ public class SplashScreen extends javax.swing.JFrame {
|
||||
jLayeredPane1 = new javax.swing.JLayeredPane();
|
||||
dispLabel = new javax.swing.JLabel();
|
||||
jLabel1 = new javax.swing.JLabel();
|
||||
jLabel2 = new javax.swing.JLabel();
|
||||
jLabel3 = new javax.swing.JLabel();
|
||||
jLabel4 = new javax.swing.JLabel();
|
||||
|
||||
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
|
||||
setTitle("SyMAT Starting");
|
||||
setMaximumSize(new java.awt.Dimension(400, 320));
|
||||
setMinimumSize(new java.awt.Dimension(400, 320));
|
||||
setMaximumSize(new java.awt.Dimension(702, 471));
|
||||
setMinimumSize(new java.awt.Dimension(702, 471));
|
||||
setUndecorated(true);
|
||||
setPreferredSize(new java.awt.Dimension(400, 320));
|
||||
setPreferredSize(new java.awt.Dimension(702, 471));
|
||||
setResizable(false);
|
||||
setShape(new RoundRectangle2D.Double(0, 0, getSize().width, getSize().height, 25, 25));
|
||||
addComponentListener(new java.awt.event.ComponentAdapter() {
|
||||
public void componentShown(java.awt.event.ComponentEvent evt) {
|
||||
formComponentShown(evt);
|
||||
}
|
||||
});
|
||||
|
||||
dispLabel.setFont(MainGUI.ubuntuRegular.deriveFont(20.0F));
|
||||
dispLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
|
||||
dispLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/net/apocalypselabs/symat/splash.gif"))); // NOI18N
|
||||
dispLabel.setText("<html><br><br> Loading...");
|
||||
dispLabel.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
|
||||
jLayeredPane1.setBackground(new java.awt.Color(255, 255, 255));
|
||||
|
||||
dispLabel.setFont(MainGUI.ubuntuRegular.deriveFont(22.0F));
|
||||
dispLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
|
||||
dispLabel.setText("Loading...");
|
||||
dispLabel.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
|
||||
dispLabel.setMaximumSize(new java.awt.Dimension(400, 320));
|
||||
jLayeredPane1.add(dispLabel);
|
||||
dispLabel.setBounds(0, 0, 400, 320);
|
||||
dispLabel.setBounds(250, 250, 350, 80);
|
||||
|
||||
jLabel1.setFont(MainGUI.ubuntuRegular.deriveFont(18.0F));
|
||||
jLabel1.setFont(MainGUI.ubuntuRegular.deriveFont(20.0F));
|
||||
jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
|
||||
jLabel1.setText("<html><b>Version "+MainGUI.VERSION_NAME+"</b>");
|
||||
jLabel1.setVerticalAlignment(javax.swing.SwingConstants.TOP);
|
||||
jLabel1.setText("v. "+MainGUI.VERSION_NAME);
|
||||
jLayeredPane1.add(jLabel1);
|
||||
jLabel1.setBounds(200, 110, 130, 30);
|
||||
jLabel1.setBounds(520, 70, 80, 30);
|
||||
jLayeredPane1.setLayer(jLabel1, javax.swing.JLayeredPane.POPUP_LAYER);
|
||||
|
||||
jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/net/apocalypselabs/symat/images/symat-hex-logo.png"))); // NOI18N
|
||||
jLayeredPane1.add(jLabel2);
|
||||
jLabel2.setBounds(0, 0, 700, 470);
|
||||
|
||||
jLabel3.setFont(MainGUI.ubuntuRegular.deriveFont(12.0F));
|
||||
jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
|
||||
jLabel3.setText("<html><div style=\"text-align: center;\">Apocalypse<br>Laboratories</div>");
|
||||
jLayeredPane1.add(jLabel3);
|
||||
jLabel3.setBounds(50, 420, 120, 40);
|
||||
jLayeredPane1.setLayer(jLabel3, javax.swing.JLayeredPane.POPUP_LAYER);
|
||||
|
||||
jLabel4.setFont(MainGUI.ubuntuRegular.deriveFont(12.0F));
|
||||
jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
|
||||
jLabel4.setText("symatapp.com");
|
||||
jLayeredPane1.add(jLabel4);
|
||||
jLabel4.setBounds(370, 430, 110, 14);
|
||||
jLayeredPane1.setLayer(jLabel4, javax.swing.JLayeredPane.POPUP_LAYER);
|
||||
|
||||
getContentPane().add(jLayeredPane1, java.awt.BorderLayout.CENTER);
|
||||
|
||||
pack();
|
||||
@ -154,10 +175,6 @@ public class SplashScreen extends javax.swing.JFrame {
|
||||
|
||||
setProgress("Checking for updates...");
|
||||
checkUpdates();
|
||||
|
||||
// It will throw errors, but it seems to speed up loading later.
|
||||
setProgress("Loading apps...");
|
||||
try {WebBrowser wb = new WebBrowser();} catch (Exception ex) {}
|
||||
|
||||
setProgress("Loading main interface...");
|
||||
MainGUI main = new MainGUI();
|
||||
@ -206,7 +223,7 @@ public class SplashScreen extends javax.swing.JFrame {
|
||||
SwingUtilities.invokeLater(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
dispLabel.setText("<html><br><br> "+lbl);
|
||||
dispLabel.setText(lbl);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -214,6 +231,9 @@ public class SplashScreen extends javax.swing.JFrame {
|
||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||
private javax.swing.JLabel dispLabel;
|
||||
private javax.swing.JLabel jLabel1;
|
||||
private javax.swing.JLabel jLabel2;
|
||||
private javax.swing.JLabel jLabel3;
|
||||
private javax.swing.JLabel jLabel4;
|
||||
private javax.swing.JLayeredPane jLayeredPane1;
|
||||
// End of variables declaration//GEN-END:variables
|
||||
}
|
||||
|
BIN
src/net/apocalypselabs/symat/images/symat-hex-logo.png
Normal file
BIN
src/net/apocalypselabs/symat/images/symat-hex-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 401 KiB |
Loading…
x
Reference in New Issue
Block a user