Results 1 to 5 of 5
  1. #1
    ki_ha1984 is offline Member
    Join Date
    Aug 2011
    Posts
    74
    Rep Power
    0

    Default Terminal windows and text area

    Hello i am new Java.

    I am trying visual programming in netbeans .
    First of all i wont to connet a text area with the terminal of my ubuntu.

    I mean i wont to create something like my terminal window and i wont to execute all the linux comands from that text area.

    Thank you in advanced

    Ki_ha1984

  2. #2
    ki_ha1984 is offline Member
    Join Date
    Aug 2011
    Posts
    74
    Rep Power
    0

    Default Re: Terminal windows and text area

    any idea???????

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,403
    Rep Power
    25

    Default Re: Terminal windows and text area

    Java is not that close to the insides of the OS to be able to execute commands and interact with them.
    The Runtime and Process classes can be used to execute OS commands. The streams that connect to those classes would allow you to do some interaction with the commands that are being executed.

  4. #4
    ki_ha1984 is offline Member
    Join Date
    Aug 2011
    Posts
    74
    Rep Power
    0

    Default Re: Terminal windows and text area

    I read about Runtime and process nut i didnt find anything about how to connect a text area with something like

    (Process p = Runtime.getRuntime().exec("terminal");)

  5. #5
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,403
    Rep Power
    25

    Default Re: Terminal windows and text area

    You would read from the streams from the processes and put it into the textarea

Similar Threads

  1. Replies: 8
    Last Post: 07-17-2011, 02:38 PM
  2. Text Area
    By pabloma2002 in forum CLDC and MIDP
    Replies: 1
    Last Post: 02-11-2011, 04:56 PM
  3. Replies: 0
    Last Post: 12-09-2010, 05:56 PM
  4. Replies: 0
    Last Post: 09-28-2010, 09:52 AM
  5. eol in text area....
    By Nicholas Jordan in forum Networking
    Replies: 0
    Last Post: 09-14-2008, 10:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •