Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Change fonts in SWT?
Change fonts in SWT? [message #445937] Mon, 15 November 2004 06:50
Eclipse UserFriend
Hi,
I want to use a bigger text font than the default one for my PDA
application.
I tried to change the size of the font with:
int fontHeight = lblOrdId.getFont().getFontData()[0].getHeight();
lblOrdId.getFont().getFontData()[0].setHeight(fontHeight*2);
but this does not work :-( And if it did work it would be a pain to
manually change fonts for all widgets...
So, there must be another way - but how?

Thanks in advance!
Tommy
Previous Topic:New Widgets
Next Topic:Java2D equiv. for SWT?
Goto Forum:
  


Current Time: Sat Jul 05 11:07:46 EDT 2025

Powered by FUDForum. Page generated in 0.41789 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top