Well, I suppose you want your panels to be in the same bank in your own package.
Here's how you do it:
- Create your own jar with all custom panels
- Copy this jar to the IzPackStagingFolder \ bin \ folder
- Edit the installation descriptor and in the panels section refer to your CustomPanels.jar
Then, in your install.xml file, you define sections of your panels that are similar to:
... <panels> <panel classname="HTMLInfoPanel" id="infopanel" encoding="ISO-8859-1" /> <panel classname="TargetPanel" id="targetpanel" /> <panel classname="com.myCompany.installer.panels.MyCustomPanelOne" id="customPanelOne" jar="bin/panels/CustomPanels.jar" /> <panel classname="UserInputPanel" id="userInputPanel" /> <panel classname="InstallPanel" id="installPanel" /> <panel classname="ProcessPanel" id="processPanel" /> <panel classname="com.myCompany.installer.panels.MyCustomPanelTwo" id="customPanelTwo" jar="bin/panels/CustomPanels.jar" /> <panel classname="FinishPanel" id="finishPanel" /> </panels> ...
Where CustomPanels.jar can be one maven project with its own panels in your own package with two classes CustomPanelOne and CustomPanelTwo extending IzPanel.
For more information, see the IzPack documentation older than 4.x at https://izpack.atlassian.net/wiki/spaces/IZPACK/pages/491534/Creating+Panels . There is currently no new version of IzPack 5.x doc wiki in this section.
Also override XML DTD at https://github.com/izpack/izpack/blob/4.3/src/dtd/installation.dtd
Paul bors
source share