In InstallerFrame I have added an instance variable "imageLeft" which is false by default.
In createHeading() we look for the modifier key headingImageOnLeft:
<guiprefs width="600" height="480" resizable="no">
<modifier key="useHeadingPanel" value="yes"/>
<modifier key="useHeadingForSummary" value="yes"/>
<modifier key="headingImageOnLeft" value="yes"/>
<modifier key="headingLineCount" value="2"/>
<modifier key="headingFontSize" value="1.5"/>
<modifier key="headingBackgroundColor" value="0x00ffffff"/>
<modifier key="headingForegroundColor" value="0x00002d94"/>
<modifier key="headingPanelCounter" value="text"/>
<modifier key="headingPanelCounterPos" value="inHeading"/>
</guiprefs>
If its true then we:
- Set the image to use a west layout - imgPanel.add(iconLab, BorderLayout.WEST);
- Add an 8 pixel border to leftHeadingPanel (which will now be on the right)
- Add to the northPanel the imgPanel, HorizontalGlue, and leftHeadingPanel
- For all the heading labels set the X alignment to RIGHT
I have tested with various settings and it all looks OK. Only heading text and summaries should be affected.
Anyone see any issues?
Feel free to add an option that puts it on the left side.