|
@@ -0,0 +1,150 @@
|
|
|
+/*
|
|
|
+ * Copyright (C) 2014 iZc <nplusc.de>
|
|
|
+ *
|
|
|
+ * This program is free software; you can redistribute it and/or
|
|
|
+ * modify it under the terms of the GNU General Public License
|
|
|
+ * as published by the Free Software Foundation; either version 2
|
|
|
+ * of the License, or (at your option) any later version.
|
|
|
+ *
|
|
|
+ * This program is distributed in the hope that it will be useful,
|
|
|
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
+ * GNU General Public License for more details.
|
|
|
+ *
|
|
|
+ * You should have received a copy of the GNU General Public License
|
|
|
+ * along with this program; if not, write to the Free Software
|
|
|
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
+ */
|
|
|
+package de.nplusc.izc.izstreamer;
|
|
|
+
|
|
|
+/**
|
|
|
+ *
|
|
|
+ * @author LH
|
|
|
+ */
|
|
|
+public class AboutScreen extends javax.swing.JDialog
|
|
|
+{
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Creates new form AboutScreen
|
|
|
+ */
|
|
|
+ public AboutScreen(java.awt.Frame parent, boolean modal)
|
|
|
+ {
|
|
|
+ super(parent, modal);
|
|
|
+ initComponents();
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 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()
|
|
|
+ {
|
|
|
+
|
|
|
+ jButton1 = new javax.swing.JButton();
|
|
|
+ jScrollPane1 = new javax.swing.JScrollPane();
|
|
|
+ jTextArea1 = new javax.swing.JTextArea();
|
|
|
+
|
|
|
+ setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
|
|
|
+
|
|
|
+ jButton1.setText("Close");
|
|
|
+
|
|
|
+ jTextArea1.setColumns(20);
|
|
|
+ jTextArea1.setRows(5);
|
|
|
+ jTextArea1.setText("iZstreamer\nThis software uses components of the VLC Media player (videolan.org)\nVLCJ (http://www.capricasoftware.co.uk/projects/vlcj/)\nApache Commons IO & Commons Exec(http://commons.apache.org/)\nSource code of this program can be obtained via anonymous SVN checkout @ repo.nplusc.de\n");
|
|
|
+ jScrollPane1.setViewportView(jTextArea1);
|
|
|
+
|
|
|
+ javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
|
|
|
+ getContentPane().setLayout(layout);
|
|
|
+ layout.setHorizontalGroup(
|
|
|
+ layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
|
+ .addGroup(layout.createSequentialGroup()
|
|
|
+ .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
|
+ .addGroup(layout.createSequentialGroup()
|
|
|
+ .addGap(242, 242, 242)
|
|
|
+ .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE))
|
|
|
+ .addGroup(layout.createSequentialGroup()
|
|
|
+ .addGap(18, 18, 18)
|
|
|
+ .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 547, javax.swing.GroupLayout.PREFERRED_SIZE)))
|
|
|
+ .addContainerGap(20, Short.MAX_VALUE))
|
|
|
+ );
|
|
|
+ layout.setVerticalGroup(
|
|
|
+ layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
|
+ .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
|
|
|
+ .addContainerGap()
|
|
|
+ .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 184, Short.MAX_VALUE)
|
|
|
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
|
+ .addComponent(jButton1)
|
|
|
+ .addContainerGap())
|
|
|
+ );
|
|
|
+
|
|
|
+ pack();
|
|
|
+ }// </editor-fold>//GEN-END:initComponents
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @param args the command line arguments
|
|
|
+ */
|
|
|
+ public static void main(String args[])
|
|
|
+ {
|
|
|
+ /* Set the Nimbus look and feel */
|
|
|
+ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
|
|
|
+ /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
|
|
|
+ * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
|
|
|
+ */
|
|
|
+ try
|
|
|
+ {
|
|
|
+ for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels())
|
|
|
+ {
|
|
|
+ if ("Nimbus".equals(info.getName()))
|
|
|
+ {
|
|
|
+ javax.swing.UIManager.setLookAndFeel(info.getClassName());
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ catch (ClassNotFoundException ex)
|
|
|
+ {
|
|
|
+ java.util.logging.Logger.getLogger(AboutScreen.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
|
|
|
+ }
|
|
|
+ catch (InstantiationException ex)
|
|
|
+ {
|
|
|
+ java.util.logging.Logger.getLogger(AboutScreen.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
|
|
|
+ }
|
|
|
+ catch (IllegalAccessException ex)
|
|
|
+ {
|
|
|
+ java.util.logging.Logger.getLogger(AboutScreen.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
|
|
|
+ }
|
|
|
+ catch (javax.swing.UnsupportedLookAndFeelException ex)
|
|
|
+ {
|
|
|
+ java.util.logging.Logger.getLogger(AboutScreen.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
|
|
|
+ }
|
|
|
+ //</editor-fold>
|
|
|
+
|
|
|
+ /* Create and display the dialog */
|
|
|
+ java.awt.EventQueue.invokeLater(new Runnable()
|
|
|
+ {
|
|
|
+ public void run()
|
|
|
+ {
|
|
|
+ AboutScreen dialog = new AboutScreen(new javax.swing.JFrame(), true);
|
|
|
+ dialog.addWindowListener(new java.awt.event.WindowAdapter()
|
|
|
+ {
|
|
|
+ @Override
|
|
|
+ public void windowClosing(java.awt.event.WindowEvent e)
|
|
|
+ {
|
|
|
+ System.exit(0);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ dialog.setVisible(true);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ // Variables declaration - do not modify//GEN-BEGIN:variables
|
|
|
+ private javax.swing.JButton jButton1;
|
|
|
+ private javax.swing.JScrollPane jScrollPane1;
|
|
|
+ private javax.swing.JTextArea jTextArea1;
|
|
|
+ // End of variables declaration//GEN-END:variables
|
|
|
+}
|