Code example for JLabel

Methods: getTextsetText

0
	public void refreshRRCStatistic(Analysis analysis, NumberFormat nf) {
		if (analysis != null) {
 
			RRCStateMachine rrc = analysis.getRrcStateMachine();
 
			wifiActiveValueLabel.setText(MessageFormat.format(units,
					nf.format(rrc.getWifiActiveEnergy())));
			wifiTailValueLabel.setText(MessageFormat.format(units,
					nf.format(rrc.getWifiTailEnergy())));
			wifiIdleValueLabel.setText(MessageFormat.format(units,
					nf.format(rrc.getWifiIdleEnergy())));
			totalRrcEnergyValueLabel.setText(MessageFormat.format(units,
					nf.format(rrc.getTotalRRCEnergy())));
 
			energyContent.put(rb.getString("rrc.wifiActive"), wifiActiveValueLabel.getText());
			energyContent.put(rb.getString("rrc.WifiTail"), wifiTailValueLabel.getText());
			energyContent.put(rb.getString("rrc.WiFiIdle"), wifiIdleValueLabel.getText());
			energyContent.put(rb.getString("energy.wifiTotal"), totalRrcEnergyValueLabel.getText());
 
		} else { 
Connect your IDE to all the code out there  Get Codota for Java