001    /*
002     * ImagePicker.java
003     *
004     * Created on July 21, 2006, 1:42 AM
005     */
006    
007    package org.jdesktop.swingx.editors;
008    
009    /**
010     *
011     * @author  joshy
012     */
013    public class ImagePicker extends javax.swing.JPanel {
014        
015        /** Creates new form ImagePicker */
016        public ImagePicker() {
017            initComponents();
018        }
019        
020        /** This method is called from within the constructor to
021         * initialize the form.
022         * WARNING: Do NOT modify this code. The content of this method is
023         * always regenerated by the Form Editor.
024         */
025        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
026        private void initComponents() {
027            java.awt.GridBagConstraints gridBagConstraints;
028    
029            imageView = new org.jdesktop.swingx.JXImageView();
030            jButton1 = new javax.swing.JButton();
031    
032            setLayout(new java.awt.GridBagLayout());
033    
034            imageView.setLayout(new java.awt.GridBagLayout());
035    
036            gridBagConstraints = new java.awt.GridBagConstraints();
037            gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
038            gridBagConstraints.weightx = 10.0;
039            gridBagConstraints.weighty = 10.0;
040            add(imageView, gridBagConstraints);
041    
042            jButton1.setAction(imageView.getOpenAction());
043            gridBagConstraints = new java.awt.GridBagConstraints();
044            gridBagConstraints.gridx = 0;
045            gridBagConstraints.gridy = 1;
046            gridBagConstraints.anchor = java.awt.GridBagConstraints.SOUTHWEST;
047            add(jButton1, gridBagConstraints);
048    
049        }// </editor-fold>//GEN-END:initComponents
050        
051        
052        // Variables declaration - do not modify//GEN-BEGIN:variables
053        public org.jdesktop.swingx.JXImageView imageView;
054        private javax.swing.JButton jButton1;
055        // End of variables declaration//GEN-END:variables
056        
057    }