Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

unable to load wingdings font to button

911553Jan 21 2012 — edited Jan 23 2012
Hello Everyone,

Need help. I tried to load wingdings font to button, to display symbol. However seems like the button still display wording and unable to load the wingdings font. I 'm able to load other font except wingdings, wingdings 2.

Button btn = new Button();
//Font lcd = Font.loadFont(JFXTestButton.class.getResourceAsStream("wingding.ttf"),14);
Font lcd = new Font("Wingdings",54);
btn.setText("abc");
btn.setFont(lcd);

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 20 2012
Added on Jan 21 2012
1 comment
483 views