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; |
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); |