Revision 8647 trunk/extensions/extGraph_predes/src/com/iver/cit/gvsig/graph/gui/RouteControlPanel.java

View differences:

RouteControlPanel.java
43 43
 *
44 44
 * $Id$
45 45
 * $Log$
46
 * Revision 1.19  2006-11-09 11:00:43  jaume
46
 * Revision 1.20  2006-11-09 12:51:12  jaume
47 47
 * *** empty log message ***
48 48
 *
49
 * Revision 1.19  2006/11/09 11:00:43  jaume
50
 * *** empty log message ***
51
 *
49 52
 * Revision 1.18  2006/11/09 10:59:53  jaume
50 53
 * *** empty log message ***
51 54
 *
......
392 395
		borderLayout.setVgap(10);
393 396
		JPanel cont = new JPanel(borderLayout);
394 397
//		cont.setPreferredSize(new Dimension(490, 320));
395
		this.setSize(new Dimension(460, 280));
398
		this.setPreferredSize(new Dimension(460, 280));
396 399
		cont.add(getWestPanel(), BorderLayout.CENTER);
397 400
		cont.add(getEastPanel(), BorderLayout.EAST);
398 401
		cont.add(getSouthPanel(), BorderLayout.SOUTH);
......
430 433
	public WindowInfo getWindowInfo() {
431 434
		if (wi == null) {
432 435
			wi = new WindowInfo(WindowInfo.MODELESSDIALOG
433
					| WindowInfo.RESIZABLE | WindowInfo.MAXIMIZABLE
436
				    | WindowInfo.MAXIMIZABLE
434 437
					| WindowInfo.ICONIFIABLE | WindowInfo.PALETTE);
435
			wi.setWidth(this.getWidth());
436
			wi.setHeight(this.getHeight());
438
			wi.setWidth((int) this.getPreferredSize().getWidth());
439
			wi.setHeight((int) this.getPreferredSize().getHeight());
437 440
			wi.setTitle(PluginServices.getText(this, "route_control_panel"));
438 441
		}
439 442
		return wi;

Also available in: Unified diff