Example #1
0
        public static DecimalFormat createLocalizedDecimalFormat()
        {
            DecimalFormat decimalFormat1 = (DecimalFormat)DecimalFormat.getInstance(s_defaultLanguage).clone();

            decimalFormat1.applyPattern(CurrentPattern);
            return(decimalFormat1);
        }
Example #2
0
        public static DecimalFormat createLocalizedDecimalFormat(string paramString)
        {
            DecimalFormat decimalFormat1 = (DecimalFormat)DecimalFormat.getInstance(s_defaultLanguage).clone();

            decimalFormat1.applyPattern(paramString);
            return(decimalFormat1);
        }
Example #3
0
        private void loadUI()
        {
            JPanel jPanel = new JPanel();
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final java.text.DecimalFormat decimalFormat = (java.text.DecimalFormat)java.text.DecimalFormat.getInstance(java.util.Locale.ENGLISH).clone();
            DecimalFormat decimalFormat = (DecimalFormat)DecimalFormat.getInstance(Locale.ENGLISH).clone();

            decimalFormat.applyPattern("0");
            this.o_progressBar = new JProgressBar(0, this.o_totalTimes);
            this.o_progressBar.StringPainted = true;
            this.o_descriptionLabel          = new JLabel();
            this.o_progressBar.addChangeListener(new ChangeListenerAnonymousInnerClass(this, decimalFormat));
            jPanel.Border = BorderFactory.createEmptyBorder(10, 0, 0, 0);
            jPanel.Layout = new BoxLayout(jPanel, 1);
            jPanel.add(this.o_descriptionLabel);
            jPanel.add(Box.createVerticalStrut(5));
            jPanel.add(this.o_progressBar);
            jPanel.add(Box.createVerticalStrut(5));
            this.o_mainPanel.Border = BorderFactory.createEmptyBorder(8, 8, 8, 8);
            this.o_mainPanel.add(jPanel, "Center");
        }