Examples of LComponent


Examples of lev.gui.LComponent

      button.addActionListener(new UpdateHelpActionHandler());
  }

  Font font = title_.getFont().deriveFont(Font.PLAIN, size);

  LComponent using;
  if (checkbox) {
      cbox = new LSpecialCheckBox(title, font, color, this);
      cbox.setOffset(5);
      cbox.tie(setting, save, help, false);
      cbox.setFocusable(false);
      using = cbox;
      add(cbox);
  } else {
      titleLabel = new LLabel(title, font, color);
      using = titleLabel;
      add(titleLabel);
  }

  button.setLocation(using.getWidth() + spacing, using.getHeight() / 2 - button.getHeight() / 2);
  add(button);

  setLocation(location.x - button.getWidth() - using.getWidth() - spacing, location.y);
  setSize(using.getWidth() + button.getWidth() + spacing, using.getHeight());

  if (button.getY() < 0) {
      button.setLocation(button.getX(), 0);
      setSize(getWidth(), button.getHeight());
      using.setLocation(using.getX(), button.getHeight() / 2 - using.getHeight() / 2);
  }
    }
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.