Changeset 26831 in osm for applications
- Timestamp:
- 2011-10-11T17:20:44+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelCol.java
r26830 r26831 46 46 if (button == offButton) { 47 47 if (stackCol.size() != 0) { 48 JRadioButton btnI = stackCol.get(stackIdx); 48 49 dlg.mark.subColour(ent, stackIdx); 49 stackCol.get(stackIdx).removeActionListener(alStack);50 stackColours.remove( stackCol.get(stackIdx));51 stack.remove( stackCol.get(stackIdx));50 btnI.removeActionListener(alStack); 51 stackColours.remove(btnI); 52 stack.remove(btnI); 52 53 stackCol.remove(stackIdx); 53 54 if ((stackCol.size() == stackIdx) && (stackIdx != 0)) … … 58 59 dlg.mark.addColour(ent, stackIdx, col); 59 60 stackCol.add(stackIdx, new JRadioButton(new ImageIcon(getClass().getResource("/images/ColourButton.png")))); 60 stackCol.get(stackIdx).setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 61 stack.add(stackCol.get(stackIdx)); 62 stackColours.add(stackCol.get(stackIdx)); 63 stackCol.get(stackIdx).addActionListener(alStack); 61 JRadioButton btnI = stackCol.get(stackIdx); 62 btnI.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 63 stack.add(btnI); 64 stackColours.add(btnI); 65 btnI.addActionListener(alStack); 64 66 } else { 65 67 dlg.mark.setColour(ent, stackIdx, col);
Note:
See TracChangeset
for help on using the changeset viewer.