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);
AltosSites sites;
JLabel site_list_label;
JComboBox site_list;
-
+
JToggleButton load_button;
boolean loading;
JButton close_button;
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;