001 // License: GPL. For details, see LICENSE file. 002 package org.openstreetmap.josm.gui.preferences.projection; 003 004 import static org.openstreetmap.josm.tools.I18n.tr; 005 006 import java.awt.GridBagLayout; 007 import java.awt.event.ActionListener; 008 009 import javax.swing.Box; 010 import javax.swing.JPanel; 011 012 import org.openstreetmap.josm.gui.widgets.HtmlPanel; 013 import org.openstreetmap.josm.tools.GBC; 014 015 public class SwissGridProjectionChoice extends SingleProjectionChoice { 016 017 public SwissGridProjectionChoice() { 018 super(tr("Swiss Grid (Switzerland)"), "core:swissgrid", "EPSG:21781"); 019 } 020 021 @Override 022 public JPanel getPreferencePanel(ActionListener listener) { 023 JPanel p = new JPanel(new GridBagLayout()); 024 p.add(new HtmlPanel(tr("<i>CH1903 / LV03 (without local corrections)</i>")), GBC.eol().fill(GBC.HORIZONTAL)); 025 p.add(Box.createVerticalGlue(), GBC.eol().fill(GBC.BOTH)); 026 return p; 027 } 028 }