Code example for JLabel

Methods: getTextsetText

0
			RRCStateMachine rrc = analysis.getRrcStateMachine();
 
			dchValueLabel.setText(MessageFormat.format(units, nf.format(rrc.getDchEnergy())));
			fachValueLabel.setText(MessageFormat.format(units, nf.format(rrc.getFachEnergy())));
			idleValueLabel.setText(MessageFormat.format(units, nf.format(rrc.getIdleEnergy())));
			idle2dchValueLabel.setText(MessageFormat.format(units,
					nf.format(rrc.getIdleToDchEnergy())));
			fach2dchValueLabel.setText(MessageFormat.format(units,
					nf.format(rrc.getFachToDchEnergy())));
			dchTailValueLabel
					.setText(MessageFormat.format(units, nf.format(rrc.getDchTailEnergy())));
			fachTailValueLabel.setText(MessageFormat.format(units,
					nf.format(rrc.getFachTailEnergy())));
			rrcTotalValueLabel.setText(MessageFormat.format(units,
					nf.format(rrc.getTotalRRCEnergy())));
			jpkbValueLabel.setText(nf.format(rrc.getJoulesPerKilobyte()));
 
			energyContent.put(rb.getString("energy.dch"), dchValueLabel.getText());
			energyContent.put(rb.getString("energy.fach"), fachValueLabel.getText());
			energyContent.put(rb.getString("energy.idle"), idleValueLabel.getText());
			energyContent.put(rb.getString("energy.idle2dch"), idle2dchValueLabel.getText());
			energyContent.put(rb.getString("energy.fach2dch"), fach2dchValueLabel.getText());
			energyContent.put(rb.getString("energy.dchTail"), dchTailValueLabel.getText());
			energyContent.put(rb.getString("energy.fachTail"), fachTailValueLabel.getText());
			energyContent.put(rb.getString("energy.rrcTotal"), rrcTotalValueLabel.getText());
			energyContent.put(rb.getString("energy.jpkb"), jpkbValueLabel.getText());