How to change button background in applets
change button background in applets:
/* Change Button Background Color Example This java example shows how to change button background color using AWT Button class. */ import java.applet.Applet; import java.awt.Button; import java.awt.Color; /* <applet code="ChangeButtonBackgroundExample" width=200 height=200> </applet> */ public class ChangeButtonBackgroundExample extends Applet{ public void init(){ //create buttons Button button1 = new Button("Button 1"); Button button2 = new Button("Button 2"); /* * To change background color of a button use * setBackground(Color c) method. */ button1.setBackground(Color.red); button2.setBackground(Color.green); //add buttons add(button1); add(button2); } }
Output:
jianbin1205
ReplyDeletecheap uggs
north face outlet online
coach outlet online
uggs outlet
snapback hats
true religion outlet,true religion jeans,true religion kids,true religion jeans sale,true religion jeans for men,true religion jacket,true religion sale
cheap oakley sunglasses
moncler coats
ugg boots on sale
cyber monday
kobe bryants shoes 2015
polo ralph lauren uk
moncler outlet
lululemon outlet
prada outlet
chanel handbags
ugg uk outlet
toms outlet
canada goose outlet
the north face jackets
new england patriots
chicago blackhawks
michael kors outlet sale
new york giants
air force one shoes
nike air max 90
ugg boots
air jordan 11 free shipping
michael kors handbags
nike trainers uk
air jordan shoes
kansas city chiefs
chicago bulls
birkin bag
ReplyDeletestephen curry shoes
hermes
vapormax
cheap jordans
golden goose
lebron 17 shoes
balenciaga shoes
nike sneakers for men
golden goose sneakers
you can try these out Valentino Dolabuy click this link now basics visit this website read this
ReplyDelete