Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.*;
- import javax.swing.*;
- import com.jgoodies.forms.factories.*;
- import com.jgoodies.forms.layout.*;
- /*
- * Created by JFormDesigner on Thu Aug 02 20:25:06 EDT 2012
- */
- /**
- * @author brandon hamilton
- */
- public class BasicGui extends JFrame {
- public BasicGui() {
- initComponents();
- }
- private void initComponents() {
- // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents
- // Generated using JFormDesigner Evaluation license - brandon hamilton
- StartButton = new JButton();
- //======== this ========
- Container contentPane = getContentPane();
- contentPane.setLayout(new FormLayout(
- "5*(default, $lcgap), default",
- "2*(default, $lgap), default"));
- //---- StartButton ----
- StartButton.setText("start");
- contentPane.add(StartButton, CC.xy(1, 1));
- pack();
- setLocationRelativeTo(getOwner());
- // JFormDesigner - End of component initialization //GEN-END:initComponents
- }
- // JFormDesigner - Variables declaration - DO NOT MODIFY //GEN-BEGIN:variables
- // Generated using JFormDesigner Evaluation license - brandon hamilton
- private JButton StartButton;
- // JFormDesigner - End of variables declaration //GEN-END:variables
- }
Advertisement
Add Comment
Please, Sign In to add comment