Java Programming Source Code
This is very helpful site for Computer programs related workers.
create a simple java applet that shows the use of FlowLayout to arrange the component at the right side of the window
import java.awt.*;
import java.applet.*;
public class Flt extends Applet{
public void init(){
setLayout(new FlowLayout(FlowLayout.RIGHT));
for(int i=1;i<5;i++)
add(new Button(" "+i));
}
}
Newer Post
Older Post
Home