/*
 * PictureChooser_n.java
 *
 * Created on February 2, 2007, 5:01 PM
 */

package usda.weru.erosion.gui;

/**
 *
 * @author  Joseph Levin
 */
public class PictureChooser_n extends javax.swing.JPanel {
    private static final long serialVersionUID = 1L;
    
    /**
     * Creates new form PictureChooser_n
     */
    public PictureChooser_n() {
        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.
     */
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
    private void initComponents() {
        g_scrollPane = new javax.swing.JScrollPane();
        g_buttonPanel = new javax.swing.JPanel();
        g_cancelButton = new javax.swing.JButton();
        g_titleLabel = new javax.swing.JLabel();
        g_descriptionLabel = new javax.swing.JLabel();

        g_scrollPane.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER);
        g_scrollPane.addComponentListener(new java.awt.event.ComponentAdapter() {
            public void componentResized(java.awt.event.ComponentEvent evt) {
                g_scrollPaneComponentResized(evt);
            }
        });

        g_buttonPanel.setLayout(new javax.swing.BoxLayout(g_buttonPanel, javax.swing.BoxLayout.X_AXIS));

        g_buttonPanel.setBackground(new java.awt.Color(255, 255, 255));
        g_buttonPanel.setAutoscrolls(true);
        g_scrollPane.setViewportView(g_buttonPanel);

        g_cancelButton.setText("Cancel");
        g_cancelButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                g_cancelButtonActionPerformed(evt);
            }
        });

        g_titleLabel.setFont(new java.awt.Font("Tahoma", 1, 12));
        g_titleLabel.setText(" ");

        g_descriptionLabel.setFont(new java.awt.Font("Tahoma", 0, 12));
        g_descriptionLabel.setText(" ");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(g_scrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 631, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(g_descriptionLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 560, Short.MAX_VALUE)
                            .addComponent(g_titleLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 560, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(g_cancelButton)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(g_scrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 267, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(g_titleLabel)
                        .addGap(29, 29, 29))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(g_cancelButton)
                            .addComponent(g_descriptionLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addContainerGap())))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void g_cancelButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_g_cancelButtonActionPerformed
        cancelButtonActionPerformed(evt);
    }//GEN-LAST:event_g_cancelButtonActionPerformed


    protected void cancelButtonActionPerformed(java.awt.event.ActionEvent evt) {

    }
    
    private void g_scrollPaneComponentResized(java.awt.event.ComponentEvent evt) {//GEN-FIRST:event_g_scrollPaneComponentResized
        scrollPaneComponentResized(evt);
    }//GEN-LAST:event_g_scrollPaneComponentResized
    
    protected void scrollPaneComponentResized(java.awt.event.ComponentEvent evt) {

    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    protected javax.swing.JPanel g_buttonPanel;
    protected javax.swing.JButton g_cancelButton;
    protected javax.swing.JLabel g_descriptionLabel;
    protected javax.swing.JScrollPane g_scrollPane;
    protected javax.swing.JLabel g_titleLabel;
    // End of variables declaration//GEN-END:variables
    
}
