jQuery in Action, 2nd edition*
The moose likes Swing / AWT / SWT and the fly likes Need to change font for all controls in an eclipse RCP application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Need to change font for all controls in an eclipse RCP application " Watch "Need to change font for all controls in an eclipse RCP application " New topic
Author

Need to change font for all controls in an eclipse RCP application

kamalakannan kamal
Ranch Hand

Joined: May 19, 2008
Posts: 32
Hi All,

We are using an eclipse RCP application. In this application we didn’t use any specific font for the controls (like label, button etc,). So by default all control uses font specified in the underlying OS. Currently the application runs in XP os where the default font size is 8 and application looks fine. In future we are planning to move to Windows 7 machine where the default font size is 9. When we tested our application in Windows 7 machine there are some alignment issues, some buttons does not have full text content and text is missing in some labels. Since we are using large number of controls in our application we can’t set font for each and every controls now. Is there any easy solution for this problem? Is there any way where we can specify font for all controls which uses default font?

Thanks & Regards,
G. Kamal
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Need to change font for all controls in an eclipse RCP application
 
Similar Threads
Is every Swing app rich?
UI Manager's TextPane.font properties
Top 10 Reasons to code Java for us...
Automated Build of Eclipse RCP Application using Ant Script ?
Passing parameter from Web UI to RCP