What sort of GUI are you using (eg Swing)? What sort of context/class is your map represented (eg Image)?