Revision 7019
trunk/libraries/libUI/src/org/gvsig/gui/beans/controls/comboscale/ComboScale.java | ||
---|---|---|
85 | 85 |
jComboBox.setBackground(java.awt.SystemColor.window); |
86 | 86 |
jComboBox |
87 | 87 |
.setComponentOrientation(java.awt.ComponentOrientation.LEFT_TO_RIGHT); |
88 |
jComboBox.addItemListener(new java.awt.event.ItemListener() { |
|
89 |
public void itemStateChanged(java.awt.event.ItemEvent e) { |
|
90 |
System.out.println("itemStateChanged()"); |
|
91 |
|
|
92 |
} |
|
93 |
}); |
|
94 | 88 |
jComboBox.addActionListener(new java.awt.event.ActionListener() { |
95 | 89 |
public void actionPerformed(java.awt.event.ActionEvent e) { |
96 |
System.out.println("actionPerformed"); |
|
97 | 90 |
if (e.getActionCommand().equals("comboBoxChanged")) { |
98 | 91 |
|
99 | 92 |
// callActionCommandListeners(((Long)jComboBox.getSelectedItem()).longValue()); |
... | ... | |
142 | 135 |
public void setScale(long item) { |
143 | 136 |
bDoCallListeners = false; |
144 | 137 |
getJComboBox().setSelectedItem(new ComboScaleItem(item)); |
145 |
// insertScaleIfNotPresent(item); |
|
146 |
|
|
147 |
|
|
138 |
bDoCallListeners = true; |
|
148 | 139 |
} |
149 | 140 |
|
150 | 141 |
/** |
Also available in: Unified diff