setKey(defaultKey);
panDelegate = new PanSupport(this);
centerDelegate = new CenterSupport(this);
JPanel panel = new JPanel();
GridBagLayout internalGridbag = new GridBagLayout();
GridBagConstraints c2 = new GridBagConstraints();
panel.setLayout(internalGridbag);
// begin top row
String info = i18n.get(NavigatePanel.class,
"panNW.tooltip",
"Pan Northwest");
nwButton = getButton(nwName, info, panNWCmd);
c2.gridx = 0;
c2.gridy = 0;
internalGridbag.setConstraints(nwButton, c2);
panel.add(nwButton);
info = i18n.get(NavigatePanel.class, "panN.tooltip", "Pan North");
nButton = getButton(nName, info, panNCmd);
c2.gridx = 1;
c2.gridy = 0;
internalGridbag.setConstraints(nButton, c2);
panel.add(nButton);
info = i18n.get(NavigatePanel.class, "panNE.tooltip", "Pan Northeast");
neButton = getButton(neName, info, panNECmd);
c2.gridx = 2;
c2.gridy = 0;
internalGridbag.setConstraints(neButton, c2);
panel.add(neButton);
// begin middle row
info = i18n.get(NavigatePanel.class, "panW.tooltip", "Pan West");
wButton = getButton(wName, info, panWCmd);
c2.gridx = 0;
c2.gridy = 1;
internalGridbag.setConstraints(wButton, c2);
panel.add(wButton);
info = i18n.get(NavigatePanel.class,
"center.tooltip",
"Center Map at Starting Coords");
cButton = getButton(cName, info, centerCmd);
c2.gridx = 1;
c2.gridy = 1;
internalGridbag.setConstraints(cButton, c2);
panel.add(cButton);
info = i18n.get(NavigatePanel.class, "panE.tooltip", "Pan East");
eButton = getButton(eName, info, panECmd);
c2.gridx = 2;
c2.gridy = 1;
internalGridbag.setConstraints(eButton, c2);
panel.add(eButton);
// begin bottom row
info = i18n.get(NavigatePanel.class, "panSW.tooltip", "Pan Southwest");
swButton = getButton(swName, info, panSWCmd);
c2.gridx = 0;
c2.gridy = 2;
internalGridbag.setConstraints(swButton, c2);
panel.add(swButton);
info = i18n.get(NavigatePanel.class, "panS.tooltip", "Pan South");
sButton = getButton(sName, info, panSCmd);
c2.gridx = 1;
c2.gridy = 2;
internalGridbag.setConstraints(sButton, c2);
panel.add(sButton);
info = i18n.get(NavigatePanel.class, "panSE.tooltip", "Pan Southeast");
seButton = getButton(seName, info, panSECmd);
c2.gridx = 2;
c2.gridy = 2;
internalGridbag.setConstraints(seButton, c2);
panel.add(seButton);
add(panel);
}