setLayout (new GridLayout (2,1));
// first row layout
JPanel topPanel = new JPanel();
urlLabel = new JLabel ("URL:");
topPanel.add (urlLabel);
urlField = new JTextField (25);
urlField.addActionListener (this);
topPanel.add (urlField);
loadButton = new JButton ("Load");
loadButton.addActionListener (this);
topPanel.add (loadButton);
fileButton = new JButton ("File");
fileButton.addActionListener (this);
topPanel.add (fileButton);
add (topPanel);
// second row layout
JPanel bottomPanel = new JPanel();
playButton = new JButton ("Play");
playButton.addActionListener (this);
bottomPanel.add (playButton);
stopButton = new JButton ("Stop");
stopButton.addActionListener (this);
bottomPanel.add (stopButton);
loopButton = new JButton ("Loop");
loopButton.addActionListener (this);
bottomPanel.add (loopButton);
add (bottomPanel);