Documentation

Trace:

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
jvx:client:gui:custom_factory [2018/02/02 11:22]
admin created
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 controlspreconfigure 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 borderand the text is left aligned.
  
-Now we configure our custom factory via commandline:+Now we configure our custom factory via command-line:
  
-<java script>+<file script>
 java -cp... apps.firstapp.FirstApplication ""​ Launcher.uifactory=apps.firstapp.CustomSwingFactory java -cp... apps.firstapp.FirstApplication ""​ Launcher.uifactory=apps.firstapp.CustomSwingFactory
-</java>+</file>
  
 The second parameter defines a config file, but we don't use one. It is also possible to put the factory parameter in a config file together with other parameters. All configuration options are described in [[jvx:​client:​gui:​application_parameters|this article]]. The second parameter defines a config file, but we don't use one. It is also possible to put the factory parameter in a config file together with other parameters. All configuration options are described in [[jvx:​client:​gui:​application_parameters|this article]].
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information