Greenhorn
posted 14 years agoStandard constructor - builds a font chooser dialog owned by another dialog. Troga translate forget recall repeat 1 7 8. FontChooserDialog (java.awt.Frame owner, java.lang.String title, boolean modal, java.awt.Font font). Standard constructor - builds a font chooser dialog owned by another dialog. FontChooserDialog (java.awt.Frame owner, java.lang.String title, boolean modal, java.awt.Font font).
Someone please tell me how to set font in JFileChooser???
I've tried setFont method on JFileChooser class but it made no difference.
Thanks in advance
[ January 02, 2006: Message edited by: Trung Nguyen Tuan ]
I've tried setFont method on JFileChooser class but it made no difference.
Thanks in advance
[ January 02, 2006: Message edited by: Trung Nguyen Tuan ]
Ranch Hand
posted 14 years agobecause of the various components in a JFileChooser,
you may have to do it with 'brute force'
something like this
you may have to do it with 'brute force'
something like this
Font Chooser
Greenhorn
![Font chooser Font chooser](https://crayonify.com/wp-content/uploads/2014/07/8-Font-Picker.png)
Font Chooser Tattoo
![Font Chooser Font Chooser](https://windows-cdn.softpedia.com/screenshots/Font-Picker_1.png)
posted 14 years ago
Font Chooser React
Greenhorn
posted 11 years agoFont Chooser Online
Excellent code snippet! I tried to set the dialog font with setFont, but I guess it only sets the caption font. You have to recursively set all of the sub-component fonts.
BTW, this is a good general purpose function for setting any dialog font. For example, it can be used to set the main frame's fonts so you don't have to individually set the fonts for all of the controls you drop down (a real pain!).
BTW, this is a good general purpose function for setting any dialog font. For example, it can be used to set the main frame's fonts so you don't have to individually set the fonts for all of the controls you drop down (a real pain!).