brandon1000

BasicGui

Aug 2nd, 2012
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. import java.awt.*;
  2. import javax.swing.*;
  3. import com.jgoodies.forms.factories.*;
  4. import com.jgoodies.forms.layout.*;
  5. /*
  6. * Created by JFormDesigner on Thu Aug 02 20:25:06 EDT 2012
  7. */
  8.  
  9.  
  10.  
  11. /**
  12. * @author brandon hamilton
  13. */
  14. public class BasicGui extends JFrame {
  15. public BasicGui() {
  16. initComponents();
  17. }
  18.  
  19. private void initComponents() {
  20. // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents
  21. // Generated using JFormDesigner Evaluation license - brandon hamilton
  22. StartButton = new JButton();
  23.  
  24. //======== this ========
  25. Container contentPane = getContentPane();
  26. contentPane.setLayout(new FormLayout(
  27. "5*(default, $lcgap), default",
  28. "2*(default, $lgap), default"));
  29.  
  30. //---- StartButton ----
  31. StartButton.setText("start");
  32. contentPane.add(StartButton, CC.xy(1, 1));
  33. pack();
  34. setLocationRelativeTo(getOwner());
  35. // JFormDesigner - End of component initialization //GEN-END:initComponents
  36. }
  37.  
  38. // JFormDesigner - Variables declaration - DO NOT MODIFY //GEN-BEGIN:variables
  39. // Generated using JFormDesigner Evaluation license - brandon hamilton
  40. private JButton StartButton;
  41. // JFormDesigner - End of variables declaration //GEN-END:variables
  42. }
Advertisement
Add Comment
Please, Sign In to add comment