1  /*
     2   Copyright aswing.org, see the LICENCE.txt.
     3  */
     4  
     5  import org.aswing.Container;
     6  import org.aswing.FlowLayout;
     7  import org.aswing.LayoutManager;
     8  import org.aswing.plaf.PanelUI;
     9  import org.aswing.UIManager;
    10  
    11  /**
    12   * 
    13   * @author iiley
    14   */
    15  class org.aswing.JPanel extends Container{
    16  	
    17  	public function JPanel(layout:LayoutManager){
    18  		super();
    19  		setName("JPanel");
    20  		if(layout == undefined) layout = new FlowLayout();
    21  		this.layout = layout;
    22  		updateUI();
    23  	}
    24  	
    25      public function updateUI():Void{
    26      	setUI(PanelUI(UIManager.getUI(this)));
    27      }
    28      
    29      public function setUI(newUI:PanelUI):Void{
    30      	super.setUI(newUI);
    31      }
    32  	
    33  	public function getUIClassID():String{
    34  		return "PanelUI";
    35  	}	
    36  }
    37