Revision 32435 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/PluginsTablePanel.java
PluginsTablePanel.java | ||
---|---|---|
39 | 39 |
import javax.swing.JTextArea; |
40 | 40 |
import javax.swing.event.ListSelectionEvent; |
41 | 41 |
import javax.swing.event.ListSelectionListener; |
42 |
import javax.swing.table.TableColumnModel; |
|
42 | 43 |
|
43 | 44 |
import org.gvsig.installer.lib.api.InstallerInfo; |
44 | 45 |
import org.gvsig.installer.swing.api.SwingInstallerLocator; |
... | ... | |
62 | 63 |
initComponents(); |
63 | 64 |
pluginsTable.getSelectionModel().addListSelectionListener(this); |
64 | 65 |
pluginsTable.setDefaultRenderer(Boolean.class, new PluginsTableCellRenderer()); |
66 |
pluginsTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); |
|
65 | 67 |
} |
66 | 68 |
|
67 | 69 |
public void setTableModel(PluginsTableModel pluginsTableModel){ |
68 |
pluginsTable.setModel(pluginsTableModel); |
|
69 |
} |
|
70 |
pluginsTable.setModel(pluginsTableModel); |
|
71 |
TableColumnModel tableColumnModel = pluginsTable.getColumnModel(); |
|
72 |
tableColumnModel.getColumn(0).setPreferredWidth(25); |
|
73 |
tableColumnModel.getColumn(1).setPreferredWidth(150); |
|
74 |
tableColumnModel.getColumn(2).setPreferredWidth(70); |
|
75 |
tableColumnModel.getColumn(3).setPreferredWidth(75); |
|
76 |
tableColumnModel.getColumn(4).setPreferredWidth(75); |
|
77 |
tableColumnModel.getColumn(5).setPreferredWidth(50); |
|
78 |
} |
|
70 | 79 |
|
80 |
|
|
71 | 81 |
public void addInstallersToExecute(List<InstallerInfo> installerInfosToInstall){ |
72 | 82 |
((PluginsTableModel)pluginsTable.getModel()).addInstallersToExecute(installerInfosToInstall); |
73 | 83 |
} |
Also available in: Unified diff