File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes How do I change the Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How do I change the "BOLD" property of the contents of a text-field at run-time in JAVA ?" Watch "How do I change the "BOLD" property of the contents of a text-field at run-time in JAVA ?" New topic
Author

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

Shane Bharadwaj
Greenhorn

Joined: Jul 03, 2012
Posts: 1
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

Joined: Jun 09, 2003
Posts: 4632
.deriveFont(...)
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36478
    
  16
And welcome to the Ranch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do I change the "BOLD" property of the contents of a text-field at run-time in JAVA ?
 
Similar Threads
Bolded buttons, unbolding themselves..?
INSERT
Text Editor
Processing lots of JMS messages
Saving application settings