I have an application which uses the default, metal, look and feel in Unix. For Solaris 10 this means the Dialog font is being translated as Arial. For Solaris 11 the font files have moved, so my font has changed. I cannot change any files except those in my application so changing fontconfig.properties is not an option.
1) Is there any way to say Dialog=Arial (and Dialog.Bold = Arial.Bold) in the beginning of the application?
2) Since I couldn't find a way to do the above I have been using the UIManager.put("Menu.font", new Font("Arial, Font.BOLD, 12)) commands. This seems to work (hopefully I don't miss a widget type) however my JTree, which is not using the Label.font when I use the defaults, is picking up my Label.font value when I call UIManager.put("Label.font", new Font("Arial, Font.BOLD, 12)). This happens even when I also have UIManager.put("Tree.font", new Font("Arial, Font.PLAIN, 12)).
Using the defaults my labels are bold and my tree is not. Do you have any suggestions about what could be happening with this and how I can separate the two fonts so that I can force them to be Arial but the Labels bold and the JTree plain?
Setting up the UI manager is the first thing that the application does.