Package net.bnubot.bot.gui.colors

Examples of net.bnubot.bot.gui.colors.ColorScheme


public class ColoredTextArea extends JTextArea {
  private static final long serialVersionUID = 2905756736511967581L;

  public ColoredTextArea() {
    super();
    ColorScheme colors = ColorScheme.getColors();
    setBackground(colors.getBackgroundColor());
    setForeground(colors.getForegroundColor());
    setCaretColor(colors.getForegroundColor());
  }
View Full Code Here


public class ColoredTextField extends JTextField {
  private static final long serialVersionUID = 2905756736511967581L;

  public ColoredTextField() {
    super();
    ColorScheme colors = ColorScheme.getColors();
    setBackground(colors.getBackgroundColor());
    setForeground(colors.getForegroundColor());
    setCaretColor(colors.getForegroundColor());
  }
View Full Code Here

      ctf.requestFocus();
    }};

  public ConfigFlagChecks(int flags) {
    super(BoxLayout.Y_AXIS);
    ColorScheme colors = ColorScheme.getColors();

    for(BNetIcon bni : IconsDotBniReader.getIcons()) {
      int f = bni.getFlags();
      if(f == 0)
        continue;

      JCheckBox cb = new JCheckBox("", false);
      Box b = new Box(BoxLayout.X_AXIS);
      b.add(cb);
      JLabel jl = new JLabel(
          " 0x" + Integer.toHexString(f),
          bni.getIcon(),
          SwingConstants.LEFT);
      jl.setForeground(colors.getUserNameColor(f));
      b.add(jl);
      b.add(Box.createHorizontalGlue());
      add(b);

      cb.addChangeListener(cl);
View Full Code Here

TOP

Related Classes of net.bnubot.bot.gui.colors.ColorScheme

Copyright © 2018 www.massapicom. 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.