Open GUI using second GUI in applicatio​n but close first GUI

HI, I have created a GUI which evaluates semiconductor parts of different families.  
Objective trying to achieve
Create an exe such that when the user double clicks the exe file it opens a GUI which opens a front panel with a TextRing box with different part numbers.  The user must select a part for the list. Once the part the first panel should close by itself and a new panel opens with all the bells and whistles to use to evaluate the parts.  This sequence is important because the second GUI handles multiple different setting which it must set when the part is selected.
I would really appreciate if someone can should me how to open a second GUI front panel from the first GUI from panel but closing the first panel.
I know how to open a GUI front panel using a differnt GUI front panel but the issue I am facing is that I am using Call by Reference which is not correct I believe.  Please HELP!!!!
Thank you in advance.
Attachments:
A.vi ‏13 KB
B.vi ‏11 KB

Simple solution: Make "GUI A" a dialog-like window (see examples that ship with LabVIEW). Call it from "GUI B" via a button, like "Select Part". Or, if you want, you can have "GUI B" simply call "GUI A" right at the beginning. Depends on whether you need to be running for multiple parts.
Oh, and don't use the Run Continuously button. That's not meant for normal operation.

Similar Messages

  • My Ipad wont retrieve my new emails and if I try to check passwords in Settings, the settings window only stays open open for a second or two and the automatically closes. Any help on how to fix. I tried the turn off and on trick and that didn'

    My Ipad wont retrieve my new emails and if I try to check passwords in Settings, the settings window only stays open open for a second or two and the automatically closes. Any help on how to fix. I tried the turn off and on trick and that didn't work either. Thanks for any help.

    Try reset iPad
    Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
    Note: Data will not be affected.

  • Access denied when opening project using project professional client application

    Hi,
    I have some users who are members of 'Team Members for Project Web App'.
    They can open projects using the browser just fine.
    But, if they try to open it using the menu  :  Projects Tab > Open > In Microsoft Project,
    the project professional client application starts but shows an error : 'you do not have the required permissions to perform the operation'
    Is there some restrictions for 'Team Members for Project Web App' with the project professional application?

    Indeed team members should not be added to the PM group. But they should not either edit directly the proejct plan. The process is the following:
    The PM assignes a resource on a task, either from PWA or MS Project Pro,
    The PM publishes the project plan,
    The TM goes to the task link in the quick launch menu on the left side,
    The TM enters the actual work done on his assignments and submit it to the PM,
    The PM goes to the approval center, sees the task updates waiting for approval, approves or rejects the task updates,
    The PM opens the project plan, updates the remaining work and publishes again the project the the task updates are taken into account and send to the TM.
    See this
    reference for Project Server 2010 but still applicable for 2013.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • GUI window doesnt open when using the .wait()

    Hi everyone
    I new to java. I'm experimenting with nebeans 6.1. I building a GUI, which uses other GUI windows. Can anyone give me an example of how to use the .wait function to so that the main gui doesn't continue until the other gui's selection is made. I'm using swing.

    I thought making it modal would halt the loop until my selection was made in the gui. It will. You are doing something wrong.
    If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
    Don't forget to use the [Code Formatting Tags|http://forum.java.sun.com/help.jspa?sec=formatting], so the posted code retains its original formatting.
    And don't post your NetBeans code because those of us that don't use the IDE of Java 6 will not be able to execute the code.

  • Developing swing GUI using XML

    hi
    I must develop a GUI using swing by parsing XML documents.How to render the swing objects at run time, after parsing the XML document.I must know the process of creating the swing containers,components from XML document. Some open sources are available for the purpose but i must create a framework for our own purpose, so must know the process involved.
    kindly provide me any links or tutorial for the same.
    with Regards,
    A.Rajesh

    hey thanks for the help...i saw these tools but my problem will not be solved by these as the diagram i need to generate from XML is a class diagram. The components of class diagram cannot be made using swings...eg arrow,rectangle,aggregation symbol etc....

  • HT4293 i am trying to use dual monitors when editing with FCPX. I have a macbook pro and an apple cinema display monitor. I have connected them and opened Fcpx but the option to use second monitor is not active! what do i do ? please help going bonkers!

    i am trying to use dual monitors when editing with FCPX. I have a macbook pro and an apple cinema display monitor. I have connected them and opened Fcpx but the option to use second monitor is not active! what do i do ? please help going bonkers!

    <http://support.apple.com/kb/HT5891>
    You can use USB for the Apple trackpad.
    <http://www.mobeetechnology.com/the-power-bar.html>

  • Creating GUI using a wizard

    Hi,
    I'm new to swing and until now have created GUI using MFC.
    Are there any wizard like tools, that help creating the UI while generating the adaquate code for me?
    Thanks.

    U can use JBuilder /NetBeans / Forte4 etc ..
    Lot of tools are available . u download and create GUI ...
    all the best !!

  • Created GUI using Matisse, can't get text on jPanel

    Hello, I am tying to build my first desktop application. I created a test GUI using Netbeans Matisse.
    When the button is pressed I want that the text string stored in the variable text appears on jPanel1. The String is retrieved from a database (that's not a problem).
    How to get the text onto jPanel1?
    Here's the GUI code:
    package prototype4;
    import java.awt.Color;
    import spin.Spin;
    public class newGUI extends javax.swing.JFrame {
        /** Creates new form newGUI */
        public newGUI() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">                         
        private void initComponents() {
            rolloverProducer1 = new org.jdesktop.swingx.RolloverProducer();
            jPanel1 = new javax.swing.JPanel();
            jPanel2 = new javax.swing.JPanel();
            jButton1 = new javax.swing.JButton();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
            jPanel1.setLayout(jPanel1Layout);
            jPanel1Layout.setHorizontalGroup(
                jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(0, 376, Short.MAX_VALUE)
            jPanel1Layout.setVerticalGroup(
                jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(0, 127, Short.MAX_VALUE)
            jButton1.setText("Start");
            jButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton1ActionPerformed(evt);
            org.jdesktop.layout.GroupLayout jPanel2Layout = new org.jdesktop.layout.GroupLayout(jPanel2);
            jPanel2.setLayout(jPanel2Layout);
            jPanel2Layout.setHorizontalGroup(
                jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(jPanel2Layout.createSequentialGroup()
                    .add(140, 140, 140)
                    .add(jButton1)
                    .addContainerGap(173, Short.MAX_VALUE))
            jPanel2Layout.setVerticalGroup(
                jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel2Layout.createSequentialGroup()
                    .addContainerGap(39, Short.MAX_VALUE)
                    .add(jButton1)
                    .add(36, 36, 36))
            org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(layout.createSequentialGroup()
                    .addContainerGap()
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                        .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .add(jPanel2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addContainerGap())
            layout.setVerticalGroup(
                layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(layout.createSequentialGroup()
                    .addContainerGap()
                    .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(jPanel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(55, Short.MAX_VALUE))
            pack();
        }// </editor-fold>                       
        private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                        
        // TODO add your handling code here:
        // spin off   
            DAOUser daouser = (DAOUser) Spin.off(new DAOUserImpl());
            String text = daouser.getString();
            System.out.println(text);
            //jPanel1.
         * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new newGUI().setVisible(true);
        // Variables declaration - do not modify                    
        private javax.swing.JButton jButton1;
        private javax.swing.JPanel jPanel1;
        private javax.swing.JPanel jPanel2;
        private org.jdesktop.swingx.RolloverProducer rolloverProducer1;
        // End of variables declaration                  
        }

    The code you posted is basically of no use to use since it uses custom Matisse classes.
    Learn how to write a Swing app without a GUI builder. Learn how to use Layout Managers on your own.
    If you want to display text on a panel then you would do:
    panel.add( label );
    panel.revalidate();
    Whos know what will happen with your code because I have no idea what the Matisse Layout Managers do.
    Read the Swing tutorial on [url
    http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.html]How to Use Layout Managers.

  • GUI - Using NetBeans

    Hi,
    I am new to using NetBeans and have built a basic GUI using it. However, I want to change the background colour of my GUI to black and cant see how to do this using NetBeans. Please could someone explain to me how to do this.
    My code is as follows :-
    * GUIII.java
    * Created on 29 November 2007, 19:47
    package my.GUIII;
    public class GUIII extends javax.swing.JFrame {
    /** Creates new form GUIII */
    public GUIII() {
    initComponents();
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {
    jLabel1 = new javax.swing.JLabel();
    jDialog1 = new javax.swing.JDialog();
    jPanel1 = new javax.swing.JPanel();
    jButton5 = new javax.swing.JButton();
    jButton4 = new javax.swing.JButton();
    jButton3 = new javax.swing.JButton();
    jButton2 = new javax.swing.JButton();
    jButton1 = new javax.swing.JButton();
    jLabel2 = new javax.swing.JLabel();
    jLabel1.setText("jLabel1");
    javax.swing.GroupLayout jDialog1Layout = new javax.swing.GroupLayout(jDialog1.getContentPane());
    jDialog1.getContentPane().setLayout(jDialog1Layout);
    jDialog1Layout.setHorizontalGroup(
    jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGap(0, 400, Short.MAX_VALUE)
    jDialog1Layout.setVerticalGroup(
    jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGap(0, 300, Short.MAX_VALUE)
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("Guiness Rugby League");
    setBackground(new java.awt.Color(0, 0, 0));
    jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
    jButton5.setText("Exit");
    jButton4.setText("Clear");
    jButton3.setText("Update Database");
    jButton2.setText("Read Database");
    jButton1.setText("Read File");
    jButton1.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jButton1ActionPerformed(evt);
    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(
    jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
    .addComponent(jButton1)
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
    .addComponent(jButton2)
    .addGap(18, 18, 18)
    .addComponent(jButton3)
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
    .addComponent(jButton4)
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
    .addComponent(jButton5)
    .addGap(36, 36, 36))
    jPanel1Layout.setVerticalGroup(
    jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(jPanel1Layout.createSequentialGroup()
    .addGap(20, 20, 20)
    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
    .addComponent(jButton1)
    .addComponent(jButton3)
    .addComponent(jButton4)
    .addComponent(jButton5)
    .addComponent(jButton2))
    .addContainerGap(21, Short.MAX_VALUE))
    jLabel2.setIcon(new javax.swing.ImageIcon("C:\\Users\\Blampied\\Desktop\\P_GPremLogo.gif")); // NOI18N
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(layout.createSequentialGroup()
    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(layout.createSequentialGroup()
    .addGap(117, 117, 117)
    .addComponent(jLabel2))
    .addGroup(layout.createSequentialGroup()
    .addGap(25, 25, 25)
    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 457, javax.swing.GroupLayout.PREFERRED_SIZE)))
    .addContainerGap(42, Short.MAX_VALUE))
    layout.setVerticalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(layout.createSequentialGroup()
    .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE)
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 446, Short.MAX_VALUE)
    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
    .addContainerGap())
    pack();
    }// </editor-fold>
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
    // TODO add your handling code here:
    * @param args the command line arguments
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new GUIII().setVisible(true);
    // Variables declaration - do not modify
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton5;
    private javax.swing.JDialog jDialog1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JPanel jPanel1;
    // End of variables declaration
    }

    Use Component's setBackground method; See this tutorial that has examples of its use:
    http://java.sun.com/docs/books/tutorial/uiswing/components/jcomponent.html
    Please post future Swing questions in the Swing forum.

  • Displays the time in a GUI using NGP

    how can I add a text box to a GUI that displays the current time?
    similar to what is displayed on a windows Start Bar
    I am new to java, creating my first GUI using the NGP version of the swing package

    EWWW :.... Formatted this time.. =)
    Oh, to answer the question:
    import javax.swing.Timer;
    import javax.swing.JLabel;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.util.Calendar;
    import java.text.DateFormat;
    * Time display label with auto update.
    * @author Derisor
    public class TimeLabel extends JLabel implements ActionListener {
      private Timer myTimer;
      private Calendar cal = Calendar.getInstance();
      private DateFormat df = DateFormat.getTimeInstance(DateFormat.LONG);
      public TimeLabel () {
         myTimer = new Timer(1000. this);
         myTimer.start();
      public voidActionPerformed(ActionEvent e) {
         if (e.getSource() == myTimer)
          this.setText(df.format(cal.getTime()));
    }

  • Acrobat reader installed fine, but opens for five seconds and then closes. Using Windows 7 and mcafe

    Acrobat reader installed fine, but opens for five seconds and then closes. Using Windows 7 and McAfee on a Dell laptop.

    You can try using Windows Explorer to navigate to C:\Program Files (x86)\Adobe\Reader 11.0\Reader, then double-click on Eula.exe and accept the license agreement

  • I have used Final Cut Pro 7 for about a year. Two weeks ago when I tried to open it, it opened for 15 seconds and then the icon disappeared. I have tried to reinstall and it didnt help. any one has similar case or can help?

    I have used Final Cut Pro 7 for about a year. Two weeks ago when I tried to open it, it opened for 15 seconds and then the icon disappeared. I have tried to reinstall and it didnt help. any one has similar case or can help?

    Please post your problem in the Final Cut Studio (Final Cut Pro 7) forum:
    https://discussions.apple.com/community/professional_applications/final_cut_stud io?view=discussions
    You'll get the help you need in that forum.

  • Has any SAP project integrated an EFTPOS device with ABAP Gui using an ActiveX controller?

    Dear Friends, I would like to know, Has any SAP Project integrated an EFTPOS Devise with ABAP Gui using ActiveX Controller? If used could you please share the Technicalities involved in them as we have a suggestion to have the same used in our Project.

    Dear Friends, I would like to know, Has any SAP Project integrated an EFTPOS Devise with ABAP Gui using ActiveX Controller? If used could you please share the Technicalities involved in them as we have a suggestion to have the same used in our Project.

  • Firefox will not open can't open preferences or anything was responding slow earlier in the day had been closed with 2 tabs open when trying to open in the second tab it responded really slow so sut down and used Safari instead

    this morning I had 2 tabs open was trying to open my bank web site and it seemed to respond really slow so closed firefox and opened Safari instead the site still responded slow but finally opened when I closed and went back to firefox it would not open can't re-install it or delete it or basically anything nothing is opening

    <u>'''Kill Application'''</u>
    In Task Manager, does firefox.exe show in the <u>'''Processes'''</u> tab?
    See: [http://kb.mozillazine.org/Kill_application Kill Application]
    '''<u>Causes and solutions for Firefox hanging at exit:</u>'''
    [[Firefox hangs]]
    [http://kb.mozillazine.org/Firefox_hangs#Hang_at_exit Firefox hangs at exit]
    [[Firefox is already running but is not responding]]
    <u>'''Safe Mode'''</u>
    You may need to use '''[[Safe Mode]]''' (click on "Safe Mode" and read) to localize the problem. Firefox Safe Mode is a diagnostic mode that disables Extensions and some other features of Firefox. If you are using a theme, switch to the DEFAULT theme: Tools > Add-ons > Themes <u>'''before'''</u> starting Safe Mode. When entering Safe Mode, do not check any items on the entry window, just click "Continue in Safe Mode". Test to see if the problem you are experiencing is corrected.
    See:
    '''[[Troubleshooting extensions and themes]]'''
    '''[[Troubleshooting plugins]]'''
    '''[[Basic Troubleshooting]]'''
    If the problem does not occur in Safe-mode then disable all of your Extensions and Plug-ins and then try to find which is causing it by enabling <u>'''one at a time'''</u> until the problem reappears. <u>'''You MUST close and restart Firefox after EACH change'''</u> via File > Restart Firefox (on Mac: Firefox > Quit). You can use "Disable all add-ons" on the Safe mode start window.

  • It is possible to open CRM using URL like EPand XI

    it is possible to open CRM using URL like EPand XI.IF IT IS POSSIBLE GIVE ME PROCEDURE FOR THAT

    Not possible. CRM online can only be accessed via SAP GUI. Parts of the CRM can be accessed via enterprise portal, if the CRM business package is installed on portal.
    Paul.

Maybe you are looking for