Package xnap.gui

Examples of xnap.gui.ValidatedTextField


  jtHost = new JTextField(server.getHost(), 20);
  GridBagHelper.add(jp, jtHost);

  // port
  GridBagHelper.addLabel(jp, Plugin.tr("Port"));
  jtPort = new ValidatedTextField
      (server.getPort() + "", 5, ValidatedTextField.NUMBERS_INT);
  GridBagHelper.add(jp, jtPort, false);
 
  // network
  GridBagHelper.addLabel(jp, Plugin.tr("Network"));
  jtNetwork = new ValidatedTextField(server.getNetwork(), 20,
             StringHelper.REGULAR_STRING);
  GridBagHelper.add(jp, jtNetwork);


  // type
View Full Code Here


        GridBagHelper.addLabel(this, "Host");
        jteGiftHost = new JTextField(prefs.getGiftHost(), 30);
        GridBagHelper.add(this, jteGiftHost, false)

        GridBagHelper.addLabel(this, "Port");
        jteGiftPort = new ValidatedTextField(prefs.getGiftPort() + "",
             5,ValidatedTextField.NUMBERS_INT);
        GridBagHelper.add(this, jteGiftPort, false);

  GridBagHelper.addVerticalSpacer(this);
    }
View Full Code Here

TOP

Related Classes of xnap.gui.ValidatedTextField

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.