Article View: borland.public.jbuilder.java.api
Article #2273Re: Waiting for a thread to finish
From: Al Mal
Date: Tue, 17 Apr 2001 13:49
Date: Tue, 17 Apr 2001 13:49
23 lines
1783 bytes
1783 bytes
Thank you guys, the concept is quite simple as I see. I just have to adjust
my thinking from Delphi/CBuilder to java well enough.
My code is different a bit: GUI stuff is in one class and FTP/HTTP stuff is
in a class that does not know of any GUI features. I think I still can pass
the buttons as parameters anyway.
Al
"Valentino Kyriakides" <vkyr@nospamlavielle.com> wrote in message
news:3adc2068_1@dnews...
> Torsten already gave you the correct answer. However, here are some rough
> code fragments which show what Torsten means:
>
> ...
> public class FTPApp extends JFrame
> {
> ...
> ...
> protected JButton startButton;
> protected JButton stopButton;
> ...
> protected FtpClient ftpClient; // <- class sun.net.ftp.FtpClient
Technical Details
Message-ID:
<3adc497d$1_1@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out-sjo.usenetserver.com!feed2.onemain.com!feed1.onemain.com!news-out.cwix.com!newsfeed.cwix.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3ada7468$1_1@dnews> <3adac7cd_1@dnews> <3adafaa4_1@dnews> <3adc2068_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,609fa558749ab800 X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2001-04-17 07:18:04 PST From: "Al Mal" <alex.im@nospam.usa.net> Newsgroups: borland.public.jbuilder.java.api References: <3ada7468$1_1@dnews> <3adac7cd_1@dnews> <3adafaa4_1@dnews> <3adc2068_1@dnews> Subject: Re: Waiting for a thread to finish Date: Tue, 17 Apr 2001 09:49:32 -0400 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2462.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000 NNTP-Posting-Host: 64.231.6.207 Message-ID: <3adc497d$1_1@dnews> X-Trace: dnews 987515261 64.231.6.207 (17 Apr 2001 06:47:41 -0700) Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out-sjo.usenetserver.com!feed2.onemain.com!feed1.onemain.com!news-out.cwix.com!newsfeed.cwix.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews