Bold Letters

how can i make "hello world" to print in bold letters

Page 1 of 1

5 Replies - 19750 Views - Last Post: 22 September 2009 - 04:40 AM Rate Topic: -----

#1 Bisbal  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 12-September 09

Bold Letters

Posted 21 September 2009 - 06:58 AM

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
Is This A Good Question/Topic? 0
  • +

Replies To: Bold Letters

#2 nick2price  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 561
  • View blog
  • Posts: 2,826
  • Joined: 23-November 07

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.
Was This Post Helpful? 0
  • +
  • -

#3 Crunch  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 139
  • View blog
  • Posts: 1,222
  • Joined: 28-July 09

Re: Bold Letters

Posted 21 September 2009 - 09:06 AM

click -->>> http://www.dreaminco...wtopic99504.htm
Was This Post Helpful? 0
  • +
  • -

#4 AntonWebsters  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 88
  • View blog
  • Posts: 428
  • Joined: 15-August 09

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.
Was This Post Helpful? 0
  • +
  • -

#5 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8324
  • View blog
  • Posts: 31,857
  • Joined: 06-March 08

Re: Bold Letters

Posted 21 September 2009 - 04:24 PM

View PostAntonWebsters, on 21 Sep, 2009 - 08:47 AM, said:

Font font = new Font("Times New Roman",Font.BOLD,16);



Then use setFont() method to set this font to the message.

Anton :) You are talking about console output here
Was This Post Helpful? 0
  • +
  • -

#6 AntonWebsters  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 88
  • View blog
  • Posts: 428
  • Joined: 15-August 09

Re: Bold Letters

Posted 22 September 2009 - 04:40 AM

Opps...sorry. >.< My mistake. Thought he wanted to make the words bold on GUI.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1