1 /* 2 Copyright aswing.org, see the LICENCE.txt. 3 */ 4 5 import org.aswing.*; 6 import org.aswing.plaf.*; 7 8 /** 9 * 10 * @author iiley 11 */ 12 class org.aswing.JButton extends AbstractButton{ 13 14 /** 15 * JButton(text:String, icon:Icon)<br> 16 * JButton(text:String)<br> 17 * JButton(icon:Icon) 18 * <p> 19 */ 20 public function JButton(text, icon:Icon){ 21 super(text, icon); 22 setName("JButton"); 23 setModel(new DefaultButtonModel()); 24 updateUI(); 25 } 26 27 public function updateUI():Void{ 28 setUI(ButtonUI(UIManager.getUI(this))); 29 } 30 31 public function getUIClassID():String{ 32 return "ButtonUI"; 33 } 34 } 35