How can I change the default font for a JTextArea from the command line?

John Zukowski

Changing the TextArea.font property allows you to set the default font. In order to set this from the command line you need to pass it a string that can be decoded from the decode() method of Font. Separate the font name, style, and size, like the following:

java -DTextArea.font=dialog-italic-24 Prog

To change your font to the 24 point, italic, dialog font shown here.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact