• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do I change the "BOLD" property of the contents of a text-field at run-time in JAVA ?

 
Shane Bharadwaj
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am doing this program where there are around 20 text-fields which are initially configured to BOLD in design time. At run-time, the user fills out some of the text-fields out of the given 20. Based on that value, there will be some mathematics upon which the rest fields will be filled at run-time. So, what I want is once the user finished and initiates an event , the empty text-fields BOLD property should go to PLAIN instead of "BOLD". I do not want to change anything else( font , color , etc. ). Just want the BOLD propery to go from "BOLD" to "PLAIN" !!!
Plzzz Help............ !!!
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
.deriveFont(...)
 
Campbell Ritchie
Sheriff
Pie
Posts: 49367
62
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to the Ranch
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic