Ignore:
Timestamp:
2011-08-25T16:24:48+02:00 (13 years ago)
Author:
malcolmh
Message:

save

Location:
applications/editors/josm/plugins/smed/plugs/oseam/src
Files:
4 added
5 deleted
7 edited

Legend:

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

    r26561 r26572  
    2727                                shp = dlg.mark.getShape();
    2828                        if (portButton.isSelected()) {
    29                                 dlg.mark.setCategory(Cat.LAT_PORT);
     29                                dlg.mark.setCategory(Cat.LAM_PORT);
    3030                                if (panelPort.shapes.containsKey(shp)) {
    3131                                        panelPort.shapes.get(shp).doClick();
     
    5050                        }
    5151                        if (prefPortButton.isSelected()) {
    52                                 dlg.mark.setCategory(Cat.LAT_PREF_PORT);
     52                                dlg.mark.setCategory(Cat.LAM_PPORT);
    5353                                if (panelPort.shapes.containsKey(shp)) {
    5454                                        panelPort.shapes.get(shp).doClick();
     
    7272                        }
    7373                        if (stbdButton.isSelected()) {
    74                                 dlg.mark.setCategory(Cat.LAT_STBD);
     74                                dlg.mark.setCategory(Cat.LAM_STBD);
    7575                                if (panelStbd.shapes.containsKey(shp)) {
    7676                                        panelStbd.shapes.get(shp).doClick();
     
    9595                        }
    9696                        if (prefStbdButton.isSelected()) {
    97                                 dlg.mark.setCategory(Cat.LAT_PREF_STBD);
     97                                dlg.mark.setCategory(Cat.LAM_PSTBD);
    9898                                if (panelStbd.shapes.containsKey(shp)) {
    9999                                        panelStbd.shapes.get(shp).doClick();
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelHaz.java

    r26561 r26572  
    2525                                shp = dlg.mark.getShape();
    2626                        if (northButton.isSelected()) {
    27                                 dlg.mark.setCategory(Cat.CARD_NORTH);
     27                                dlg.mark.setCategory(Cat.CAM_NORTH);
    2828                                dlg.mark.setColour(Ent.BODY, Col.BLACK);
    2929                                dlg.mark.addColour(Ent.BODY, Col.YELLOW);
     
    3636                        }
    3737                        if (southButton.isSelected()) {
    38                                 dlg.mark.setCategory(Cat.CARD_SOUTH);
     38                                dlg.mark.setCategory(Cat.CAM_SOUTH);
    3939                                dlg.mark.setColour(Ent.BODY, Col.YELLOW);
    4040                                dlg.mark.addColour(Ent.BODY, Col.BLACK);
     
    4747                        }
    4848                        if (eastButton.isSelected()) {
    49                                 dlg.mark.setCategory(Cat.CARD_EAST);
     49                                dlg.mark.setCategory(Cat.CAM_EAST);
    5050                                dlg.mark.setColour(Ent.BODY, Col.BLACK);
    5151                                dlg.mark.addColour(Ent.BODY, Col.YELLOW);
     
    5959                        }
    6060                        if (westButton.isSelected()) {
    61                                 dlg.mark.setCategory(Cat.CARD_WEST);
     61                                dlg.mark.setCategory(Cat.CAM_WEST);
    6262                                dlg.mark.setColour(Ent.BODY, Col.YELLOW);
    6363                                dlg.mark.addColour(Ent.BODY, Col.BLACK);
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelLights.java

    r26569 r26572  
    3838        public JRadioButton trafficButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/TrafficButton.png")));
    3939        public JRadioButton warningButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/WarningButton.png")));
    40         private EnumMap<Obj, JRadioButton> objects = new EnumMap<Obj, JRadioButton>(Obj.class);
     40        public EnumMap<Obj, JRadioButton> objects = new EnumMap<Obj, JRadioButton>(Obj.class);
    4141        private ActionListener alObj = new ActionListener() {
    4242                public void actionPerformed(java.awt.event.ActionEvent e) {
     
    4949                                        button.setBorderPainted(false);
    5050                        }
     51                        if (trafficButton.isSelected()) {
     52                                categoryLabel.setVisible(true);
     53                                trafficCatBox.setVisible(true);
     54                                warningCatBox.setVisible(false);
     55                        } else if (warningButton.isSelected()) {
     56                                categoryLabel.setVisible(true);
     57                                warningCatBox.setVisible(true);
     58                                trafficCatBox.setVisible(false);
     59                        } else {
     60                                categoryLabel.setVisible(false);
     61                                trafficCatBox.setVisible(false);
     62                                warningCatBox.setVisible(false);
     63                        }
     64                        if (dlg.mark != null)
     65                                dlg.mark.paintSign();
    5166                }
    5267        };
     
    6378                this.add(getObjButton(warningButton, 90, 35, 34, 32, "SSWarning", Obj.SISTAW), null);
    6479
    65                 categoryLabel = new JLabel(Messages.getString("Category"), SwingConstants.CENTER);
     80                categoryLabel = new JLabel(Messages.getString("SSCategory"), SwingConstants.CENTER);
    6681                categoryLabel.setBounds(new Rectangle(20, 80, 140, 20));
    6782                this.add(categoryLabel, null);
     83                categoryLabel.setVisible(false);
    6884               
    6985                trafficCatBox = new JComboBox();
    70                 trafficCatBox.setBounds(new Rectangle(20, 110, 140, 20));
     86                trafficCatBox.setBounds(new Rectangle(20, 100, 140, 20));
    7187                this.add(trafficCatBox, null);
    7288                trafficCatBox.addActionListener(alTrafficCatBox);
    7389                trafficCatBox.addItem(Messages.getString("NoneSpecified"));
     90                trafficCatBox.addItem(Messages.getString("Lock"));
     91                trafficCatBox.setVisible(false);
    7492
    7593                warningCatBox = new JComboBox();
    76                 warningCatBox.setBounds(new Rectangle(20, 110, 140, 20));
    77 //              this.add(warningCatBox, null);
     94                warningCatBox.setBounds(new Rectangle(20, 100, 140, 20));
     95                this.add(warningCatBox, null);
    7896                warningCatBox.addActionListener(alWarningCatBox);
    7997                warningCatBox.addItem(Messages.getString("NoneSpecified"));
     98                warningCatBox.addItem(Messages.getString("Storm"));
     99                warningCatBox.setVisible(false);
    80100
    81101        }
    82102
    83103        public void clearSelections() {
    84 
     104                objButtons.clearSelection();
     105                alObj.actionPerformed(null);
    85106        }
    86107
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelMain.java

    r26562 r26572  
    156156                                }
    157157                                if (lightsButton.isSelected()) {
    158                                         litButton.setEnabled(true);
    159                                         litButton.doClick();
     158                                        if (dlg.mark != null) {
     159                                                if (dlg.mark.getObject() == Obj.UNKNOWN) {
     160                                                        panelLights.clearSelections();
     161                                                } else {
     162                                                        panelLights.objects.get(dlg.mark.getObject()).doClick();
     163                                                }
     164                                        }
    160165                                        lightsButton.setBorderPainted(true);
    161166                                        panelLights.setVisible(true);
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelPort.java

    r26561 r26572  
    2323                                dlg.mark.setColour(Ent.BODY, Col.RED);
    2424                                dlg.mark.setPattern(Ent.BODY, Pat.NONE);
    25                                 if (dlg.mark.getCategory() == Cat.LAT_PREF_PORT) {
     25                                if (dlg.mark.getCategory() == Cat.LAM_PPORT) {
    2626                                        dlg.mark.addColour(Ent.BODY, Col.GREEN);
    2727                                        dlg.mark.addColour(Ent.BODY, Col.RED);
     
    3636                                dlg.mark.setColour(Ent.BODY, Col.GREEN);
    3737                                dlg.mark.setPattern(Ent.BODY, Pat.NONE);
    38                                 if (dlg.mark.getCategory() == Cat.LAT_PREF_PORT) {
     38                                if (dlg.mark.getCategory() == Cat.LAM_PPORT) {
    3939                                        dlg.mark.addColour(Ent.BODY, Col.RED);
    4040                                        dlg.mark.addColour(Ent.BODY, Col.GREEN);
     
    4747                        if (regionCButton.isSelected()) {
    4848                                dlg.mark.setRegion(Reg.C);
    49                                 if (dlg.mark.getCategory() == Cat.LAT_PREF_PORT) {
     49                                if (dlg.mark.getCategory() == Cat.LAM_PPORT) {
    5050                                        dlg.mark.setColour(Ent.BODY, Col.RED);
    5151                                        dlg.mark.addColour(Ent.BODY, Col.GREEN);
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelStbd.java

    r26561 r26572  
    2323                                dlg.mark.setColour(Ent.BODY, Col.GREEN);
    2424                                dlg.mark.setPattern(Ent.BODY, Pat.NONE);
    25                                 if (dlg.mark.getCategory() == Cat.LAT_PREF_STBD) {
     25                                if (dlg.mark.getCategory() == Cat.LAM_PSTBD) {
    2626                                        dlg.mark.addColour(Ent.BODY, Col.RED);
    2727                                        dlg.mark.addColour(Ent.BODY, Col.GREEN);
     
    3636                                dlg.mark.setColour(Ent.BODY, Col.RED);
    3737                                dlg.mark.setPattern(Ent.BODY, Pat.NONE);
    38                                 if (dlg.mark.getCategory() == Cat.LAT_PREF_STBD) {
     38                                if (dlg.mark.getCategory() == Cat.LAM_PSTBD) {
    3939                                        dlg.mark.addColour(Ent.BODY, Col.GREEN);
    4040                                        dlg.mark.addColour(Ent.BODY, Col.RED);
     
    4747                        if (regionCButton.isSelected()) {
    4848                                dlg.mark.setRegion(Reg.C);
    49                                 if (dlg.mark.getCategory() == Cat.LAT_PREF_STBD) {
     49                                if (dlg.mark.getCategory() == Cat.LAM_PSTBD) {
    5050                                        dlg.mark.setColour(Ent.BODY, Col.RED);
    5151                                        dlg.mark.addColour(Ent.BODY, Col.GREEN);
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/seamarks/SeaMark.java

    r26568 r26572  
    4747
    4848        public enum Obj {
    49                 UNKNOWN, BCNCAR, BCNISD, BCNLAT, BCNSAW, BCNSPP, BOYCAR, BOYISD, BOYLAT, BOYSAW, BOYSPP, FLTCAR, FLTISD, FLTLAT, FLTSAW, FLTSPP,
    50                 LITMAJ, LITMIN, LITFLT, LITVES, LNDMRK, MORFAC, SISTAW, SISTAT
     49                UNKNOWN, BCNCAR, BCNISD, BCNLAT, BCNSAW, BCNSPP, BOYCAR, BOYISD, BOYLAT, BOYSAW, BOYSPP, FLTCAR, FLTISD, FLTLAT, FLTSAW, FLTSPP, LITMAJ, LITMIN, LITFLT, LITVES, LNDMRK, MORFAC, SISTAW, SISTAT
    5150        }
    5251
     
    141140
    142141        public enum Cat {
    143                 UNKNOWN, LAT_PORT, LAT_STBD, LAT_PREF_PORT, LAT_PREF_STBD, CARD_NORTH, CARD_EAST, CARD_SOUTH, CARD_WEST, MOORING_BUOY
     142                UNKNOWN, LAM_PORT, LAM_STBD, LAM_PPORT, LAM_PSTBD, CAM_NORTH, CAM_EAST, CAM_SOUTH, CAM_WEST, ACH_URST, ACH_DEEP, ACH_TANK, ACH_EXPL, ACH_QUAR, ACH_SPLN, ACH_SCAN, ACH_SCMO, ACH_T24H, ACH_TLIM, SPM_CHBF, SPM_YCHT, MOR_DLPN, MOR_DDPN, MOR_BLRD, MOR_WALL, MOR_POST, MOR_CHWR, MOR_BUOY, SIS_DOCK, SIS_LOCK, SIS_STRM, SIS_TIDE, LIT_DIRF, LIT_LEDG
    144143        }
    145144
    146145        public static final EnumMap<Cat, String> CatSTR = new EnumMap<Cat, String>(Cat.class);
    147146        static {
    148                 CatSTR.put(Cat.LAT_PORT, "port");
    149                 CatSTR.put(Cat.LAT_STBD, "starboard");
    150                 CatSTR.put(Cat.LAT_PREF_PORT, "preferred_channel_port");
    151                 CatSTR.put(Cat.LAT_PREF_STBD, "preferred_channel_starboard");
    152                 CatSTR.put(Cat.CARD_NORTH, "north");
    153                 CatSTR.put(Cat.CARD_EAST, "east");
    154                 CatSTR.put(Cat.CARD_SOUTH, "south");
    155                 CatSTR.put(Cat.CARD_WEST, "west");
    156                 CatSTR.put(Cat.MOORING_BUOY, "mooring_buoy");
     147                CatSTR.put(Cat.LAM_PORT, "port");
     148                CatSTR.put(Cat.LAM_STBD, "starboard");
     149                CatSTR.put(Cat.LAM_PPORT, "preferred_channel_port");
     150                CatSTR.put(Cat.LAM_PSTBD, "preferred_channel_starboard");
     151                CatSTR.put(Cat.CAM_NORTH, "north");
     152                CatSTR.put(Cat.CAM_EAST, "east");
     153                CatSTR.put(Cat.CAM_SOUTH, "south");
     154                CatSTR.put(Cat.CAM_WEST, "west");
     155                CatSTR.put(Cat.MOR_BUOY, "buoy");
    157156        }
    158157
     
    201200
    202201        public enum Col {
    203                 UNKNOWN, WHITE, RED, ORANGE, AMBER, YELLOW, GREEN, BLUE, VIOLET, BLACK,
     202                UNKNOWN, WHITE, RED, ORANGE, AMBER, YELLOW, GREEN, BLUE, VIOLET, BLACK, GREY, BROWN, MAGENTA, PINK
    204203        }
    205204
     
    215214                ColSTR.put(Col.VIOLET, "violet");
    216215                ColSTR.put(Col.BLACK, "black");
     216                ColSTR.put(Col.GREY, "grey");
     217                ColSTR.put(Col.BROWN, "brown");
     218                ColSTR.put(Col.MAGENTA, "magenta");
     219                ColSTR.put(Col.PINK, "pink");
    217220        }
    218221
     
    643646                        } else if (GrpMAP.get(object) == Grp.LAT) {
    644647                                switch (getCategory()) {
    645                                 case LAT_PORT:
     648                                case LAM_PORT:
    646649                                        if (getColour(Ent.BODY, 0) == Col.RED) {
    647650                                                if (getColour(Ent.BODY, 1) == Col.WHITE)
     
    653656                                                setRegion(Reg.B);
    654657                                        break;
    655                                 case LAT_PREF_PORT:
     658                                case LAM_PPORT:
    656659                                        if (getColour(Ent.BODY, 0) == Col.RED) {
    657660                                                if (getColour(Ent.BODY, 3) == Col.GREEN)
     
    663666                                                setRegion(Reg.B);
    664667                                        break;
    665                                 case LAT_STBD:
     668                                case LAM_STBD:
    666669                                        if (getColour(Ent.BODY, 0) == Col.GREEN) {
    667670                                                if (getColour(Ent.BODY, 1) == Col.WHITE)
     
    673676                                                setRegion(Reg.B);
    674677                                        break;
    675                                 case LAT_PREF_STBD:
     678                                case LAM_PSTBD:
    676679                                        if (getColour(Ent.BODY, 0) == Col.GREEN)
    677680                                                setRegion(Reg.A);
     
    694697                        dlg.panelMain.chanButton.doClick();
    695698                        switch (getCategory()) {
    696                         case LAT_PORT:
     699                        case LAM_PORT:
    697700                                dlg.panelMain.panelChan.portButton.doClick();
    698701                                break;
    699                         case LAT_STBD:
     702                        case LAM_STBD:
    700703                                dlg.panelMain.panelChan.stbdButton.doClick();
    701704                                break;
    702                         case LAT_PREF_PORT:
     705                        case LAM_PPORT:
    703706                                dlg.panelMain.panelChan.prefPortButton.doClick();
    704707                                break;
    705                         case LAT_PREF_STBD:
     708                        case LAM_PSTBD:
    706709                                dlg.panelMain.panelChan.prefStbdButton.doClick();
    707710                                break;
     
    715718                        dlg.panelMain.hazButton.doClick();
    716719                        switch (getCategory()) {
    717                         case CARD_NORTH:
     720                        case CAM_NORTH:
    718721                                dlg.panelMain.panelHaz.northButton.doClick();
    719722                                break;
    720                         case CARD_SOUTH:
     723                        case CAM_SOUTH:
    721724                                dlg.panelMain.panelHaz.southButton.doClick();
    722725                                break;
    723                         case CARD_EAST:
     726                        case CAM_EAST:
    724727                                dlg.panelMain.panelHaz.eastButton.doClick();
    725728                                break;
    726                         case CARD_WEST:
     729                        case CAM_WEST:
    727730                                dlg.panelMain.panelHaz.westButton.doClick();
    728731                                break;
     
    737740                        break;
    738741                case LIT:
     742                case SIS:
    739743                        dlg.panelMain.lightsButton.doClick();
    740744                        break;
     
    810814                                }
    811815                                break;
     816                                default:
     817                                        dlg.panelMain.lightsButton.doClick();
    812818                        }
    813819                        break;
     
    825831                dlg.panelMain.topIcon.setIcon(null);
    826832                dlg.panelMain.radarIcon.setIcon(null);
    827 dlg.panelMain.radarIcon.setIcon(new ImageIcon(getClass().getResource("/images/Radar_Station.png")));
    828833                dlg.panelMain.fogIcon.setIcon(null);
    829834
    830835                String imgStr = "/images/";
    831                 switch (getShape()) {
    832                 case TOWER:
    833                         imgStr += "Tower";
    834                         break;
    835                 case BUOY:
    836                 case PILLAR:
    837                         imgStr += "Pillar";
    838                         break;
    839                 case SPAR:
    840                         imgStr += "Spar";
    841                         break;
    842                 case CAN:
    843                         imgStr += "Can";
    844                         break;
    845                 case CONE:
    846                         imgStr += "Cone";
    847                         break;
    848                 case SPHERE:
    849                         imgStr += "Sphere";
    850                         break;
    851                 case BARREL:
    852                         imgStr += "Barrel";
    853                         break;
    854                 case CAIRN:
    855                         imgStr += "Cairn";
    856                         break;
    857                 case FLOAT:
    858                         imgStr += "Float";
    859                         break;
    860                 case BEACON:
    861                 case PILE:
    862                 case LATTICE:
    863                 case BUOYANT:
    864                         imgStr += "Beacon";
    865                         break;
    866                 case SUPER:
    867                         imgStr += "Float_Major";
    868                         break;
    869                 case STAKE:
    870                 case POLE:
    871                 case POST:
    872                         imgStr += "Stake";
    873                         break;
    874                 }
    875                 String colStr = imgStr;
    876                 for (Col col : bodyColour) {
    877                         switch (col) {
    878                         case WHITE:
    879                                 colStr += "_White";
    880                                 break;
    881                         case RED:
    882                                 colStr += "_Red";
    883                                 break;
    884                         case ORANGE:
    885                                 colStr += "_Orange";
    886                                 break;
    887                         case AMBER:
    888                                 colStr += "_Amber";
    889                                 break;
    890                         case YELLOW:
    891                                 colStr += "_Yellow";
    892                                 break;
    893                         case GREEN:
    894                                 colStr += "_Green";
    895                                 break;
    896                         case BLUE:
    897                                 colStr += "_Blue";
    898                                 break;
    899                         case VIOLET:
    900                                 colStr += "_Violet";
    901                                 break;
    902                         case BLACK:
    903                                 colStr += "_Black";
    904                                 break;
    905                         }
    906                 }
    907                 if (getShape() == Shp.PERCH) {
    908                         if (getCategory() == Cat.LAT_PORT) {
    909                                 colStr = "/images/Perch_Port";
     836                if (getShape() != Shp.UNKNOWN) {
     837                        switch (getShape()) {
     838                        case TOWER:
     839                                imgStr += "Tower";
     840                                break;
     841                        case BUOY:
     842                        case PILLAR:
     843                                imgStr += "Pillar";
     844                                break;
     845                        case SPAR:
     846                                imgStr += "Spar";
     847                                break;
     848                        case CAN:
     849                                imgStr += "Can";
     850                                break;
     851                        case CONE:
     852                                imgStr += "Cone";
     853                                break;
     854                        case SPHERE:
     855                                imgStr += "Sphere";
     856                                break;
     857                        case BARREL:
     858                                imgStr += "Barrel";
     859                                break;
     860                        case CAIRN:
     861                                imgStr += "Cairn";
     862                                break;
     863                        case FLOAT:
     864                                imgStr += "Float";
     865                                break;
     866                        case BEACON:
     867                        case PILE:
     868                        case LATTICE:
     869                        case BUOYANT:
     870                                imgStr += "Beacon";
     871                                break;
     872                        case SUPER:
     873                                imgStr += "Super";
     874                                break;
     875                        case STAKE:
     876                        case POLE:
     877                        case POST:
     878                                imgStr += "Stake";
     879                                break;
     880                        }
     881                        String colStr = imgStr;
     882                        for (Col col : bodyColour) {
     883                                switch (col) {
     884                                case WHITE:
     885                                        colStr += "_White";
     886                                        break;
     887                                case RED:
     888                                        colStr += "_Red";
     889                                        break;
     890                                case ORANGE:
     891                                        colStr += "_Orange";
     892                                        break;
     893                                case AMBER:
     894                                        colStr += "_Amber";
     895                                        break;
     896                                case YELLOW:
     897                                        colStr += "_Yellow";
     898                                        break;
     899                                case GREEN:
     900                                        colStr += "_Green";
     901                                        break;
     902                                case BLUE:
     903                                        colStr += "_Blue";
     904                                        break;
     905                                case VIOLET:
     906                                        colStr += "_Violet";
     907                                        break;
     908                                case BLACK:
     909                                        colStr += "_Black";
     910                                        break;
     911                                }
     912                        }
     913                        if (getShape() == Shp.PERCH) {
     914                                if (getCategory() == Cat.LAM_PORT) {
     915                                        colStr = "/images/Perch_Port";
     916                                } else {
     917                                        colStr = "/images/Perch_Starboard";
     918                                }
     919                        }
     920                        if (!imgStr.equals("/images/")) {
     921                                colStr += ".png";
     922                                if (getClass().getResource(colStr) == null) {
     923                                        System.out.println("Missing image: " + colStr);
     924                                        imgStr += ".png";
     925                                        if (getClass().getResource(imgStr) == null) {
     926                                                System.out.println("Missing image: " + imgStr);
     927                                                return;
     928                                        } else {
     929                                                dlg.panelMain.shapeIcon.setIcon(new ImageIcon(getClass().getResource(imgStr)));
     930                                        }
     931                                } else {
     932                                        dlg.panelMain.shapeIcon.setIcon(new ImageIcon(getClass().getResource(colStr)));
     933                                }
    910934                        } else {
    911                                 colStr = "/images/Perch_Starboard";
    912                         }
    913                 }
    914                 if (!imgStr.equals("/images/")) {
    915                         colStr += ".png";
    916                         if (getClass().getResource(colStr) == null) {
    917                                 System.out.println("Missing image: " + colStr);
     935                                dlg.panelMain.shapeIcon.setIcon(null);
     936                        }
     937                } else if (getObject() != Obj.UNKNOWN) {
     938                        switch (getObject()) {
     939                        case LNDMRK:
     940                                imgStr += "Light_House";
     941                                break;
     942                        case LITMAJ:
     943                                imgStr += "Light_Major";
     944                                break;
     945                        case LITMIN:
     946                                imgStr += "Light_Minor";
     947                                break;
     948                        case LITFLT:
     949                                imgStr += "Float";
     950                                break;
     951                        case LITVES:
     952                                imgStr += "Super";
     953                                break;
     954                        case SISTAW:
     955                                imgStr += "Signal_Station";
     956                                break;
     957                        case SISTAT:
     958                                imgStr += "Signal_Station";
     959                                break;
     960                        }
     961                        if (!imgStr.equals("/images/")) {
    918962                                imgStr += ".png";
    919963                                if (getClass().getResource(imgStr) == null) {
     
    924968                                }
    925969                        } else {
    926                                 dlg.panelMain.shapeIcon.setIcon(new ImageIcon(getClass().getResource(colStr)));
    927                         }
    928                 } else {
    929                         dlg.panelMain.shapeIcon.setIcon(null);
     970                                dlg.panelMain.shapeIcon.setIcon(null);
     971                        }
    930972                }
    931973        }
Note: See TracChangeset for help on using the changeset viewer.