Article View: borland.public.jbuilder.java.api
Article #2074Progress Bar
From: Ant�nio Ferreira
Date: Tue, 05 Jun 2001 15:58
Date: Tue, 05 Jun 2001 15:58
36 lines
1822 bytes
1822 bytes
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:
<3b1d010c_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.uni2.dk!newssuck.uni2.dk!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 1089d0,8a563e4948fd44b5,start X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2001-06-05 09:11:35 PST From: "Ant�nio Ferreira" <antonio.ferreira@artesis.co.pt> Newsgroups: borland.public.jbuilder.java.api Subject: Progress Bar Date: Tue, 5 Jun 2001 16:58:01 +0100 Lines: 38 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 NNTP-Posting-Host: 195.22.4.93 Message-ID: <3b1d010c_1@dnews> X-Trace: dnews 991756556 195.22.4.93 (5 Jun 2001 08:55:56 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.uni2.dk!newssuck.uni2.dk!dnews