Revision 33726

View differences:

branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.impl/src/main/java/org/gvsig/installer/swing/impl/execution/panel/SelectPackagesPanel.java
27 27

  
28 28
package org.gvsig.installer.swing.impl.execution.panel;
29 29

  
30
import java.awt.GridBagConstraints;
31
import java.awt.GridBagLayout;
30
import java.awt.BorderLayout;
31
import java.awt.Dimension;
32 32
import java.util.List;
33 33

  
34 34
import javax.swing.JPanel;
......
70 70
    }
71 71

  
72 72
    private void initComponents() {
73
        GridBagConstraints gridBagConstraints;
74 73

  
75 74
        officialTabbedPane = new JTabbedPane();
76 75
        notOfficialPluginsTablePanel = new PackagesTablePanel(this);
77 76
        officialPluginsTablePanel = new PackagesTablePanel(this);
78 77

  
79
        setLayout(new GridBagLayout());
78
        setLayout(new BorderLayout(0, 0));
80 79

  
81 80
        officialTabbedPane.addTab(swingInstallerManager.getText("official"),
82 81
            officialPluginsTablePanel);
83 82
        officialTabbedPane.addTab(
84 83
            swingInstallerManager.getText("not_official"),
85 84
            notOfficialPluginsTablePanel);
85
        officialTabbedPane.setPreferredSize(new Dimension(640, 480));
86 86

  
87
        gridBagConstraints = new GridBagConstraints();
88
        gridBagConstraints.fill = GridBagConstraints.BOTH;
89
        gridBagConstraints.weightx = 1.0;
90
        gridBagConstraints.weighty = 1.0;
91
        add(officialTabbedPane, gridBagConstraints);
87
        add(officialTabbedPane, BorderLayout.CENTER);
92 88
    }
93 89

  
94 90
    public void addInstallersToExecute(List<PackageInfo> installerInfosToInstall) {
branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.impl/src/main/java/org/gvsig/installer/swing/impl/execution/panel/PackagesTablePanel.java
80 80
        tableColumnModel.getColumn(1).setPreferredWidth(150);
81 81
        tableColumnModel.getColumn(2).setPreferredWidth(70);
82 82
        tableColumnModel.getColumn(3).setPreferredWidth(75);
83
        tableColumnModel.getColumn(4).setPreferredWidth(75);
83
        tableColumnModel.getColumn(4).setPreferredWidth(150);
84 84
        tableColumnModel.getColumn(5).setPreferredWidth(50);
85
        tableColumnModel.getColumn(6).setPreferredWidth(50);
86
        tableColumnModel.getColumn(7).setPreferredWidth(50);
87
        tableColumnModel.getColumn(8).setPreferredWidth(50);
85 88
    }
86 89

  
87 90
    public void addPackageInfosToInstall(List<PackageInfo> packageInfosToInstall) {
......
97 100
    private void initComponents() {
98 101
        java.awt.GridBagConstraints gridBagConstraints;
99 102

  
100
        pluginsScrollPane = new JScrollPane();
101 103
        pluginsTable = new JTable();
102
        descriptionScrollPane = new JScrollPane();
104
        pluginsScrollPane = new JScrollPane(pluginsTable);
105

  
103 106
        descriptionTextArea = new JTextArea();
107
        descriptionTextArea.setEditable(false);
108
        descriptionTextArea.setColumns(20);
109
        descriptionTextArea.setRows(5);
104 110

  
111
        descriptionScrollPane = new JScrollPane(descriptionTextArea);
112

  
105 113
        setLayout(new GridBagLayout());
106 114

  
107
        pluginsScrollPane.setViewportView(pluginsTable);
108

  
109 115
        gridBagConstraints = new GridBagConstraints();
110 116
        gridBagConstraints.fill = GridBagConstraints.BOTH;
111 117
        gridBagConstraints.weightx = 1.0;
......
113 119
        gridBagConstraints.insets = new Insets(2, 2, 2, 2);
114 120
        add(pluginsScrollPane, gridBagConstraints);
115 121

  
116
        descriptionTextArea.setEditable(false);
117
        descriptionTextArea.setColumns(20);
118
        descriptionTextArea.setRows(5);
119
        descriptionScrollPane.setViewportView(descriptionTextArea);
120 122

  
121 123
        gridBagConstraints = new GridBagConstraints();
122 124
        gridBagConstraints.gridx = 0;

Also available in: Unified diff