You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
108 lines
4.2 KiB
Java
108 lines
4.2 KiB
Java
9 years ago
|
/*
|
||
|
* Copyright (c) 2015, Netsyms Technologies
|
||
|
* All rights reserved.
|
||
|
*
|
||
|
* Redistribution and use in source and binary forms, with or without
|
||
|
* modification, are permitted provided that the following conditions are met:
|
||
|
*
|
||
|
* * Redistributions of source code must retain the above copyright notice, this
|
||
|
* list of conditions and the following disclaimer.
|
||
|
* * Redistributions in binary form must reproduce the above copyright notice,
|
||
|
* this list of conditions and the following disclaimer in the documentation
|
||
|
* and/or other materials provided with the distribution.
|
||
|
*
|
||
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||
|
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||
|
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||
|
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||
|
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||
|
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||
|
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||
|
* POSSIBILITY OF SUCH DAMAGE.
|
||
|
*/
|
||
|
package com.netsyms.symat.padview;
|
||
|
|
||
|
import static com.netsyms.symat.padview.GUI.logo;
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @author Skylar
|
||
|
*/
|
||
|
public class SplashScreen extends javax.swing.JFrame {
|
||
|
|
||
|
public SplashScreen me;
|
||
|
|
||
|
/**
|
||
|
* Creates new form SplashScreen
|
||
|
*/
|
||
|
public SplashScreen() {
|
||
|
initComponents();
|
||
|
setIconImages(logo);
|
||
|
me = this;
|
||
|
|
||
|
new java.util.Timer().schedule(
|
||
|
new java.util.TimerTask() {
|
||
|
@Override
|
||
|
public void run() {
|
||
|
new GUI().setVisible(true);
|
||
|
me.dispose();
|
||
|
}
|
||
|
},
|
||
|
3000
|
||
|
);
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* This method is called from within the constructor to initialize the form.
|
||
|
* WARNING: Do NOT modify this code. The content of this method is always
|
||
|
* regenerated by the Form Editor.
|
||
|
*/
|
||
|
@SuppressWarnings("unchecked")
|
||
|
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
|
||
|
private void initComponents() {
|
||
|
|
||
|
jLabel3 = new javax.swing.JLabel();
|
||
|
jLabel1 = new javax.swing.JLabel();
|
||
|
jLabel4 = new javax.swing.JLabel();
|
||
|
jLabel2 = new javax.swing.JLabel();
|
||
|
|
||
|
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
|
||
|
setUndecorated(true);
|
||
|
setResizable(false);
|
||
|
getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
|
||
|
|
||
|
jLabel3.setText("Netsyms Technologies");
|
||
|
getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 270, 130, 30));
|
||
|
|
||
|
jLabel1.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N
|
||
|
jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
|
||
|
jLabel1.setText("<html>"
|
||
|
+ GUI.SYMAT
|
||
|
+ " <span style=\"color:#555555;\">"
|
||
|
+ GUI.PRODUCT
|
||
|
+ "</span>"
|
||
|
);
|
||
|
getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 180, 400, -1));
|
||
|
|
||
|
jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
|
||
|
jLabel4.setText("symatapp.com");
|
||
|
getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 270, 110, 30));
|
||
|
|
||
|
jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/netsyms/symat/padview/splash.png"))); // NOI18N
|
||
|
getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));
|
||
|
|
||
|
pack();
|
||
|
setLocationRelativeTo(null);
|
||
|
}// </editor-fold>//GEN-END:initComponents
|
||
|
|
||
|
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||
|
private javax.swing.JLabel jLabel1;
|
||
|
private javax.swing.JLabel jLabel2;
|
||
|
private javax.swing.JLabel jLabel3;
|
||
|
private javax.swing.JLabel jLabel4;
|
||
|
// End of variables declaration//GEN-END:variables
|
||
|
}
|