1  /*
     2   Copyright aswing.org, see the LICENCE.txt.
     3  */
     4   
     5  import org.aswing.border.*;
     6  import org.aswing.*;
     7  import org.aswing.plaf.*;
     8   
     9  /**
    10   * @author iiley
    11   */
    12  class org.aswing.plaf.basic.border.ScrollPaneBorder extends LineBorder implements UIResource{	
    13  	
    14  	private static var instance:Border;
    15  	
    16  	/**
    17  	 * this make shared instance and construct when use.
    18  	 */	
    19  	public static function createInstance():Border{
    20  		if(instance == null){
    21  			var table:UIDefaults = UIManager.getLookAndFeelDefaults();
    22  			var color:ASColor = table.getColor("ScrollPane.darkShadow");
    23  			instance = new ScrollPaneBorder(color);
    24  		}
    25  		return instance;
    26  	}
    27  	
    28  	public function ScrollPaneBorder(color:ASColor){
    29  		super(null, color, 1);
    30  	}
    31  
    32  }
    33