Flow Layout:
import java.applet.*;
import java.awt.*;
/*<applet code="FlowLayoutDemo" width=300 height=300></applet>*/
public class FlowLayoutDemo extends Applet
{
public void init()
{
setLayout(new FlowLayout(FlowLayout.LEFT,5,5));
for(int i=0;i<30;i++)
add(new Button("Button "+i));
}
}
Comments
Post a Comment