gamemaste789

GUI

Sep 5th, 2011
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 KB | None | 0 0
  1. import java.awt.*;
  2. import java.awt.event.*;
  3. import javax.swing.*;
  4. import com.jgoodies.forms.factories.*;
  5. import com.jgoodies.forms.layout.*;
  6. /*
  7. * Created by JFormDesigner on Mon Sep 05 21:56:28 PDT 2011
  8. */
  9.  
  10.  
  11.  
  12. /**
  13. * @author gamer master
  14. */
  15. public class GEFLipper extends JFrame {
  16. public GEFLipper() {
  17. initComponents();
  18. }
  19.  
  20. private void button1ActionPerformed(ActionEvent e) {
  21. // TODO add your code here
  22. }
  23.  
  24. private void initComponents() {
  25. // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents
  26. // Generated using JFormDesigner Evaluation license - gamer master
  27. label1 = new JLabel();
  28. comboBox1 = new JComboBox();
  29. button1 = new JButton();
  30.  
  31. //======== this ========
  32. Container contentPane = getContentPane();
  33. contentPane.setLayout(new FormLayout(
  34. "4*(default, $lcgap), 47dlu, $lcgap, 14dlu, 3*($lcgap, default), $lcgap, 1dlu, $lcgap, default, $lcgap, 1dlu, $lcgap, 60dlu, $lcgap, 125dlu",
  35. "3*(default, $lgap), 63dlu, $lgap, 62dlu, 33dlu"));
  36.  
  37. //---- label1 ----
  38. label1.setText("GEFlipper");
  39. label1.setFont(label1.getFont().deriveFont(label1.getFont().getSize() + 20f));
  40. contentPane.add(label1, CC.xywh(25, 5, 3, 3));
  41.  
  42. //---- comboBox1 ----
  43. comboBox1.setMaximumRowCount(2);
  44. comboBox1.setFont(comboBox1.getFont().deriveFont(comboBox1.getFont().getSize() + 5f));
  45. comboBox1.setModel(new DefaultComboBoxModel(new String[] {
  46. "buy -5% ands sell regular",
  47. "buy regular and sell 5%"
  48. }));
  49. contentPane.add(comboBox1, CC.xywh(1, 9, 25, 2));
  50.  
  51. //---- button1 ----
  52. button1.setText("START");
  53. button1.setFont(button1.getFont().deriveFont(button1.getFont().getSize() + 10f));
  54. button1.addActionListener(new ActionListener() {
  55. @Override
  56. public void actionPerformed(ActionEvent e) {
  57. button1ActionPerformed(e);
  58. }
  59. });
  60. contentPane.add(button1, CC.xywh(27, 9, 1, 2));
  61. pack();
  62. setLocationRelativeTo(getOwner());
  63. // JFormDesigner - End of component initialization //GEN-END:initComponents
  64. }
  65.  
  66. // JFormDesigner - Variables declaration - DO NOT MODIFY //GEN-BEGIN:variables
  67. // Generated using JFormDesigner Evaluation license - gamer master
  68. private JLabel label1;
  69. private JComboBox comboBox1;
  70. private JButton button1;
  71. // JFormDesigner - End of variables declaration //GEN-END:variables
  72. }
Advertisement
Add Comment
Please, Sign In to add comment