[Advanced-java] fileDialog question
Mark Yang
myang at pnicorp.com
Wed Aug 27 19:31:59 2003
Thank you david, I am sorry but I made a mistake in my previous
question, I AM using JFileChooser, which has an OK button and a CANCEL
button by default, I know i might be able to rename them, but what I
really want is to get ride of these 2 buttons.
My application is like this: I have a frame that has 2 windows, the
left one displays the file structure on the other machine ( I have
another application running on that machine and read the file names and
send it over through socket), I still didn't figure out how to display
these files and do select yet.( anyone has an idea?)
The right side one, like you said, I am using the FileChooser, but i
don't want any buttons on these 2 windows except one button called
"transfer", if i click it, it will transfer the file on the other
machine to my local directory.
Anyone has comment on how to make this GUI work?
thanks in advance!
Mark
On Wednesday, August 27, 2003, at 6:36 AM, David Rosenstrauch wrote:
> Well, if you're using Swing, you could try using the JFileChooser.
> It's a
> panel, first of all, not a Dialog, which sounds more along the lines
> of what
> you want. And also, it's much more customizable. I don't know if you
> can
> remove the ok/cancel buttons from it or not (although I suspect you
> can, but
> it might take some doing), but you can rename them. That might be a
> sufficient solution - rename those buttons and get rid of the button
> elsewhere in your frame. But like I said, it may even be possible to
> get rid
> of them altogether.
>
> HTH.
>
> DR
>
> On Tuesday 26 August 2003 01:49 pm, Mark Yang wrote:
>> Hi,
>> Anyone knows How I could make the "OK" and "cancel" button not
>> shown up on the fileDialog?
>> I did something like this:
>> fileDialog fd = new FileDialog();
>> then I have this fd added to my frame to have a file window that I
>> can choose file from but I don't need those 2 buttons, I have a
>> "transfer" button somewhere else in my frame which will do the stuff
>> I
>> want to do with the file I selected.
>> I am really stuck here, any suggestions will be appreciated!!
>> Mark
>>
>> _______________________________________________
>> Advanced-java mailing list
>> Advanced-java@lists.xcf.berkeley.edu
>> http://lists.xcf.berkeley.edu/mailman/listinfo/advanced-java
>
> _______________________________________________
> Advanced-java mailing list
> Advanced-java@lists.xcf.berkeley.edu
> http://lists.xcf.berkeley.edu/mailman/listinfo/advanced-java