Ignore:
Timestamp:
2011-10-11T17:20:44+02:00 (13 years ago)
Author:
malcolmh
Message:

save

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelCol.java

    r26830 r26831  
    4646                                                        if (button == offButton) {
    4747                                                                if (stackCol.size() != 0) {
     48                                                                        JRadioButton btnI = stackCol.get(stackIdx);
    4849                                                                        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);
    5253                                                                        stackCol.remove(stackIdx);
    5354                                                                        if ((stackCol.size() == stackIdx) && (stackIdx != 0))
     
    5859                                                                dlg.mark.addColour(ent, stackIdx, col);
    5960                                                                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);
    6466                                                        } else {
    6567                                                                dlg.mark.setColour(ent, stackIdx, col);
Note: See TracChangeset for help on using the changeset viewer.