Page 1 of 1

Font Size of Column Headings

PostPosted: Wed Nov 14, 2018 1:39 pm
by ANH
Hey,

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

Thank you!

Best Regards,
Andreas

Re: Font Size of Column Headings

PostPosted: Wed Nov 14, 2018 2:47 pm
by Support@SIB
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