posted 18 years ago
1. You can include font files in a jar, like any other resource, then access them through Font's static createFont method, which can be passed an InputStream.
2. You can use javax.swing.UIManager and UIDefaults to change the look-and-feel defaults before you create any swing components. It's easy: here's a demo. I preserved the font's style (bold, italic) but I increased the size 20%. For this code to work, the ttf file must be in in the same place (directory or directory-in-jar) as the class file.
There is no emoticon for what I am feeling!