Skip to main content



      Home
Home » Archived » Visual Editor (VE) » jLabel.setFont(font);
jLabel.setFont(font); [message #607286] Mon, 02 May 2005 10:48
Eclipse UserFriend
Hello,


is there a possibility to set font, that is a variable. For example:




private Font font = new Font("Dialog", Font.PLAIN, 12);

jLabel.setFont(font);




If I do it so I get an exception: java.lang.IllegalArgumentException.... I
tried it also with VE_1.1.


If I have a class derived from JLabel and set the font within the class I
do not get any exception.


Is this different behavior ok?



Thanks
Elena
Previous Topic:tree cannot be painted in the VE
Next Topic:JFrame not visible
Goto Forum:
  


Current Time: Sun Jun 22 08:47:47 EDT 2025

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

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

Back to the top