Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 14th, 2012  |  syntax: None  |  size: 2.69 KB  |  hits: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. /*
  2.  * To change this template, choose Tools | Templates
  3.  * and open the template in the editor.
  4.  */
  5.  
  6. /*
  7.  * PMDbGUI.java
  8.  *
  9.  * Created on Apr 28, 2011, 9:52:11 PM
  10.  */
  11. package pmdb;
  12.  
  13. /**
  14.  *
  15.  * @author Anden
  16.  */
  17. public class PMDbGUI extends javax.swing.JFrame {
  18.  
  19.     /** Creates new form PMDbGUI */
  20.     public PMDbGUI() {
  21.         initComponents();
  22.     }
  23.  
  24.     /** This method is called from within the constructor to
  25.      * initialize the form.
  26.      * WARNING: Do NOT modify this code. The content of this method is
  27.      * always regenerated by the Form Editor.
  28.      */
  29.     @SuppressWarnings("unchecked")
  30.     // <editor-fold defaultstate="collapsed" desc="Generated Code">
  31.     private void initComponents() {
  32.  
  33.         pathLabel = new javax.swing.JLabel();
  34.         pathTextField = new javax.swing.JTextField();
  35.  
  36.         setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
  37.  
  38.         pathLabel.setText("Path of your movie folder:");
  39.  
  40.         javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
  41.         getContentPane().setLayout(layout);
  42.         layout.setHorizontalGroup(
  43.             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  44.             .addGroup(layout.createSequentialGroup()
  45.                 .addContainerGap()
  46.                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  47.                     .addComponent(pathLabel)
  48.                     .addComponent(pathTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 213, javax.swing.GroupLayout.PREFERRED_SIZE))
  49.                 .addContainerGap(25, Short.MAX_VALUE))
  50.         );
  51.         layout.setVerticalGroup(
  52.             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  53.             .addGroup(layout.createSequentialGroup()
  54.                 .addContainerGap()
  55.                 .addComponent(pathLabel)
  56.                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  57.                 .addComponent(pathTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  58.                 .addContainerGap(19, Short.MAX_VALUE))
  59.         );
  60.  
  61.         pack();
  62.     }// </editor-fold>
  63.  
  64.     /**
  65.      * @param args the command line arguments
  66.      */
  67.     public static void main(String args[]) {
  68.         java.awt.EventQueue.invokeLater(new Runnable() {
  69.  
  70.             public void run() {
  71.                 new PMDbGUI().setVisible(true);
  72.             }
  73.         });
  74.     }
  75.     // Variables declaration - do not modify
  76.     private javax.swing.JLabel pathLabel;
  77.     private javax.swing.JTextField pathTextField;
  78.     // End of variables declaration
  79. }