package bold;
public class bold {
private static String BOLD;
public static void main(String[] args) {
System.out.println("\n" +BOLD+ "Hello World!");
}
}
// is there a way to make this bold or do i need a function, thanks
Bold Lettershow can i make "hello world" to print in bold letters
Page 1 of 1
5 Replies - 9994 Views - Last Post: 22 September 2009 - 04:40 AM
Replies To: Bold Letters
#2
Re: Bold Letters
Posted 21 September 2009 - 08:36 AM
What you are attempting to do will not compile as it will not recognise BOLD. I dont think this can be done through the command line. I know you can do it with gui's by embedding html code.
#3
Re: Bold Letters
Posted 21 September 2009 - 09:06 AM
click -->>> http://www.dreaminco...wtopic99504.htm
#4
Re: Bold Letters
Posted 21 September 2009 - 09:47 AM
Font font = new Font("Times New Roman",Font.BOLD,16);
Then use setFont() method to set this font to the message.
#5
Re: Bold Letters
Posted 21 September 2009 - 04:24 PM
#6
Re: Bold Letters
Posted 22 September 2009 - 04:40 AM
Opps...sorry.
My mistake. Thought he wanted to make the words bold on GUI.
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote







|