Code example for TitledBorder

Methods: setTitle

0
		return true; 
	} 
 
	public synchronized void finishJob() { 
		busy = false;
		border.setTitle("Job progress:");
		progress.setValue(progress.getMaximum());
		progress.setEnabled(false);
		cancelBtn.setEnabled(false);
		repaint();
		window.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
	} 
 
	public synchronized boolean isBusy() { 
		return busy;
	} 
} 
Experience pair programming with AI  Get Codota for Java