Package net.sourceforge.processdash.ui.lib

Examples of net.sourceforge.processdash.ui.lib.DecimalField


        g.gridy = 1;
        g.insets = bottom_right_margin;

        NumberFormat nf = NumberFormat.getNumberInstance();
        nf.setMaximumFractionDigits(1);
        fix_time = new DecimalField(0.0, 4, nf);
        setTextFieldMinSize(fix_time);
        fix_time.setToolTipText(resources.getString("Fix_Time_Tooltip"));
        defectTimerButton = new StartStopButtons();
        c = BoxUtils.hbox(fix_time, 1, defectTimerButton.stopButton, 1,
            defectTimerButton.startButton);
        g.fill = GridBagConstraints.VERTICAL;
        g.anchor = GridBagConstraints.NORTHWEST;
        g.gridx = 0;   fixLayout.setConstraints(c, g);
        fixPanel.add(c);
        fix_time.getDocument().addDocumentListener(this);

        nf = NumberFormat.getIntegerInstance();
        fix_count = new DecimalField(1, 4, nf);
        setTextFieldMinSize(fix_count);
        fix_count.setToolTipText(resources.getString("Fix_Count_Tooltip"));
        g.gridx = 1;   fixLayout.setConstraints(fix_count, g);
        fixPanel.add(fix_count);
        fix_count.getDocument().addDocumentListener(this);
View Full Code Here


        showToken = new JCheckBox(getRes("Token"));
        showToken.addActionListener(coord);
        tokenToShow = textField(showToken, coord);
        tokenIsRegexp = new JCheckBox(getRes("Regular_Expression"));

        numTokenDays = new DecimalField(180, 3, NumberFormat
                .getIntegerInstance());
        numTokenDays.setMaximumSize(numTokenDays.getPreferredSize());
        Component tokenDaysLine = null;
        String tokenDaysText = getRes("Token_Limit_Days_FMT");
        int pos = tokenDaysText.indexOf("{0}");
View Full Code Here

            return timeField != null;
        }

        void createEditingControls() {
            // create the text field for directly editing time
            timeField = new DecimalField(0, 4, new TimeNumberFormat());
            timeField.setMinimumSize(timeField.getPreferredSize());
            timeField.setHorizontalAlignment(JTextField.RIGHT);
            timeField.addFocusListener(this);
            timeField.addActionListener(this);
View Full Code Here

TOP

Related Classes of net.sourceforge.processdash.ui.lib.DecimalField

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.