Labview-esq GUI program

HI,
I'd consider myself a beginner-intermediate Java programmer. I'm wanting to create something similar to LABVIEW in java (at least just the GUI side of things). i.e. being able to make boxes that have inputs, outputs, something in the middle and connect to other boxes. Does anyone know of anything that is already written that I can use as a starting point?
Thanks,
Dave

TuringPest wrote:
you could render the boxes as if you were drawing a picture.
if you did this youd have to write your own code to do mouse hit-testing.
this is a bad idea.
the easiest way is to create a JComponent subclass that draws the ControlBoxes.
this way, you can easily grab mouse events and create popupmenus.
you would use a JLayeredPane to z-order these components. you will have
to implement dragging the boxes around yourself (which is easy) but its
visually nicer than using JInternalFrames (which force you to use their title bar.
you could draw interconnecting lines by drawing on a transparent panel
z-ordered on top of everything else (or by using a glasspane but thats not a good idea).
i wouldnt mess with a layout manager. set the jpanel containers layout to null and
use absolute positioning for the ControlBoxes.
all you really have to do is override the JComponents paintComponent method to draw
the control boxes.That's great advice. have you done something like this before?

Similar Messages

  • Is there a way to interface Labview Web GUI with Fusion Charts?

    Is there a way to interface Labview Web GUI with Fusion Charts for dynamic web presentation?
    http://www.fusioncharts.com/

    I have a ballistics program which our clients can use (see attached).  Basically there is a series of Cascading Combo boxes that the user must select for Bullet Manufacturer, Caliber, and Bullet ID.  The program then goes out to the relevant data file (.CSV) and provides ballistic inputs for the selected projectile.  The user is also required to enter in additional data, such as Sight Height, LOS Range, Temp, etc..  Once all data is input, the user either hits the Calculate Button or the Tab (I'm using Event Structures and I now realize this is an issue for Web UI Builder), and the data gets passed to a MathScript which then crunches numbers and spits output to fill a table and a series of Graphs based upon the tablulated data (if so desired).
    I was hoping to use Labivew for the first two parts ( Data Collection and Number Crunching) and use something like Fusion Charts for the presentation.  I tried learning Ruby on Rails.  I was successful with the Ruby part (basically the Mathscript portion) but really got hung up on the Rails section and the need for something like JSON to interface with it.  Could not find a useful source of information which really showed you how to combine the two effectively. 
    Attachments:
    Ballistics1.JPG ‏144 KB
    Ballistics2.JPG ‏265 KB

  • I want to play video on my computer to make some analysis to frames,the problem that I face ,I can't change video frame rate using labview,but I can change frame rate to the video out of labview using some program

    HI All
    I want to play video on my computer to make some analysis to it's frames,the problem that I face ,I can't change video frame rate using labview,but I can change frame rate to the video out of labview using some program .
    I used IMAQ AVI Read Frame VI
    for example I have avi video It's frame rate is 25 fbs ,my image processing code is very fast that can process more 25 fbs,so I want to accelerate video acquisition

    Hi abdelhady,
    I looked into this further, and reading an AVI file into LabVIEW faster than its frames per second won't be possible. LabVIEW could read in frames faster than 25fps, but because it will be pulling the available frame at that point in time this would just give you duplicate frames. If you want to be able to read in frames at faster than 25fps, you would need to speed up your AVI file before reading into LabVIEW.
    There's a good shipping example to show how to read in from an AVI file, "Read AVI File.vi". You'll notice that they add timing to make sure that the while loop runs at the right speed to match up with the frames per second of the file being read. This is to make sure you're not reading duplicate frames.
    Thank you,
    Emily C
    Applications Engineer
    National Instruments

  • Looking for a labview virtual instrument program we can modify

    Hi, I’m looking for a canned labview virtual instrument program we can modify for the OMB DAQ 55 from Omega to measure three temps and control three DO.  I have the driver at:ftp://ftp.omega.com/public/DASGroup/products/OMB-DAQ5455&56/ The driver is labviewpdaq5xsetup.exe. I have the OMB DAQ 55 from http://www.omega.com/pptst/OMB-Daq55.html  with a USB interface. I am trying to set it up to control a 24V electric valve. I’d like it to measure temperatures (5 separate temps), allow a set point to be programmed for three of them and turn on and off a DO based on the temperature. PID is not required yet. Maybe in the future… We have labview 7.1 and 8.0 but my colleague prefers 7.1  Do you have an labview VI programs that you can share that will do this with the DAQ 55? If you have something that will be close, we can modify it. But starting from scratch will likely mean we can not get this done in time for a project test. Simple set point and control is all I’m looking for… I’m new (my colleague knows it better than me, but has less time) to labview and do not have the resources to learn it from scratch to figure this out. Is there something you have I could modify? Can you help. Or are there canned programs you have that will do this? Labview is the preferred language. Thanks. Attached is what Omega shared with us, it might help…it’s a screen capture from a similar program, but far from the mark.

    Hi vestel,
    These discussion forums are more geared for questions - not necessarily having everyone else code for you.
    You have a few options if you want code.
    1) Look at the shipping examples that come with LabVIEW.  This will give you a starting point from which to ask questions.
    2) Look at the Instrument Driver Network that exits on National Instrument's Web site.  Here are all the Omega instrument drivers listed.
    3) Look at the list of Alliance members who you can pay to develop your code for you.  Look here.
    I hope this helps,
    Kevin S.
    Applications Engineer
    National Instruments

  • Passing two variables from LabView to Javascipt program or Vice Versa

    Ok let me be blunt here. Below is my code to move a ethernet camera. As you can see from the code when the page is opened up you are immediately prompted to enter values for a X-coordinate and a Y-coordinate. Once your value has been inputted in, the camera moves based on the values. Fantastic right? Here is where i'm scratching my head. My Labview program basically takes in sound (short-version here) and is able to determine the position of where the sound is coming from in a x, y value (NOTE: the program  THUS far has been able to determine the position but has not been worked on to output to a x y value. But for argument sake let's say it does). My question to all of you is this I have read other theads that asked this and noticed that the code (highlighted in blue) is what they think would do the trick. However, this needs to be constantly working. Meaning my program needs to be constantly be feeding data to the X Y coordinate OR it constantly needs to be prompted through Labview. I dont know what would work best or even what is feasible at this point.
    Any help, suggestions comments or opinions anything would be greatly appreciated.
    <script type = "text/javascript">
    <!--
    var x,          // x variable axis
        y,          // y variable axis
        counter;    // Basic Counter
    var newWindow; //varibale to open up new windows
    // The following code should be used to implement Labview into this program
    // This code has been unmodified since it was given to me
    // NOTES: Consider intializing lvapp and vi and variables
    // NOTES: The response function should be changed to X and Y
    // NOTES: The parameter "Output" should be whatever the Team uses to distinguish X and Y
        lvapp = new ActiveXObject("Labview.Application");
        viPath = "C:\\test.vi";
        vi = lvapp.GetVIReference(viPath);   // Load the vi into memory
        vi.FPWinOpen = 1;                    // Open front panel
        vi.SetControlvalue("Input",125)      // set the input parameter, 125 is just a sample
        vi.Run();                            // run the VI here, the "Call"-methode without parameter
                                             // does not work since it uses
                                             // the defaults of the controls
        response = vi.GetControlvalue("Output")  // get the output parameter    
        alert("Result from LV:"+response);  */
    // Initialization Phase
    counter = 0; // prepare to loop
    ccounter = 0;
    while ( counter <= 0 ) { // loop 1 times
            // prompt for input and coordinate from user
            x = window.prompt( "Enter X-axis coordinate:", "0" );
            // prompt for input and coordinate from user
            y = window.prompt( "Enter Y-axis coordinate:", "0" );
            counter = counter + 1;
    //if statement frame for camera control
    //Home position
    if (x==0 && y==0)
        newWindow = open('http://192.168.0.3/cgi-bin/camctrl.cgi?move=home', 'secondWindow',
            'scrollbars,resizable,width=500,height=400');
        if (newWindow && !newWindow.closed) {
                newWindow.close();
    if (x==1 && y==0)
        newWindow = open('http://192.168.0.3/cgi-bin/camctrl.cgi?move=right','secondWindow',
            'scrollbars,resizable,width=500,height=400');
        if (newWindow && !newWindow.closed) {
                newWindow.close();
    // -->
    </script>
    </head>

    I know that it's not very elegant, but how about writing the data to a file which could be read by the other application?  You could use some sort of locking scheme or queue to make sure the data stays current.
    "There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal

  • LABVIEW based pda program to run in winCE

    for our purpose we need to read analog signals through different sensors which is connected to samsung s3c mini 2440 arm board. for this purpose we have some VB based example programs. but we need some example files of LABVIEW based pda program that to run in winCE os. so help me out
    m attaching the vb based source code of example files

    Duplicate Post.
    The best solution is the one you find it by yourself

  • Video - LabVIEW Object-Oriented Programming Introductory Walktrough

    LabVIEW Object-Oriented
    Programming, or LVOOP for short, has been around for about a year now.
    Have you had time to take a look at it? If not, it's about the time. I
    made you a short video on the very basics of LVOOP development process.
    It doesn't go into details of inheritance and all that but it gives you
    and idea on how to get started.
    LabVIEW Object-Oriented Programming Introductory Walktrough
    Tomi Maila

    The video was offline for a while as I accidentally modified YouTube video properties inproperly. The video is online again.
    p.s. If you like the video, don't  forget to press the digg button below the article to submit the article to digg.com
    Tomi Maila

  • Running a GUI program with no X?

    Hi,
    I want to run a GUI program on my server, which has no X installed. Of course, the program would normally not run since it needs X (GUI only). I don't really need to be directly using this software, it just needs to run. Anybody here knows if there is any way to fool it into thinking X is there, so it'll still run on my server, preferably as a service in the background?
    PS
    I probably need the same thing for sound too, no alsa or pulse either.
    Any  help's appriciated.

    I probably owe you guys an explanetion: The program in question is Skype. I'm sick and tierd of having skype steal recources when all my other IMing is done in bitlbee. That's why I came up with the following solution: I've done some reading, and turns out skype has a bitlbee plugin.
    However, that plugin uses the skype API which means I can't get around having skype. So, I decided to try the following setup: Run a bitlbee server from my home server. Have skype sorta just run in there doing nothing, and use the bitlebee plugin so I can connect with my own computer and use skype with bitlbee (Note: this is so I can chat with friends, not so I can video / audio chat so I don't care about those features). Basicly that was my idea and i'm exploring the posibility. Skype sadly has no deamon mode, but it does offer a shell pipe login so I'll start skype in my server, and do that setup. Of course now that I see i'll need to install x no matter what i'm not sure if it's worth it. I don't need X on my server for any other purpuse and X will steal recources from my server. I do however love not needing a skype client nativly. Anyone has any experiance / ideas / advice about my idea?
    Stalafin wrote:
    Greenstuff wrote:
    Hi,
    I want to run a GUI program on my server, which has no X installed. Of course, the program would normally not run since it needs X (GUI only). I don't really need to be directly using this software, it just needs to run. Anybody here knows if there is any way to fool it into thinking X is there, so it'll still run on my server, preferably as a service in the background?
    PS
    I probably need the same thing for sound too, no alsa or pulse either.
    Any  help's appriciated.
    Wut? You want to output sound without anything that is able to output sound? Is it me or is that just plain weird....? o.O
    I realize it sounds comfusing but Skype needs somewhere to dump sound apperantly (I found that out on my resharch). So I need a way to fool it into thinking there's such a device.
    Last edited by Greenstuff (2009-11-03 21:24:29)

  • GUI program help

    I'm writing a GUI program that involves drawing several shapes, lines, and images to a JPanel. Some of the shapes need to be dragged around the screen by the user, while others will remain stationary. I can't figure out the overall organization of how the drawing should be done. Some questions are:
    1. what type of code should go in the paintComponent method of JPanel?
    2. Should the JFrame class implement MouseListener and MouseMotionListener, or should some other class implement these?
    3. Will I have to use inner classes? (In my current design, the class that extends JPanel is an inner class of the JFrame class.)
    4. How can I minimize flicker when shapes are repainted?

    1. what type of code should go in the paintComponent
    method of JPanel?Let's say you have a List of all your Shapes:
    private List shapes;
    public void paintComponent(Graphics g) {
        Graphics2D g2d = (Graphics2D) g;
        Iterator i = this.shapes.iterator();
        while (i.hasNext()) {
            //Draw your Shape
    2. Should the JFrame class implement MouseListener and
    MouseMotionListener, or should some other class
    implement these?Your pick. I'd have the listeners on your JPanel.
    3. Will I have to use inner classes? (In my current
    design, the class that extends JPanel is an inner
    class of the JFrame class.)Your pick. I prefer using inner classes instead of anonymous classes, but others will say the opposite.
    4. How can I minimize flicker when shapes are
    repainted?yourPanel.setDoubleBuffered(true);

  • Free ide for gui programming

    can someone tell me what's the best free java ide for gui programming?

    No one can answer the question of which one is better. It's like answering the question - is red more beautiful than yellow?
    I can however say that the plugins into eclipse which lets you build swing ui by drag and drop are not mature, and I don't think they work if you modify the code by hand, and then want to go back into "drag % drop" mode. The ui builder in jbuilder is nice, and doesn't clutter the code, and it works even if you have modified the code by hand.
    /kaj

  • Gui programming Python

    Hi All,
    I'm looking to improve / learn more on gui programming within python.
    I'm not sure if i should be writing the code manualy or using the libglade / glade designer to produce results.
    My main aim with most of my programming is to keep things slim. i use openbox so i don't want to pull in loads of gnome crap to make something work.
    How do you guys go about it etc?
    Regards
    Matthew

    I guess your options are pyQt, pyGtk, Tkinter (included with python), and wxPython.
    I've been playing around with wxpython for a little while now and I quite like it. I really enjoy that it is fairly cross platform (without requiring gtk, qt, or tk/tcl on Windows or Mac) and the wxpython demo program is just fantastic.
    IIRC, the demo isn't packaged with wxpython in Arch, but you can download it separately and extract it to a folder in your home directory with no problems.

  • Best way for gui programming? swing awt jfc swt ....

    hi,
    i have been programming java for some time but exclusively for web, servlets, jsp etc..
    but now i have to do some �real� gui�s. I have no gui experience , (ok I did some basic examples just to see how things work) but/and I�m not able to determine which way I should go.
    So I did some google search and read some threads here im forum on topics swing vs. awt (or so) and found lot of topics with lot of different opinions(some of them also a little bit out of date) so now im CONFUSED more then ever.
    I read people asking questions like :what is better awt or swing and then getting the perfect technical answers like :
    AWT components are NOT native components. AWT components are Java objects. Particular instances of AWT componets (Button, Label, etc.) MAY use peers to handle the rendering and event handling. Those peers do NOT have to be native components. And AWT components are NOT required to use peers for themselves at all.
    Or
    There are some significant differences between lightweight and heavyweight components. And, since all AWT components are heavyweight and all Swing components are lightweight (except for the top-level ones: JWindow, JFrame, JDialog, and JApplet), these differences become painfully apparent when you start mixing Swing components with AWT components.
    But I don�t care that much(at least not now) about this detail answers.
    I would simply like to know from some experienced gui guru, (due to the fact that we have 2005 and java 1.5) if u would like to learn gui in java quickly and know everything u know now which way would u choose:
    AWT
    JFC
    SWING
    SWT
    And which IDE would u use.
    I simply want to get quickly started and do some basic gui programming ,nothing special, but I would like to avoid that after weeks of doing one, then find out the was the wrong one and again learn the another one.
    TIA Nermin

    try swt vs swing and see what you think, its not really a decision someone else can make for you. as long as you don't try and mix the two, it should be a similar learning curve either way.

  • Client-Server side GUI programming

    I want to create a client-server side gui programming with java
    i read this web adress
    http://java.sun.com/docs/books/tutorial/networking/sockets/clientServer.html
    for information but there are some parts that i didnt understand and wait for your help
    i m trying to build an online-help(live chat) system so when people press the start chat button a java page will appear but i wonder how this will connect to the person who is on server side
    i mean is it possible to 2 users connect the same port and chat with each other
    I mean when user press the chat button the online help supporter will be informed somebody wants to speak with him and they will start a chat
    how can i do something like that
    any help would be usefull thanks

    Below is an example of a client/server program.
    It shows how the server listens for multiple clients.
    * TriviaServerMulti.java
    * Created on May 12, 2005
    package server;
    * @author johnz
    import java.io.*;
    import java.net.*;
    import java.util.Random;
    * This TriviaServer can handle multiple clientSockets simultaneously
    * This is accomplished by:
    * - listening for incoming clientSocket request in endless loop
    * - spawning a new TriviaServer for each incoming request
    * Client connects to server with:
    * telnet <ip_address> <port>
    *     <ip_address> = IP address of server
    *  <port> = port of server
    * In this case the port is 4413 , but server can listen on any port
    * If server runs on the same PC as client use IP_addess = localhost
    * The server reads file
    * Note: a production server needs to handle start, stop and status commands
    public class TriviaServerMulti implements Runnable {
        // Class variables
        private static final int WAIT_FOR_CLIENT = 0;
        private static final int WAIT_FOR_ANSWER = 1;
        private static final int WAIT_FOR_CONFIRM = 2;
        private static String[] questions;
        private static String[] answers;
        private static int numQuestions;
        // Instance variables
        private int num = 0;
        private int state = WAIT_FOR_CLIENT;
        private Random rand = new Random();
        private Socket clientSocket = null;
        public TriviaServerMulti(Socket clientSocket) {
            //super("TriviaServer");
            this.clientSocket = clientSocket;
        public void run() {
            // Ask trivia questions until client replies "N"
            while (true) {
                // Process questions and answers
                try {
                    InputStreamReader isr = new InputStreamReader(clientSocket.getInputStream());
                    BufferedReader is = new BufferedReader(isr);
    //                PrintWriter os = new PrintWriter(new
    //                   BufferedOutputStream(clientSocket.getOutputStream()), false);
                    PrintWriter os = new PrintWriter(clientSocket.getOutputStream());
                    String outLine;
                    // Output server request
                    outLine = processInput(null);
                    os.println(outLine);
                    os.flush();
                    // Process and output user input
                    while (true) {
                        String inLine = is.readLine();
                        if (inLine.length() > 0)
                            outLine = processInput(inLine);
                        else
                            outLine = processInput("");
                        os.println(outLine);
                        os.flush();
                        if (outLine.equals("Bye."))
                            break;
                    // Clean up
                    os.close();
                    is.close();
                    clientSocket.close();
                    return;
                } catch (Exception e) {
                    System.err.println("Error: " + e);
                    e.printStackTrace();
        private String processInput(String inStr) {
            String outStr = null;
            switch (state) {
                case WAIT_FOR_CLIENT:
                    // Ask a question
                    outStr = questions[num];
                    state = WAIT_FOR_ANSWER;
                    break;
                case WAIT_FOR_ANSWER:
                    // Check the answer
                    if (inStr.equalsIgnoreCase(answers[num]))
                        outStr="\015\012That's correct! Want another (y/n)?";
                    else
                        outStr="\015\012Wrong, the correct answer is "
                            + answers[num] +". Want another (y/n)?";
                    state = WAIT_FOR_CONFIRM;
                    break;
                case WAIT_FOR_CONFIRM:
                    // See if they want another question
                    if (!inStr.equalsIgnoreCase("N")) {
                        num = Math.abs(rand.nextInt()) % questions.length;
                        outStr = questions[num];
                        state = WAIT_FOR_ANSWER;
                    } else {
                        outStr = "Bye.";
                        state = WAIT_FOR_CLIENT;
                    break;
            return outStr;
        private static boolean loadData() {
            try {
                //File inFile = new File("qna.txt");
                File inFile = new File("data/qna.txt");
                FileInputStream inStream = new FileInputStream(inFile);
                byte[] data = new byte[(int)inFile.length()];
                // Read questions and answers into a byte array
                if (inStream.read(data) <= 0) {
                    System.err.println("Error: couldn't read q&a.");
                    return false;
                // See how many question/answer pairs there are
                for (int i = 0; i < data.length; i++)
                    if (data[i] == (byte)'#')
                        numQuestions++;
                numQuestions /= 2;
                questions = new String[numQuestions];
                answers = new String[numQuestions];
                // Parse questions and answers into String arrays
                int start = 0, index = 0;
                   String LineDelimiter = System.getProperty("line.separator");
                   int len = 1 + LineDelimiter.length(); // # + line delimiter
                boolean isQuestion = true;
                for (int i = 0; i < data.length; i++)
                    if (data[i] == (byte)'#') {
                        if (isQuestion) {
                            questions[index] = new String(data, start, i - start);
                            isQuestion = false;
                        } else {
                            answers[index] = new String(data, start, i - start);
                            isQuestion = true;
                            index++;
                    start = i + len;
            } catch (FileNotFoundException e) {
                System.err.println("Exception: couldn't find the Q&A file.");
                return false;
            } catch (IOException e) {
                System.err.println("Exception: couldn't read the Q&A file.");
                return false;
            return true;
        public static void main(String[] arguments) {
            // Initialize the question and answer data
            if (!loadData()) {
                System.err.println("Error: couldn't initialize Q&A data.");
                return;
            ServerSocket serverSocket = null;
            try {
                serverSocket = new ServerSocket(4413);
                System.out.println("TriviaServer up and running ...");
            } catch (IOException e) {
                System.err.println("Error: couldn't create ServerSocket.");
                System.exit(1);
            Socket clientSocket = null;
            // Endless loop: waiting for incoming client request
            while (true) {
                // Wait for a clientSocket
                try {
                    clientSocket = serverSocket.accept();   // ServerSocket returns a client socket when client connects
                } catch (IOException e) {
                    System.err.println("Error: couldn't connect to clientSocket.");
                    System.exit(1);
                // Create a thread for each incoming request
                TriviaServerMulti server = new TriviaServerMulti(clientSocket);
                Thread thread = new Thread(server);
                thread.start(); // Starts new thread. Thread invokes run() method of server.
    }This is the text file:
    Which one of the Smothers Brothers did Bill Cosby once punch out?
    (a) Dick
    (b) Tommy
    (c) both#
    b#
    What's the nickname of Dallas Cowboys fullback Daryl Johnston?
    (a) caribou
    (b) moose
    (c) elk#
    b#
    What is triskaidekaphobia?
    (a) fear of tricycles
    (b) fear of the number 13
    (c) fear of kaleidoscopes#
    b#
    What southern state is most likely to have an earthquake?
    (a) Florida
    (b) Arkansas
    (c) South Carolina#
    c#
    Which person at Sun Microsystems came up with the name Java in early 1995?
    (a) James Gosling
    (b) Kim Polese
    (c) Alan Baratz#
    b#
    Which figure skater is the sister of Growing Pains star Joanna Kerns?
    (a) Dorothy Hamill
    (b) Katarina Witt
    (c) Donna De Varona#
    c#
    When this Old Man plays four, what does he play knick-knack on?
    (a) His shoe
    (b) His door
    (c) His knee#
    b#
    What National Hockey League team once played as the Winnipeg Jets?
    (a) The Phoenix Coyotes
    (b) The Florida Panthers
    (c) The Colorado Avalanche#
    a#
    David Letterman uses the stage name "Earl Hofert" when he appears in movies. Who is Earl?
    (a) A crew member on his show
    (b) His grandfather
    (c) A character on Green Acres#
    b#
    Who created Superman?
    (a) Bob Kane
    (b) Jerome Siegel and Joe Shuster
    (c) Stan Lee and Jack Kirby#
    b#

  • How to start a Web GUI program from a Web Dynpro application

    I know the program name , and it is a Web GUI program ,is anybody know how to start it from a Web Dynpro application

    hi,
    I use the following program to call a SAP GUI program :
    DATA: l_componentcontroller TYPE REF TO ig_componentcontroller.
      DATA: l_api_componentcontroller type ref to if_wd_component.
      DATA: l_sapgui_manager type ref to cl_wdr_sapgui_integration.
      DATA: lt_parameters    TYPE wdr_name_value_list.
      l_componentcontroller = wd_this->get_componentcontroller_ctr( ).
      l_api_componentcontroller = l_componentcontroller->wd_get_api( ).
      l_sapgui_manager = l_api_componentcontroller->get_sapgui_manager( ).
      IF l_sapgui_manager IS NOT INITIAL.
        l_sapgui_manager->fire( EXPORTING name = 'PROGRAM_NAME 'parameters = lt_parameters ).
    But the l_sapgui_manager is always initial , what can I do ?
    ENDIF.

  • [SOLVED]some console commands without console make gui programs killed

    I'm using openbox as WM. I think it is openbox that causes the trouble
    it seems that when I try ot execute some console application without console but the application needs user input, the problem occurs.
    when the issue arises, gui programs gets killed, leaving its window blank.
    not all of gui programs though, chromium and conky got closed but xterm didn't.
    however, they survive when they are executed with xterm.
    I could reproduce the problem with sudo or alsamixer, run by either right-click menu or gmrun.
    Is there anyone experiencing the same issue?
    sorry for my english.
    Last edited by freaxtux (2012-08-25 03:05:17)

    If you are trying to run a console or terminal application that needs user input, it must be run in a terminal window.  For example, to run alsamixer from the openbox menu I would have this in my ~/.config/openbox/menu.xml:
    <item label="Alsamixer">
    <action name="Execute">
    <execute>xterm -e alsamixer</execute>
    </action>
    </item>
    The command on the line with "<execute>" opens an xterm window and then the '-e' option tells xterm to run the next command on that line.
    Urxvt also uses the '-e' option to run commands.  To get htop to run from the open box menu in a urxvt window, I would use this:
    <item label="Htop">
    <action name="Execute">
    <execute>urxvt -e htop</execute>
    </action>
    </item>
    For gmrun, I believe you use Ctrl-Enter to have it open an app in a terminal.  At least that is what the wiki page says: https://wiki.archlinux.org/index.php/Gmrun

Maybe you are looking for

  • Odd graphics problem, eventually leads to forced reboot, or even BSOD

    I am fairly certain that this is firefox related, or plug in or maybe compatability issue, however I'm getting weird blocky graphics. which occasionlly seem to begin from a flash frame within a page, but I can't say this is 100% the cause. It looks l

  • Store Report PDF file in group' folder

    I want create a system which enable the user to create a report with the report builder and then report will automatically to store the PDF file into a specified folder before we view the report in PDF format. Recently I able to view the report in PD

  • Aperture dimages not opening

    When trying to get the images to open in Photoshop, I have recently got this Error message This image cannot be rendered for editing because Aperture does not support the image format. I am not sure why this has happened as it has been fine up until

  • Macbookpro crash associated with Office software and scrolling mission control

    Hello, I have been experiencing a crashing problem with my macbookpro. It happens when I work with Office software (Word/Excel) and it is triggered when I scroll the mission control to nevigate between pages. It occurs in ~30% of the times I scroll t

  • Script to create trigger

    I want to create a trigger on all dba_tables. I want to do a select in a trigger but i don't know how to do. Here are my trigger and my select CREATE OR REPLACE TRIGGER SIGTASAD.TRG_dba_tables_BEF_INSUPD BEFORE INSERT OR UPDATE ON dba_tables FOR EACH