Class FontScaleJPanelRender
java.lang.Object
FontScaleJPanelRender
This example shows rendering a page where the font size can be adjusted dynamically once the page is loaded using
a font scaling factor. Note that scaling up or down once the page is rendered requires it to be re-rendered
and re-laid out, which takes a small (possibly insignificant) amount of time, but which may be noticeable for
larger pages.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static JPanel
createTopPanel
(XHTMLPanel panel) private void
loadAndCheckArgs
(String[] args) static void
private void
-
Field Details
-
fileName
-
-
Constructor Details
-
FontScaleJPanelRender
public FontScaleJPanelRender()
-
-
Method Details
-
main
-
run
-
createTopPanel
-
loadAndCheckArgs
-