ControlPanel (1)

package iat265.lab.w09; import java.awt.BorderLayout; import java.awt.Container; import java.awt.FlowLayout; import javax.swing.JLabel; import javax.swing.JPanel; public class ControlPanel extends JPanel { private JLabel status; private Container bottom; public ControlPanel() { super(); setComponentsAttributes(); setLayout(new BorderLayout()); add(bottom, BorderLayout.SOUTH); } private void setComponentsAttributes() { status = new JLabel("Status..."); bottom = new Container(); bottom.setLayout(new FlowLayout(FlowLayout.LEFT, 12, 5)); bottom.add(status); } }
IAT 265 (Fall 2017)
Lab 09

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.