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

Font Size of Column Headings

General questions regarding the development with JVx.

Font Size of Column Headings

Postby ANH » Wed Nov 14, 2018 1:39 pm

Hey,

is there a possibility to change the font size of the column headings in a table control?

Thank you!

Best Regards,
Andreas
ANH
 
Posts: 11
Joined: Fri Jun 29, 2018 11:42 am

Re: Font Size of Column Headings

Postby Support@SIB » Wed Nov 14, 2018 2:47 pm

JVx doesn't have custom styling properties for the UI because every UI technology has its own styling mechanism. In Swing its the LaF, in HTML(5) is css.

Sure, JVx provides some features like setting a style, but it depends on the UI technology what will happen.

In case you want to set a style/LaF property in Swing, you can use every Swing feature you want because JVx enables the access to the used UI technology. But if you access the technology layer, be careful because you lose the UI independence feature!

In case of Swing UI, you could use:
Code: Select all
((JVxTable)navtable.getUIResource().getResource()).getJTable().getTableHeader().
setFont(new Font("Dialog", Font.BOLD, 18));


You could check the desktop environment or whether the resource is an instance of java.awt.Component to be UI independent.

Here is more documentation: JVx Concept and Reference
User avatar
Support@SIB
 
Posts: 353
Joined: Mon Sep 28, 2009 1:56 pm


Return to Development