try {
URLConnection uc = url.openConnection();
//int length = uc.getContentLength();
-
+
InputStreamReader in_stream = new InputStreamReader(uc.getInputStream(), Altos.unicode_set);
BufferedReader in = new BufferedReader(in_stream);
AltosMapPos lat;
AltosMapPos lon;
- final static int radius = 4;
+ final static int radius = 5;
final static int width = (radius * 2 + 1);
final static int height = (radius * 2 + 1);
AltosSites sites;
JLabel site_list_label;
JComboBox site_list;
-
+
JToggleButton load_button;
boolean loading;
JButton close_button;
pane.setLayout(new GridBagLayout());
- map = new AltosSiteMap(4);
+ map = new AltosSiteMap(radius);
c.fill = GridBagConstraints.BOTH;
c.anchor = GridBagConstraints.CENTER;
pbar.setValue(0);
pbar.setString("");
pbar.setStringPainted(true);
-
+
c.fill = GridBagConstraints.HORIZONTAL;
c.anchor = GridBagConstraints.CENTER;
c.insets = i;
c.gridwidth = 1;
pane.add(site_list_label, c);
-
+
site_list = new JComboBox(new String[] { "Site List" });
site_list.addItemListener(this);
c.gridwidth = 1;
pane.add(site_list, c);
-
+
lat = new AltosMapPos(owner,
"Latitude:",
lat_hemi_names,
c.anchor = GridBagConstraints.CENTER;
pane.add(lat, c);
-
+
lon = new AltosMapPos(owner,
"Longitude:",
lon_hemi_names,
load_button = new JToggleButton("Load Map");
load_button.addActionListener(this);
load_button.setActionCommand("load");
-
+
c.fill = GridBagConstraints.NONE;
c.anchor = GridBagConstraints.CENTER;
c.insets = i;
close_button = new JButton("Close");
close_button.addActionListener(this);
close_button.setActionCommand("close");
-
+
c.fill = GridBagConstraints.NONE;
c.anchor = GridBagConstraints.CENTER;
c.insets = i;
setLocationRelativeTo(owner);
setVisible(true);
}
-}
\ No newline at end of file
+}