How to change the string style

advertisements

Can we change the String Style in java from normal to bold...

Example: I wish to change the String "Name" from normal Style to bold Style. Any default method included in java?


A string is just the representation of some text. Applying some style information depends on the GUI framework you use: Swing, AWT, JSP, etc...