PDA

View Full Version : Custom Destination Panel



bjfrary
03-28-2003, 11:07 AM
I am migrating a Custom destination panel and have been very frustrated with the DirectoryBrowser.

The DestinationPanel code that is supplied says that DirectoryBrowser should be replaced by AWTDirectoryChooser.

I tried using AWTDirectoryChooser but all it does is bring up an empty box. There is no indication in the Java doc that anything else is required...although I suspect something else is....But there is absolutely no doc on this...

Does anybody Know how to use this?

So after a couple of frstrating tries I went back to the DirectoryBrowser. I used it exactly the way they did..But it kept giving me class no found error. I had copied verbatim the putClass statements...After many tries I found that instead of:

support.putClass(DirectoryBrowser.class.getName());
support.putClass("com.installshield.wizardx.ui.DirectoryBrowser$1");
support.putClass(DirectoryBrowser.IconBase11.class.getName());
support.putClass(DirectoryBrowser.IconListBox11.class.getName());
support.putClass(DirectoryBrowser.DirTextDisplay.class.getName());
support.putClass(DirectoryBrowser.FileStructure.class.getName());
support.putClass(DirectoryBrowser.Comparator.class.getName());


I needed:

support.putClass("com.installshield.wizardx.ui.DirectoryBrowser");
support.putClass("com.installshield.wizardx.ui.DirectoryBrowser$1");
support.putClass(DirectoryBrowser.IconListBox11.class.getName());
support.putClass(DirectoryBrowser.IconBase11.class.getName());
support.putClass(DirectoryBrowser.DirTextDisplay.class.getName());
support.putClass(DirectoryBrowser.FileStructure.class.getName());
support.putClass(DirectoryBrowser.Comparator.class.getName());


I would really prefer to use the "Correct" control here (AWTDirectoryChooser), because I don't want to have to keep updating this panel...