public void deleteLocation() {
    World<T> world = parentFrame.getWorld();
    Location loc = display.getCurrentLocation();
    if (loc != null) {
        world.remove(loc);
        parentFrame.repaint();
    }
}