X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=altosui%2FAltosSiteMapPreload.java;h=66399557e6813289da168fd511bcc711a84e442f;hb=95f5a6ef52947088993d395874cf6aa502fd2503;hp=35f730e3a0821f1497098bf9d43a7b57dad26368;hpb=382c54a0d052c8975b57c995ef83bc8934bde242;p=fw%2Faltos diff --git a/altosui/AltosSiteMapPreload.java b/altosui/AltosSiteMapPreload.java index 35f730e3..66399557 100644 --- a/altosui/AltosSiteMapPreload.java +++ b/altosui/AltosSiteMapPreload.java @@ -26,6 +26,7 @@ import java.text.*; import java.lang.Math; import java.net.URL; import java.net.URLConnection; +import org.altusmetrum.altosuilib_1.*; class AltosMapPos extends Box { AltosUI owner; @@ -176,7 +177,7 @@ class AltosSites extends Thread { public void run() { try { URLConnection uc = url.openConnection(); - int length = uc.getContentLength(); + //int length = uc.getContentLength(); InputStreamReader in_stream = new InputStreamReader(uc.getInputStream(), Altos.unicode_set); BufferedReader in = new BufferedReader(in_stream); @@ -205,14 +206,14 @@ class AltosSites extends Thread { } } -public class AltosSiteMapPreload extends AltosDialog implements ActionListener, ItemListener { +public class AltosSiteMapPreload extends AltosUIDialog implements ActionListener, ItemListener { AltosUI owner; AltosSiteMap map; 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); @@ -325,7 +326,7 @@ public class AltosSiteMapPreload extends AltosDialog implements ActionListener, pane.setLayout(new GridBagLayout()); - map = new AltosSiteMap(4); + map = new AltosSiteMap(radius); c.fill = GridBagConstraints.BOTH; c.anchor = GridBagConstraints.CENTER; @@ -463,4 +464,4 @@ public class AltosSiteMapPreload extends AltosDialog implements ActionListener, setLocationRelativeTo(owner); setVisible(true); } -} \ No newline at end of file +}