Trace:
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
jvx:client:gui:custom_factory [2018/02/02 11:22] admin |
jvx:client:gui:custom_factory [2020/06/08 14:55] (current) cduncan |
||
---|---|---|---|
Line 1: | Line 1: | ||
~~NOTRANS~~ | ~~NOTRANS~~ | ||
- | ~~Title: Custom IFactory implementation~~ | + | ~~Title: Custom IFactory Implementation~~ |
- | Sometimes you need additional methods in your UI factory, e.g. create custom controls, preconfigure existing controls. | + | Sometimes you need additional methods in your UI factory, e.g., create custom controls or preconfigure existing controls. |
The UI factory is one of the first classes that is instantiated from a launcher. If you need a custom factory, use an application parameter to configure it. | The UI factory is one of the first classes that is instantiated from a launcher. If you need a custom factory, use an application parameter to configure it. | ||
Line 33: | Line 33: | ||
</file> | </file> | ||
- | Our factory extends the default SwingFactory and overwrites createButton. All created buttons have a default icon, no border and the text is left aligned. | + | Our factory extends the default SwingFactory and overwrites createButton. All created buttons have a default icon, no border, and the text is left aligned. |
- | Now we configure our custom factory via commandline: | + | Now we configure our custom factory via command-line: |
<file script> | <file script> |