Izpack: Creating custom panels

Posted by bguiz on Stack Overflow See other posts from Stack Overflow or by bguiz
Published on 2010-03-26T00:47:06Z Indexed on 2010/03/26 0:53 UTC
Read the original article Hit count: 509

Filed under:
|
|
|
|

Hi,

I am trying to create a custom panel for an IzPack installer. This means that I have to extend IzPanel. However, it appears that if I do this, the extended panel needs to be in the com.izforge.izpack.panels package.

Then I found this post, which stipulates that:

  • As such, you must include installer.jar from the lib folder of IzPack in the build path of your custom panel project.
  • Your custom panel /must/ extend com.izforge.izpack.installer.IzPanel.
  • Furthermore, it /must/ reside in the com.izforge.izpack.panels package.
  • On top of it all, your build jar's name /must/ be the same as the unqualified name of your custom panel class.

I take issue with the 1st and 4th points. They imply that I have to create an additional JAR file for each custom IzPanel that I create. Also, I would have to modify the IzPack installation by adding these JARs to one of its subdirectories.

Is this article outdated (2008) and can it be safely ignored, or is this still true?
If not how can I avoid this and simply have the extended IzPanel on the classpath instead?

Thank you!

© Stack Overflow or respective owner

Related posts about java

Related posts about izpack