Examples of addButton()


Examples of com.jgoodies.forms.builder.ButtonBarBuilder2.addButton()

    mConfigBtn = new JButton(mLocalizer.msg("config", "Configure view"));
    mConfigBtn.setIcon(TVBrowserIcons.preferences(TVBrowserIcons.SIZE_SMALL));

    ButtonBarBuilder2 buttonBuilder = new ButtonBarBuilder2();

    buttonBuilder.addButton(mConfigBtn);
    mConfigBtn.setVisible(showSettings);

    if (pluginsSize == null) {
      mActionsPane.setPreferredSize(new Dimension(250, 500));
    } else {
View Full Code Here

Examples of com.jgoodies.forms.builder.ButtonBarBuilder2.addButton()

          }
        }
      });

      buttonBuilder.addUnrelatedGap();
      buttonBuilder.addButton(functions);
      mMainPanel.add(scrollPane, BorderLayout.CENTER);
    }

    // buttons
    JPanel buttonPn = new JPanel(new BorderLayout(0, 5));
View Full Code Here

Examples of com.jgoodies.forms.builder.ButtonBarBuilder2.addButton()

        exit();
      }
    });

    buttonBuilder.addGlue();
    buttonBuilder.addButton(mCloseBtn);

    buttonPn.add(buttonBuilder.getPanel(), BorderLayout.SOUTH);

    /*
     * The action for the search button in the function panel.
View Full Code Here

Examples of com.jgoodies.forms.builder.ButtonBarBuilder2.addButton()

      nextpanel.add(mNextBtn, cc.xy(3,1));
      panel.add(nextpanel, cc.xy(2, 1));
    }
   
    ButtonBarBuilder2 builder = new ButtonBarBuilder2();
    builder.addButton(mDoneBtn);
    builder.addRelatedGap();
    builder.addFixed(mCancelBtn);
    panel.add(builder.getPanel(), cc.xy(4, 1));
   
    for (int btn : btns) {
View Full Code Here

Examples of com.jgoodies.forms.builder.ButtonBarBuilder2.addButton()

        resetToDefaults();
      }

    });
   
    builder.addButton(defaultButton);
    builder.addRelatedGap();
    builder.addGlue();

    mOKBt = new JButton(Localizer.getLocalization(Localizer.I18N_OK));
    mOKBt.addActionListener(this);
View Full Code Here

Examples of com.jgoodies.forms.builder.ButtonBarBuilder2.addButton()

    getRootPane().setDefaultButton(mOKBt);
   
    mCloseBt = new JButton(Localizer.getLocalization(Localizer.I18N_CANCEL));
    mCloseBt.addActionListener(this);

    builder.addButton(new JButton[] { mOKBt, mCloseBt });

    panel.add(builder.getPanel(), cc.xyw(1, 5, 3));

    pack();
View Full Code Here

Examples of com.jgoodies.forms.builder.ButtonBarBuilder2.addButton()

        cancelPressed();
      }
    });

    ButtonBarBuilder2 bar = new ButtonBarBuilder2();
    bar.addButton(new JButton[] {ok, cancel});

    JPanel panel = new JPanel(new FlowLayout(FlowLayout.RIGHT, 0, 0));
    panel.add(bar.getPanel());
    content.add(panel, cc.xyw(1,9,3));
View Full Code Here

Examples of com.jgoodies.forms.builder.ButtonBarBuilder2.addButton()

        cancelPressed();
      }
    });

    ButtonBarBuilder2 bar = new ButtonBarBuilder2();
    bar.addButton(new JButton[] {ok, cancel});

    JPanel panel = new JPanel(new FlowLayout(FlowLayout.RIGHT, 0, 0));
    panel.add(bar.getPanel());
    content.add(panel, cc.xyw(1,5,3));
  
View Full Code Here

Examples of com.jgoodies.forms.builder.ButtonBarBuilder2.addButton()

      public void actionPerformed(ActionEvent e) {
        close();
      }
    });

    builder.addButton(new JButton[] {mOkButton, cancel});

    content.add(builder.getPanel(), cc.xyw(1, 19, 5));

    mOkButton.setEnabled(false);
View Full Code Here

Examples of com.jgoodies.forms.builder.ButtonBarBuilder2.addButton()

      }
    });

    ButtonBarBuilder2 builder = new ButtonBarBuilder2();
    builder.addGlue();
    builder.addButton(new JButton[] {okBt, cancelBt});
   
    layout.appendRow(RowSpec.decode("pref"));
    contentPane.add(builder.getPanel(), cc.xy(1,pos));
   
    pack();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.