Java Code

import javax.swing.*;
import java.awt.*;
public class FlowLeft extends JApplet
{
    JButton one, two, three;
    JTextArea ta1, ta2;

    public void init( )
    {
		setLayout( new FlowLayout( FlowLayout.LEFT ) );
		one = new JButton( "one" );
		two = new JButton( "two" );
		three = new JButton( "three" );
		ta1 = new JTextArea( 4,10 );
		ta2 = new JTextArea( 3,5 );
		add( one );
		add( ta1 );
		add( two );
		add( three );
		add( ta2 );
    }
}

Back to Code Examples
©2006- by E.S.Boese. All Rights Reserved