Font Size of Column Headings
2 posts
• Page 1 of 1
Font Size of Column Headings
Hey,
is there a possibility to change the font size of the column headings in a table control?
Thank you!
Best Regards,
Andreas
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
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:
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
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
-
Support@SIB - Posts: 353
- Joined: Mon Sep 28, 2009 1:56 pm
2 posts
• Page 1 of 1