Changeset 6124 in josm for trunk/src/org


Ignore:
Timestamp:
2013-08-09T12:39:02+02:00 (11 years ago)
Author:
bastiK
Message:

see #6963 - new unintrusive notification messages

Location:
trunk/src/org/openstreetmap/josm
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/CreateCircleAction.java

    r6106 r6124  
    2424import org.openstreetmap.josm.data.osm.OsmPrimitive;
    2525import org.openstreetmap.josm.data.osm.Way;
     26import org.openstreetmap.josm.gui.Notification;
    2627import org.openstreetmap.josm.tools.Shortcut;
    2728
     
    263264
    264265        } else {
    265             JOptionPane.showMessageDialog(
    266                     Main.parent,
    267                     tr("Please select exactly two or three nodes or one way with exactly two or three nodes."),
    268                     tr("Information"),
    269                     JOptionPane.INFORMATION_MESSAGE
    270             );
     266            Notification note = new Notification();
     267            note.setContent(tr("Please select exactly two or three nodes or one way with exactly two or three nodes."));
     268            note.setIcon(JOptionPane.INFORMATION_MESSAGE);
     269            note.show();
    271270            return;
    272271        }
Note: See TracChangeset for help on using the changeset viewer.