This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information

About Font

General questions regarding the development with JVx.

About Font

Postby Garantisoft » Thu Sep 08, 2011 6:09 pm

protected void configureAbout(About pAbout)
{
pAbout.setText("Version " + VERSION);
}

How can I change Font?
Garantisoft
 
Posts: 16
Joined: Wed Aug 17, 2011 3:26 pm

Re: About Font

Postby rjahn » Thu Sep 08, 2011 7:30 pm

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 :)
rjahn
 
Posts: 41
Joined: Sun Sep 13, 2009 1:54 pm

Re: About Font

Postby rjahn » Thu Sep 08, 2011 8:11 pm

Already available in SVN or in the next beta.
Details are available in the Support System.
rjahn
 
Posts: 41
Joined: Sun Sep 13, 2009 1:54 pm

Re: About Font

Postby Garantisoft » Fri Sep 09, 2011 2:32 pm

Could you give an example?
Garantisoft
 
Posts: 16
Joined: Wed Aug 17, 2011 3:26 pm

Re: About Font

Postby rjahn » Fri Sep 09, 2011 5:06 pm

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);
}
rjahn
 
Posts: 41
Joined: Sun Sep 13, 2009 1:54 pm


Return to Development