Article View: borland.public.jbuilder.java.swing
Article #350how can I display the output from system.out.println message to JDialog?
From: tom
Date: Wed, 31 Aug 2005 00:13
Date: Wed, 31 Aug 2005 00:13
35 lines
2071 bytes
2071 bytes
Hi,
I don't what would be the best approach to my problem.
I have a routine that populate user data into oracle table. This operates is
quite lenghty. I want to show
what's happening as the data is being inserted into the table.
Is there a way to direct the output of the system.out.println("") to Jdialog
as a popup window to show the user what's being inserted?
code snip:
..
JDialog jwin = new JDialog();
String statusTitle = "Populating initial data... please wait...";
jwin.setTitle(statusTitle);
jwin.setResizable(true);
jwin.setBackground(Color.lightGray);
jwin.setBounds(50, 50, 400, 400);
jwin.setVisible(true);
...
try {
...
while (rset.next()) {
//print each row
System.out.println(rset.getString(1) + " " + rset.getString(2) + " " +
rset.getString(3) + " " + rset.getString(4) + " " +rset.getString(5));
}
} catch (SQLException ex) {
}
Thanks,
Tom
Technical Details
Message-ID:
<4314f5e4$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!t-online.de!195.92.193.196.MISMATCH!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 111d45,ede56a718ac43510,start X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "tom" <zhangx@gaia.ecs.csus.edu> From: "tom" <zhangx@gaia.ecs.csus.edu> Newsgroups: borland.public.jbuilder.java.swing Subject: how can I display the output from system.out.println message to JDialog? Date: Tue, 30 Aug 2005 17:13:29 -0700 Lines: 37 Organization: java developer beginner X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 NNTP-Posting-Host: 136.200.198.187 Message-ID: <4314f5e4$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1125447140 136.200.198.187 (30 Aug 2005 17:12:20 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!t-online.de!195.92.193.196.MISMATCH!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail