/[schmitzm]/branches/2.2.x/src/skrueger/geotools/MapView.java
ViewVC logotype

Diff of /branches/2.2.x/src/skrueger/geotools/MapView.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 416 by alfonx, Thu Sep 24 13:23:08 2009 UTC revision 417 by alfonx, Fri Sep 25 16:34:10 2009 UTC
# Line 37  import javax.swing.JComponent; Line 37  import javax.swing.JComponent;
37  import javax.swing.JPanel;  import javax.swing.JPanel;
38  import javax.swing.JSplitPane;  import javax.swing.JSplitPane;
39    
40    import net.miginfocom.swing.MigLayout;
41    
42  import org.apache.log4j.Logger;  import org.apache.log4j.Logger;
43    
44  import schmitzm.geotools.gui.GeoMapPane;  import schmitzm.geotools.gui.GeoMapPane;
# Line 123  public class MapView extends JPanel { Line 125  public class MapView extends JPanel {
125                   * To the right side we now add a JPanel that consists of a toolbar and                   * To the right side we now add a JPanel that consists of a toolbar and
126                   * a gmp                   * a gmp
127                   */                   */
128                  JPanel newRight = new JPanel(new BorderLayout());                  JPanel newRight = new JPanel(new MigLayout("center, wrap 1","[grow]","[][grow]"));
129                  newRight.add(getToolBar(), BorderLayout.NORTH);                  newRight.add(getToolBar());
130                  newRight.add(getGeoMapPane(), BorderLayout.CENTER);                  newRight.add(getGeoMapPane(),"growx, growy");
131                  getSplitPane().add(newRight);                  getSplitPane().add(newRight);
132    
133                  this.add(getSplitPane(), BorderLayout.CENTER);                  this.add(getSplitPane(), BorderLayout.CENTER);

Legend:
Removed from v.416  
changed lines
  Added in v.417

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26