Code example for TitledBorder

Methods: setTitle

0
    	} 
    	return true; 
    } 
	 
	public void setTitle(String title) {
    	titledBorder.setTitle(title);
    } 
	 
	public double getValue() { 
		return Double.parseDouble(tfNumber.getText());
	} 
 
	public void setValue(double value) {
		if(isDecimalAllowed()) { 
			tfNumber.setText(String.valueOf(value));
		} 
		else { 
			tfNumber.setText(String.valueOf( (int) value));
		} 
	} 
Contextual code suggestions in your IDE  Get Codota for Java