Results 1 to 4 of 4
  1. #1
    slichy is offline Member
    Join Date
    Jun 2011
    Posts
    2
    Rep Power
    0

    Default embedding a unix terminal

    Hi,

    I would like to embed a unix terminal (xterm) into my GUI such that it has focus and I can interact with it from within the GUI. Does anyone have any experience with embedding a seperate program into the GUI ? I've searched everywhere but couldn't find any examples.

    Thanks.

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

    Default

    Have you tried Google? A brief search turned up Terminator. I've never used it, but it might be useful if only because you can look at the source.

    You should also search carefully at Sourceforge.

  3. #3
    slichy is offline Member
    Join Date
    Jun 2011
    Posts
    2
    Rep Power
    0

    Default

    Yeah - i found a couple of example for a terminal emulator, but I'd rather not invent the wheel.
    I prefer to take an existing xterm and embed it if possible.

  4. #4
    ioexcept's Avatar
    ioexcept is offline Advocate
    Join Date
    Jun 2011
    Location
    Philadelphia
    Posts
    3
    Rep Power
    0

    Default

    Use the Runtime to kick-off a process, then use two separate threads to read Output/ERR. It is honestly very simply to do. If you follow some basic patterns you can write this for any OS (Abstract Factory Pattern). Google: java runtime examples. You will be able to cut-and-paste almost every line of code you need.

Similar Threads

  1. Embedding applet into HTML
    By vin_eets in forum AWT / Swing
    Replies: 3
    Last Post: 03-22-2011, 01:05 PM
  2. Embedding Database
    By shalin.shah in forum JDBC
    Replies: 1
    Last Post: 12-12-2010, 06:40 AM
  3. Embedding Applet into HTML?
    By Unome in forum Java Applets
    Replies: 1
    Last Post: 02-21-2009, 03:40 AM
  4. Terminal
    By dj kourampies in forum New To Java
    Replies: 7
    Last Post: 01-07-2009, 03:57 PM
  5. Embedding Word in an applet
    By Java Tip in forum SWT
    Replies: 0
    Last Post: 07-25-2008, 02:34 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
  •