Embedding MindTerm SSH in my Swing App
Edilmar Alves - Lista
edilista at fes.br
Wed Jun 22 03:22:16 MEST 2005
Hi,
I am embedding Mind Term SSH in my Swing app, and using NetBeans 4.1 for
developing/testing.
Then, I have some doubts about SSH classes:
1) When I call my JFrame code (from RunRemoteCommand sample), I'd like
to redirect the stdout from System.out (default) to my JTextArea. How to
do this?
2) When I call my JFrame code (from RemoteShellScript sample), I'd like
to echo the output of the shell commands to my JTextArea. And the sample
code only echoes the string of the command, not the result of it. Is
there some way to capture the output from ExceptOutputStream?
3) Is there some way to change from JFrame to JInternalFrame or JDialog
for displaying the SSH client? Because I didn't want to start new
frames, the better for me would be JInternalFrame. But when I use this
one, the code doesn't work in this line:
exitStatus = console.waitForExitStatus();
Does this SSH component only work with JFrame?
More information about the Mindterm-users
mailing list