Code example for JLabel

Methods: setVisible

0
	 
	private void hideCallLabels() { 
		lblNewLabel.setVisible(false);
		lblNewLabel_1.setVisible(false);
		lblNewLabel_2.setVisible(false);
		lblNewLabel_3.setVisible(false);
		lblReceived.setVisible(false);
	} 
	 
	private void fireButtonMonitoring() { 
		if(monitoring) {
			btnStartMonitoring.setText("Start monitoring");
			monitoring = false;
			if(callMonitor) gui.fireStopCallMonitoring();
			else gui.fireStopSMSMonitoring();
		} else { 
			colorPane.setText("");
			btnStartMonitoring.setText("Stop monitoring");
			monitoring = true;
			 
Experience pair programming with AI  Get Codota for Java