[izpack-devel] Question/Suggestion for PathSelectionPanel

Hal Vaughan hal at thresholddigital.com
Wed Mar 1 21:01:02 CET 2006


On Wednesday 01 March 2006 14:45, Klaus Bartz wrote:
>  Hi all,
>  sorry, I have forgotton to  answer...
>  I think the method Hal would have to added is really one which
>  should be exist as public in this base class. It is the
>  same as getPathInputField().
>  Fabrice is it possible for you to check it in? In the moment I have
>  no access to BerliOS.

This is different.  I needed to make a change to the JFileChooser 
(forgot what at the moment, but I can check it), so I needed access to 
the Browse button that brings up the JFileChooser, not to the 
JTextField which contains the path name.

There were also a few other reasons for accessing the button in some 
earlier attempts at what I'm working on.  I wanted to get the size and 
make my components match the width of the browse JButton.

Currently you can get the JTextField, but NOT the JButton for browsing 
for the file.

I'm using a class, AlteredPathSecectionPanel, and the only difference is 
it has that one short method in it that returns the JButton for 
browsing.

Hal


>  Thanks
>
>  Klaus
>
> On Wednesday 01 March 2006 09:50, Miraodb wrote:
>
> Hi all,
>
> I updated that on my side and worked fine.
> It doens't change any of the current behaviour.
> Shall we commit so that there's no need for a custom panel ?
>
>
> I would appreciate it, if possible.  I know it's just for one panel
> I'm doing (which I will be submitting when I'm sure it's debugged),
> but I'd think it'd be a help for other possible panels.
>
> Thanks!
>
> Hal
>
>
> Let me know.
> cheers,
> fabrice
>
>
> I was recently working on a series of panels (which I plan to post
> here
>
> when
>
>
> they're ready for possible inclusion, since I think others will
> find them helpful) and used the PathSelectionPanel.  I needed
> access to the Browse button so I could do something slightly
> differently with the FileChooser. Since the Browse button
> (browseButton) is private, there was no way to
>
> access
>
>
> it (I also wanted to get the dimensions so I could put another
> button
>
> under
>
>
> it that would be the same size).  I ended up creating another
> class, AlteredPathSelectionPanel and adding just one method that
> would return the button object.  Is there a chance of getting this
> added to PathSelectionPanel:
>
>     /**
>      * Returns the browse button object for modification or for use
> with a * different ActionListener.
>      *
>      * @return the browse button to open the JFileChooser
>      */
>     public JButton getBrowseButton()
>     {
>     return browseButton;
>     }
>
> I don't know how much it would be used, but it would be helpful.
>
> Thanks!
>
> Hal
> _______________________________________________
> izpack-devel mailing list
> izpack-devel at lists.berlios.de
> http://lists.berlios.de/mailman/listinfo/izpack-devel
>
> _______________________________________________
> izpack-devel mailing list
> izpack-devel at lists.berlios.de
> http://lists.berlios.de/mailman/listinfo/izpack-devel
>
> _______________________________________________
> izpack-devel mailing list
> izpack-devel at lists.berlios.de
> http://lists.berlios.de/mailman/listinfo/izpack-devel
>
>
> __________ NOD32 1.1422 (20060301) Information __________
>
> Diese E-Mail wurde vom NOD32 Antivirus System geprüft
> http://www.nod32.com
>
>
>
>
>
>    _______________________________________________ izpack-devel
> mailing list izpack-devel at lists.berlios.de
> http://lists.berlios.de/mailman/listinfo/izpack-devel



More information about the izpack-devel mailing list