blob: 2e20d8abdedbee244bfb7c73c3a68b3c73d15d54 [file] [log] [blame]
/*
* AboutJVSD.java
*
* Created on Dec 16, 2010, 3:35:39 PM
*/
package com.pivotal.jvsd;
/**
*
* @author Vince Ford
*/
public class AboutJVSD extends javax.swing.JDialog {
/**
* Creates new form AboutJVSD
*/
public AboutJVSD(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() {
OKButton = new javax.swing.JButton();
AboutLabel = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
setLocationByPlatform(true);
setModal(true);
setUndecorated(true);
OKButton.setText("OK");
OKButton.setSelected(true);
OKButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
OKButtonActionPerformed(evt);
}
});
AboutLabel.setText("<html> <body> <b>JVSD</b><br> Version 0.01<br><br> This tool is provided as-is with no support or warranty. Use at your own risk.<br><br> If you encounter issues or want to request features - please send email to:<br><br> vincef@vmware.com </body> </html> ");
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap(313, Short.MAX_VALUE)
.addComponent(OKButton, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
.addGroup(layout.createSequentialGroup()
.addGap(48, 48, 48)
.addComponent(AboutLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 310, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(42, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addGap(20, 20, 20)
.addComponent(AboutLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 213, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 28, Short.MAX_VALUE)
.addComponent(OKButton)
.addContainerGap())
);
pack();
}// </editor-fold>//GEN-END:initComponents
private void OKButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_OKButtonActionPerformed
if (evt.getSource() == OKButton) {
setVisible(false);
this.dispose();
}
}//GEN-LAST:event_OKButtonActionPerformed
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
AboutJVSD dialog = new AboutJVSD(new javax.swing.JFrame(), true);
dialog.addWindowListener(new java.awt.event.WindowAdapter() {
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.JLabel AboutLabel;
private javax.swing.JButton OKButton;
// End of variables declaration//GEN-END:variables
}