sorry once again if u r receiving more thn one time..
cuz im having some probs while send/recv our group
mails for last few days...
Hi Steven,
There is no automatic way to redirect console output /
error output to JList directly...
But my fav. quote is "There is always a way!!"
so in my example i hv redirected both Console / Error
output streams to a file (Log.txt) & u can c the
log.txt file for output instead of the monitor...
regards,
S.Vasanth Kumar.
----------------------------------------------
import java.io.*;
public class OutSet
{
public static void main(String args[])
{
try
{
OutputStream out = new
FileOutputStream("Log.txt",true);
PrintStream pstOut = new PrintStream(out);
System.setOut(pstOut);
System.setErr(pstOut);
System.out.println("Your output stream has been
redirected to Log.txt file");
new Exception("A Sample
Exception").printStackTrace();
}
catch(Exception ex)
{
System.out.println(ex.toString());
}
}
}
________________________________________________________________________
Yahoo! India Matrimony: Find your partner online.
http://yahoo.shaadi.com/india-matrimony/
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/5cFolB/TM
--------------------------------------------------------------------~->
If you have any comments or questions, submit it on the message board.
NO spam/ads/job posting or you will be BANNED from this group. Exception can be made
it happen by notify me ahead of time.
all new members' message will be verified by me (spam..) before it get posted.
Yahoo! Groups Links
<*> To reply to this message, go to:
http://groups.yahoo.com/group/java_official/post?act=reply&messageNum=17225
Please do not reply to this message via email. More information here:
http://help.yahoo.com/help/us/groups/messages/messages-23.html
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/java_official/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/