- atpoint.add(hitm = new JMenuItem(host));
- hitm.setForeground(Color.blue);
- hostLabels.addElement(host);
+ if (lasthost==null || !lasthost.equals(host))
+ {
+ atpoint.add(hitm = new JMenuItem(host));
+ hitm.setForeground(Color.blue);
+ lasthost = host;
+ }
+ hostLabels.addElement(host + service.serviceType+service.getActionText() );
+ // hostLabels.addElement(host + (bytype ? service.serviceType+service.getActionText() : ""));