You are on page 1of 2

1. Visibility type : boolean default : false method : void setVisible ( boolean ) void show ( ) 2.

Size values : width height type : int int default : 0 0 method : void setSize ( int width , int height ) void setSize ( Dimension ) Dimension getSize ( ) 3. Location values type default method Note: void setBounds ( int x , int y , int width , int height ) 4. Resize type : boolean default : true method : void setResizable ( boolean ) 5. Title type : String default : null method : Frame ( String ) void setTitle ( String ) String getTitle ( ) 6. Cursor type : int default : DEFAULT_CURSOR method : void setCursor ( int ) DEFAULT_CURSOR CROSSHAIR_CURSOR TEXT_CURSOR WAIT_CURSOR SW_RESIZE_CURSOR SE_RESIZE_CURSOR NW_RESIZE_CURSOR NE_RESIZE_CURSOR N_RESIZE_CURSOR S_RESIZE_CURSOR W_RESIZE_CURSOR E_RESIZE_CURSOR HAND_CURSOR MOVE_CURSOR 7. Background & Foreground type : Color method : void setBackground ( Color ) void setForeground ( Color ) Color ( int red , int green , int blue ) white WHITE lightGray LIGHT_GRAY gray GRAY darkGray DARK_GRAY : xpos : int : 1 : void ypos int 1 setLocation ( int x , int y )

black pink yellow magenta blue 8. Font

BLACK PINK YELLOW MAGENTA BLUE

red orange green cyan

RED ORANGE GREEN CYAN

type : Font method : void setFont ( Font ) Font ( String fontname , int style ,int size ) style: Font . PLAIN Font . BOLD Font . ITALIC 9. Icon Image type : Image method : void setIconImage ( Image )

You might also like