Package ve.net.dcs.sc.ui.util

Examples of ve.net.dcs.sc.ui.util.JIntegerField


    pnlWest.add(pnlServer, "width 220, wrap");
    pnlWest.add(lblStatus, "width 220");

    lblPort = new JLabel(SCUILocale.get("ViewServerMode.lblPort"));
    txtPort = new JIntegerField();

    btnStart = new JButton(SCUILocale.get("ViewServerMode.btnStart"));
    btnStop = new JButton(SCUILocale.get("ViewServerMode.btnStop"));

    pnlServer.add(lblPort, "width 50%");
    pnlServer.add(txtPort, "width 50%, wrap 10");
    pnlServer.add(btnStart, "grow, height 30");
    pnlServer.add(btnStop, "grow, height 30");

    // CENTRAL PANEL
    pnlCentral = new JPanel();
    pnlCentral.setLayout(new MigLayout());
    add(pnlCentral, BorderLayout.CENTER);

    pnlScale = new JPanel();
    pnlScale.setLayout(new MigLayout());
    pnlScale.setBorder(BorderFactory.createTitledBorder(SCUILocale.get("ViewServerMode.pnlScale")));

    pnlCentral.add(pnlScale, "width 100%, height 100%");

    lblBaud = new JLabel(SCUILocale.get("ViewServerMode.lblBaud"));
    txtBaud = new JIntegerField();

    lblDataBits = new JLabel(SCUILocale.get("ViewServerMode.lblDataBits"));
    txtDataBits = new JIntegerField();

    lblStopBits = new JLabel(SCUILocale.get("ViewServerMode.lblStopBits"));
    txtStopBits = new JIntegerField();

    lblParity = new JLabel(SCUILocale.get("ViewServerMode.lblParity"));
    txtParity = new JIntegerField();

    lblStartCharacter = new JLabel(SCUILocale.get("ViewServerMode.lblStartCharacter"));
    txtStartCharacter = new JIntegerField();

    lblEndCharacter = new JLabel(SCUILocale.get("ViewServerMode.lblEndCharacter"));
    txtEndCharacter = new JIntegerField();

    lblByteCount = new JLabel(SCUILocale.get("ViewServerMode.lblByteCount"));
    txtByteCount = new JIntegerField();

    lblReadings = new JLabel(SCUILocale.get("ViewServerMode.lblReadings"));
    txtReadings = new JIntegerField();

    lblSerialPort = new JLabel(SCUILocale.get("ViewServerMode.lblSerialPort"));
    cmbModelSerialPort = new DefaultComboBoxModel<String>();
    cmbSerialPort = new JComboBox<String>(cmbModelSerialPort);

    btnReadPort = new JButton(SCUILocale.get("ViewServerMode.btnReadPort"));

    lblStatusValue = new JLabel();
    lblStatusValue.setBorder(BorderFactory.createTitledBorder(BorderFactory.createLineBorder(Color.GRAY), SCUILocale.get("ViewServerMode.lblStatusValue")));
    lblStatusValue.setFont(new Font(lblStatusValue.getFont().getName(), Font.BOLD, 16));
    lblStatusValue.setHorizontalAlignment(SwingConstants.RIGHT);

    lblPortValue = new JLabel();
    lblPortValue.setBorder(BorderFactory.createTitledBorder(BorderFactory.createLineBorder(Color.GRAY), SCUILocale.get("ViewServerMode.lblPortValue")));
    lblPortValue.setFont(new Font(lblPortValue.getFont().getName(), Font.BOLD, 40));
    lblPortValue.setForeground(Color.BLUE);
    lblPortValue.setHorizontalAlignment(SwingConstants.RIGHT);

    lblStartCutPosition = new JLabel(SCUILocale.get("ViewServerMode.lblStartCutPosition"));
    txtStartCutPosition = new JIntegerField();

    lblEndCutPosition = new JLabel(SCUILocale.get("ViewServerMode.lblEndCutPosition"));
    txtEndCutPosition = new JIntegerField();

    lblStabilityIndicatorPosition = new JLabel(SCUILocale.get("ViewServerMode.lblStabilityIndicatorPosition"));
    txtStabilityIndicatorPosition = new JIntegerField();

    lblStabilityIndicator = new JLabel(SCUILocale.get("ViewServerMode.lblStabilityIndicator"));
    txtStabilityIndicator = new JIntegerField();

    lblFloatingPoint = new JLabel(SCUILocale.get("ViewServerMode.lblFloatingPoint"));
    txtFloatingPoint = new JIntegerField();

    pnlScale.add(lblSerialPort, "width 50%");
    pnlScale.add(cmbSerialPort, "width 50%");

    pnlScale.add(lblByteCount, "width 50%");
