Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.*;
- import java.awt.event.*;
- import javax.swing.*;
- import com.jgoodies.forms.factories.*;
- import com.jgoodies.forms.layout.*;
- /*
- * Created by JFormDesigner on Mon Sep 05 21:56:28 PDT 2011
- */
- /**
- * @author gamer master
- */
- public class GEFLipper extends JFrame {
- public GEFLipper() {
- initComponents();
- }
- private void button1ActionPerformed(ActionEvent e) {
- // TODO add your code here
- }
- private void initComponents() {
- // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents
- // Generated using JFormDesigner Evaluation license - gamer master
- label1 = new JLabel();
- comboBox1 = new JComboBox();
- button1 = new JButton();
- //======== this ========
- Container contentPane = getContentPane();
- contentPane.setLayout(new FormLayout(
- "4*(default, $lcgap), 47dlu, $lcgap, 14dlu, 3*($lcgap, default), $lcgap, 1dlu, $lcgap, default, $lcgap, 1dlu, $lcgap, 60dlu, $lcgap, 125dlu",
- "3*(default, $lgap), 63dlu, $lgap, 62dlu, 33dlu"));
- //---- label1 ----
- label1.setText("GEFlipper");
- label1.setFont(label1.getFont().deriveFont(label1.getFont().getSize() + 20f));
- contentPane.add(label1, CC.xywh(25, 5, 3, 3));
- //---- comboBox1 ----
- comboBox1.setMaximumRowCount(2);
- comboBox1.setFont(comboBox1.getFont().deriveFont(comboBox1.getFont().getSize() + 5f));
- comboBox1.setModel(new DefaultComboBoxModel(new String[] {
- "buy -5% ands sell regular",
- "buy regular and sell 5%"
- }));
- contentPane.add(comboBox1, CC.xywh(1, 9, 25, 2));
- //---- button1 ----
- button1.setText("START");
- button1.setFont(button1.getFont().deriveFont(button1.getFont().getSize() + 10f));
- button1.addActionListener(new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent e) {
- button1ActionPerformed(e);
- }
- });
- contentPane.add(button1, CC.xywh(27, 9, 1, 2));
- 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 - gamer master
- private JLabel label1;
- private JComboBox comboBox1;
- private JButton button1;
- // JFormDesigner - End of variables declaration //GEN-END:variables
- }
Advertisement
Add Comment
Please, Sign In to add comment