Statistics
| Revision:

root / org.gvsig.projection.jcrs / trunk / org.gvsig.projection.jcrs / org.gvsig.projection.app.jcrs / org.gvsig.projection.app.jcrs.common / src / main / java / org / gvsig / crs / preferences / JCRSPreferencesPanel.java @ 249

History | View | Annotate | Download (3.46 KB)

1
/*
2
 * To change this license header, choose License Headers in Project Properties.
3
 * To change this template file, choose Tools | Templates
4
 * and open the template in the editor.
5
 */
6

    
7
package org.gvsig.crs.preferences;
8

    
9
import java.awt.Dimension;
10
import java.awt.GridBagConstraints;
11
import java.awt.GridBagLayout;
12
import javax.swing.AbstractListModel;
13
import javax.swing.Box;
14
import javax.swing.JCheckBox;
15
import javax.swing.JLabel;
16
import javax.swing.JList;
17
import javax.swing.JScrollPane;
18
import org.jdesktop.layout.GroupLayout;
19

    
20
/**
21
 *
22
 * @author usuario
23
 */
24
public class JCRSPreferencesPanel extends javax.swing.JPanel {
25

    
26
    /**
27
     * Creates new form JCRSPreferencesPanel
28
     */
29
    public JCRSPreferencesPanel() {
30
        initComponents();
31
    }
32

    
33
    /**
34
     * This method is called from within the constructor to
35
     * initialize the form.
36
     * WARNING: Do NOT modify this code. The content of this method is
37
     * always regenerated by the Form Editor.
38
     */
39
    @SuppressWarnings("unchecked")
40
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
41
    private void initComponents() {
42
        GridBagConstraints gridBagConstraints;
43

    
44
        lblHeader = new JLabel();
45
        jScrollPane1 = new JScrollPane();
46
        lstBBDD = new JList();
47
        filler1 = new Box.Filler(new Dimension(16, 16), new Dimension(16, 16), new Dimension(16, 16));
48
        filler2 = new Box.Filler(new Dimension(16, 16), new Dimension(16, 16), new Dimension(16, 16));
49
        chkUseMomoryChacheForCRSs = new JCheckBox();
50

    
51
        GridBagLayout layout = new GridBagLayout();
52
        layout.columnWidths = new int[] {0, 4, 0, 4, 0};
53
        layout.rowHeights = new int[] {0, 4, 0, 4, 0, 4, 0, 4, 0};
54
        setLayout(layout);
55

    
56
        lblHeader.setText("<html> Seleccione la base de datos EPSG a utilizar </html>"); // NOI18N
57
        gridBagConstraints = new GridBagConstraints();
58
        gridBagConstraints.gridx = 2;
59
        gridBagConstraints.gridy = 2;
60
        gridBagConstraints.anchor = GridBagConstraints.LINE_START;
61
        add(lblHeader, gridBagConstraints);
62

    
63
        jScrollPane1.setViewportView(lstBBDD);
64

    
65
        gridBagConstraints = new GridBagConstraints();
66
        gridBagConstraints.gridx = 2;
67
        gridBagConstraints.gridy = 4;
68
        gridBagConstraints.fill = GridBagConstraints.BOTH;
69
        gridBagConstraints.weightx = 0.1;
70
        gridBagConstraints.weighty = 0.2;
71
        add(jScrollPane1, gridBagConstraints);
72
        gridBagConstraints = new GridBagConstraints();
73
        gridBagConstraints.gridx = 0;
74
        gridBagConstraints.gridy = 6;
75
        add(filler1, gridBagConstraints);
76
        gridBagConstraints = new GridBagConstraints();
77
        gridBagConstraints.gridx = 4;
78
        gridBagConstraints.gridy = 6;
79
        add(filler2, gridBagConstraints);
80

    
81
        chkUseMomoryChacheForCRSs.setText("Usar cache para los CRSs");
82
        gridBagConstraints = new GridBagConstraints();
83
        gridBagConstraints.gridx = 2;
84
        gridBagConstraints.gridy = 6;
85
        gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
86
        add(chkUseMomoryChacheForCRSs, gridBagConstraints);
87
    }// </editor-fold>//GEN-END:initComponents
88

    
89

    
90
    // Variables declaration - do not modify//GEN-BEGIN:variables
91
    protected JCheckBox chkUseMomoryChacheForCRSs;
92
    protected Box.Filler filler1;
93
    protected Box.Filler filler2;
94
    protected JScrollPane jScrollPane1;
95
    protected JLabel lblHeader;
96
    protected JList lstBBDD;
97
    // End of variables declaration//GEN-END:variables
98
}