Page 1 of 1

About Font

PostPosted: Thu Sep 08, 2011 6:09 pm
by Garantisoft
protected void configureAbout(About pAbout)
{
pAbout.setText("Version " + VERSION);
}

How can I change Font?

Re: About Font

PostPosted: Thu Sep 08, 2011 7:30 pm
by rjahn
With the current About implementation, it is not possible to change the font. I think it was simply forgotten. An easy way is to extend About or create your own About frame. If you extend or have your own, overwrite the method:

Code: Select all
public void doAbout(UIActionEvent pEvent) throws Throwable;

and show your own frame.

A (very) dirty way to change the font is, to search the TextArea in the component list, in configureAbout(), but that is not the preferred solution.

A reusable solution for all developers is a Feature Request and JVx should be changed :)

Re: About Font

PostPosted: Thu Sep 08, 2011 8:11 pm
by rjahn
Already available in SVN or in the next beta.
Details are available in the Support System.

Re: About Font

PostPosted: Fri Sep 09, 2011 2:32 pm
by Garantisoft
Could you give an example?

Re: About Font

PostPosted: Fri Sep 09, 2011 5:06 pm
by rjahn
The About source code should help!

And here is the code that opens the About dialog:

Code: Select all
public void doAbout(UIActionEvent pEvent) throws Throwable
{
    About about = new About(getDesktopPane());

    configureFrame(about);
    configureAbout(about);

    about.pack();
    about.setLocationRelativeTo(getContentPane());
    about.setVisible(true);
}