Examples of LButton


Examples of lev.gui.LButton

     */
    public SPMainMenuConfig(LLabel title_, boolean checkbox, Color color, Point location, LSaveFile saveFile, Enum setting) {
  super(title_.getText());
  boolean saveField = saveFile != null && setting != null;

  button = new LButton(buttonText);

  help = SUMGUI.helpPanel;
  if (saveField) {
      save = saveFile;
      saveTie = setting;
View Full Code Here

Examples of lev.gui.LButton

  question.centerIn(settingsPanel, header.getBottom() + 10);
  settingsPanel.add(question);

  last = new Point(last.x, question.getBottom());

  cancelButton = new LButton("Cancel");
  cancelButton.setLocation(15, settingsPanel.getHeight() - cancelButton.getHeight() - 10);
  cancelButton.addActionListener(new ActionListener() {

      @Override
      public void actionPerformed(ActionEvent e) {
    if (testCancel()) {
        int answer = JOptionPane.showConfirmDialog(null, "Are you sure you want to cancel?", "Confirm Cancel",
          JOptionPane.YES_NO_OPTION);
        if (answer == JOptionPane.YES_OPTION) {
      onCancel();
      cancelPanel.open();
        }
    }
      }
  });
  settingsPanel.add(cancelButton);

  backButton = new LButton("Back");
  backButton.setLocation(settingsPanel.getWidth() / 2 - backButton.getWidth() / 2, settingsPanel.getHeight() - backButton.getHeight() - 10);
  backButton.addActionListener(new ActionListener() {

      @Override
      public void actionPerformed(ActionEvent e) {
    if (testBack()) {
        onBack();
        backPanel.open();
    }
      }
  });
  settingsPanel.add(backButton);

  nextButton = new LButton("Next");
  nextButton.setLocation(settingsPanel.getWidth() - nextButton.getWidth() - 15, settingsPanel.getHeight() - cancelButton.getHeight() - 10);
  nextButton.addActionListener(new ActionListener() {

      @Override
      public void actionPerformed(ActionEvent e) {
View Full Code Here

Examples of lev.gui.LButton

  titleLabel.addShadow();
  addPicker = new JComboBox();
  addPicker.setSize(addPicker.getPreferredSize());
  addPicker.setLocation(0, titleLabel.getHeight() + 5);
  add(addPicker);
  add = new LButton("Add FormID  /\\");
  add.setLocation(0, addPicker.getY() + addPicker.getHeight() + 5);
  add.addActionListener(new ActionListener() {

      @Override
      public void actionPerformed(ActionEvent arg0) {
    for (Object o : addPicker.getSelectedObjects()) {
        if (!model.contains(o)) {
      model.addElement((FormID) o);
        }
    }
      }
  });
  add(add);
  remove = new LButton("\\/  Remove FormID");
  remove.setLocation(add.getWidth() + 5, add.getY());
  remove.addActionListener(new ActionListener() {

      @Override
      public void actionPerformed(ActionEvent arg0) {
View Full Code Here

Examples of lev.gui.LButton

  this.titleLabel.addShadow();
  add(this.titleLabel);

  scroll.setLocation(0, this.titleLabel.getY() + this.titleLabel.getHeight() + 10);

  remove = new LButton("Remove Selected");
  remove.addActionListener(new ActionListener() {

      @Override
      public void actionPerformed(ActionEvent e) {
    removeSelected();
View Full Code Here

Examples of lev.gui.LButton

     *
     * @param title
     * @param a
     */
    public void addEnterButton(String title, ActionListener a) {
  accept = new LButton(title);
  accept.addActionListener(a);
  Add(accept);
  remove.setLocation(0, remove.getY());
  setSize(getSize().width, getSize().height);
    }
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.