/*
  Written by Peter Stuifzand

  This piece of software can be used by anyone.
 */

import javax.swing.*;
import se.datadosen.component.RiverLayout;

public class RiverLayoutSample1 extends JFrame {
    public RiverLayoutSample1() {
        JPanel panel = new JPanel(new RiverLayout());
        panel.add("p left", new JLabel("Please enter a search term: "));
        panel.add("br hfill", new JTextField());
        panel.add("", new JButton("Search"));
        setContentPane(panel);
    }

    public static void main(String[] args) {
        RiverLayoutSample1 sample = new RiverLayoutSample1();
        sample.pack();
        sample.setVisible(true);
        sample.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
}

