1 /* 2 * $Id: SPanel.java,v 1.5 2005/01/28 13:39:33 blueshift Exp $ 3 * Copyright 2000,2005 wingS development team. 4 * 5 * This file is part of wingS (http://www.j-wings.org). 6 * 7 * wingS is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU Lesser General Public License 9 * as published by the Free Software Foundation; either version 2.1 10 * of the License, or (at your option) any later version. 11 * 12 * Please see COPYING for the complete licence. 13 */ 14 package org.wings; 15 16 import org.wings.plaf.PanelCG; 17 18 /** 19 * An SPanel is basically a container that can be displayed with 20 * its own CG. The components in the container are placed with a 21 * Layout Manager. 22 * 23 * @author <a HREF="mailto:haaf@mercatis.de">Armin Haaf</a> 24 * @version $Revision: 1.5 $ 25 */ 26 public class SPanel 27 extends SContainer { 28 29 public SPanel() { 30 //setPreferredSize(new SDimension(SDimension.FULL_SIZE, SDimension.AUTO)); 31 // Nope -- Panels should expand to 100% where possible, but block only the minimum dimension! 32 } 33 34 public SPanel(SLayoutManager l) { 35 super(l); 36 //setPreferredSize(new SDimension(SDimension.FULL_SIZE, SDimension.AUTO)); 37 } 38 39 public void setCG(PanelCG cg) { 40 super.setCG(cg); 41 } 42 } 43 44 45