Jump to content
Changes to the Jaspersoft community edition download ×

How to substitute the deprecated setFont?


Recommended Posts

By: Franco Lombardo - f_lombardo

How to substitute the deprecated setFont?

2006-07-14 06:05

The JRDesignTextElement.setFont method is deprecated. How can I substitute it in my code?

 

Thanks a lot.

 

Bye

 

Franco

 

 

 

By: Franco Lombardo - f_lombardo

RE: How to substitute the deprecated setFont?

2006-07-14 06:57

JRDesignTextField textField = new JRDesignTextField();

JRStyle style = new JRBaseStyle();

style.setFontName("Serif Normal");

style.setFontSize(9);

textField.setStyle(style);

 

Thanks a lot.

 

Bye.

 

Franco

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...