View Full Code Here


    lblHost = new JLabel(SCUILocale.get("ViewClientMode.lblHost"));
    lblPort = new JLabel(SCUILocale.get("ViewClientMode.lblPort"));
    lblRequestType = new JLabel(SCUILocale.get("ViewClientMode.lblRequestType"));

    txtHost = new JTextField();
    txtPort = new JIntegerField();

    cmbModelRequestType = new DefaultComboBoxModel<RequestType>(RequestType.values());
    cmbRequestType = new JComboBox<RequestType>(cmbModelRequestType);

    lblWebService = new JLabel(SCUILocale.get("ViewClientMode.lblWebService"));
    cbxWebService = new JCheckBox();

    pnlRequest.add(lblRequestType, "width 75");
    pnlRequest.add(cmbRequestType, "width 125, wrap");
    pnlRequest.add(lblHost);
    pnlRequest.add(txtHost, "grow, wrap");
    pnlRequest.add(lblPort);
    pnlRequest.add(txtPort, "grow, wrap");
    pnlRequest.add(lblWebService);
    pnlRequest.add(cbxWebService, "grow, wrap");

    // LATERAL PANEL
    pnlLateral = new JPanel();
    pnlLateral.setLayout(new MigLayout());
    add(pnlLateral, BorderLayout.WEST);

    lblLogo = new JLabel();
    lblLogo.setIcon(SCUIStandard.LOGO);
    lblLogo.setHorizontalAlignment(SwingConstants.CENTER);

    btnSend = new JButton(SCUILocale.get("ViewClientMode.btnSend"));

    pnlLateral.add(lblLogo, "width 220, wrap");
    pnlLateral.add(pnlRequest, "wrap 20");
    pnlLateral.add(btnSend, "grow, height 30");

    // PARAMETERS PANEL
    pnlScaleParameters = new JPanel();
    pnlScaleParameters.setLayout(new MigLayout());
    pnlScaleParameters.setBorder(BorderFactory.createTitledBorder(SCUILocale.get("ViewClientMode.pnlScaleParameters")));

    lblBaud = new JLabel(SCUILocale.get("ViewServerMode.lblBaud"));
    txtBaud = new JIntegerField();

    lblDataBits = new JLabel(SCUILocale.get("ViewServerMode.lblDataBits"));
    txtDataBits = new JIntegerField();

    lblStopBits = new JLabel(SCUILocale.get("ViewServerMode.lblStopBits"));
    txtStopBits = new JIntegerField();

    lblParity = new JLabel(SCUILocale.get("ViewServerMode.lblParity"));
    txtParity = new JIntegerField();

    lblStartCharacter = new JLabel(SCUILocale.get("ViewServerMode.lblStartCharacter"));
    txtStartCharacter = new JIntegerField();

    lblEndCharacter = new JLabel(SCUILocale.get("ViewServerMode.lblEndCharacter"));
    txtEndCharacter = new JIntegerField();

    lblByteCount = new JLabel(SCUILocale.get("ViewServerMode.lblByteCount"));
    txtByteCount = new JIntegerField();

    lblReadings = new JLabel(SCUILocale.get("ViewServerMode.lblReadings"));
    txtReadings = new JIntegerField();

    lblSerialPort = new JLabel(SCUILocale.get("ViewServerMode.lblSerialPort"));
    txtSerialPort = new JTextField();

    lblStartCutPosition = new JLabel(SCUILocale.get("ViewServerMode.lblStartCutPosition"));
    txtStartCutPosition = new JIntegerField();

    lblEndCutPosition = new JLabel(SCUILocale.get("ViewServerMode.lblEndCutPosition"));
    txtEndCutPosition = new JIntegerField();

    lblStabilityIndicatorPosition = new JLabel(SCUILocale.get("ViewServerMode.lblStabilityIndicatorPosition"));
    txtStabilityIndicatorPosition = new JIntegerField();

    lblStabilityIndicator = new JLabel(SCUILocale.get("ViewServerMode.lblStabilityIndicator"));
    txtStabilityIndicator = new JIntegerField();

    lblFloatingPoint = new JLabel(SCUILocale.get("ViewServerMode.lblFloatingPoint"));
    txtFloatingPoint = new JIntegerField();

    pnlScaleParameters.add(lblSerialPort, "width 50%");
    pnlScaleParameters.add(txtSerialPort, "width 50%");

    pnlScaleParameters.add(lblByteCount, "width 50%");
View Full Code Here

TOP

Related Classes of ve.net.dcs.sc.ui.util.JIntegerField

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.