🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2075

Re: Progress Bar

#2075
From: Rich Wilkman
Date: Tue, 05 Jun 2001 20:32
45 lines
2074 bytes
Ant�nio:

Yes, you need to do your work in a different thread.  Look at the
Javasoft tutorial on the progress bar for an example.

-Rich

"Ant�nio Ferreira" wrote:
> 
> Hi,
> 
>   i am using a progressbar in a jdialog component to register the progress
> of a method actualization of the screen but when i create and show the
> component it only appears at all when the method is over and i dispose the
> jdialog component with the progress bar. Is there anything at all i need to
> do to see the progress bar while the method is running. To create the
> component i use:
> 
>   public Progressbarone(Frame frame, String title, boolean modal) {
>     super(frame, title, modal);
>     try  {
>       jbInit();
>       pack();
>     }
>     catch(Exception ex) {
>       ex.printStackTrace();
>     }
>   }
> 
>   public Progressbarone(int min, int max) {
>     this(null, "Progress", false);
>     jProgressBar1.setMinimum(min);
>     jProgressBar1.setMaximum(max);
>   }
> 
> to call the method i use:
> 
>     Progressbarone bp = new
> Progressbarone(0,97+(this.jTabbedPaneCartas.getComponentCount()*4));
>     bp.show();
> 
> I appreciate all your help.
> Thanks,
> 
> Ant�nio Jos� Ferreira
Technical Details
Message-ID: <3B1D41E3.515F8B8B@formlessvoid.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews
References: <3b1d010c_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 1089d0,8a563e4948fd44b5
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-06-05 13:36:11 PST
Message-ID: <3B1D41E3.515F8B8B@formlessvoid.com>
Date: Tue, 05 Jun 2001 13:32:35 -0700
From: Rich Wilkman <richw@formlessvoid.com>
X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.api
Subject: Re: Progress Bar
References: <3b1d010c_1@dnews>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 208.236.69.60
X-Trace: dnews 991773155 208.236.69.60 (5 Jun 2001 13:32:35 -0700)
Lines: 45
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews