PS. in case it's easier, here is a skeletal example of how you might do things...
// in your main class, after code for creating map context and adding layer(s) MyFrame frame = new MyFrame("My beautiful map"); frame.setMap(mapContext); SwingUtilities.invokeLater(new Runnable() { public void run() { frame.setVisible(true); } }); // Then a Swing frame class like this (but probably with lots more // gui bells and whistles) class MyFrame extends JFrame { private JMapPane mapPane; public MyFrame(String title) { super(title); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setSize(500, 500); mapPane = new JMapPane(); add(mapPane); } public void setMap(MapContext map) throws IOException { mapPane.setRenderer(new StreamingRenderer()); mapPane.setContext(map); mapPane.setMapArea(map.getLayerBounds()); } } Michael ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Geotools-gt2-users mailing list Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users