Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #653

silly newbie GUI question

From printdude1968@gmail.com.remove-dii-this
Subject silly newbie GUI question
Message-ID <1168644898.188438.164340@m58g2000cwm.googlegroups.com> (permalink)
Newsgroups comp.lang.java.gui
Date 2011-04-27 15:28 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
I must be missing something.  None of the books I have or web sites
I've visited talk about calling one java program from another.  I have
a "main" program which is a GUI.  I have 3 buttons which when pushed,
should call subsequent programs (classes) which have buttons on them
and so on and so forth.  But what is the command that I need to make my
button action listener do to call the "child" program.  I've searched
the API and other resources, and now I have no other choice but to pose
my question here.  I "suspect" that I may need to make inner classes,
but I would really like to have my main program call and invoke 3
others and then when they are done, come back.

Here's a pseudo code program

if add-button.pressed
  terminate the current program
  call the add program
     return to calling program
fi

if change-button.pressed
  terminate the current program
  call the change program
     return to calling program
fi


Maybe I'm looking at this the wrong way.  I think I can write the code
for each program, but getting control to pass from one to the other is
a bottle-neck for me.

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextNext in thread | Find similar


Thread

silly newbie GUI question printdude1968@gmail.com.remove-dii-this - 2011-04-27 15:28 +0000
  Re: silly newbie GUI ques "Knute Johnson" <knute.johnson@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
    Re: silly newbie GUI ques printdude1968@gmail.com.remove-dii-this - 2011-04-27 15:28 +0000
      Re: silly newbie GUI ques "Knute Johnson" <knute.johnson@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
  Re: silly newbie GUI ques "RedGrittyBrick" <redgrittybrick@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
    Re: silly newbie GUI ques printdude1968@gmail.com.remove-dii-this - 2011-04-27 15:28 +0000
      Re: silly newbie GUI ques "RedGrittyBrick" <redgrittybrick@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
        Re: silly newbie GUI ques "RedGrittyBrick" <redgrittybrick@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
          Re: silly newbie GUI ques printdude1968@gmail.com.remove-dii-this - 2011-04-27 15:28 +0000
            Re: silly newbie GUI ques "RedGrittyBrick" <redgrittybrick@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
              Re: silly newbie GUI ques printdude1968@gmail.com.remove-dii-this - 2011-04-27 15:28 +0000
                Re: silly newbie GUI ques "RedGrittyBrick" <redgrittybrick@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
              Re: silly newbie GUI ques printdude1968@gmail.com.remove-dii-this - 2011-04-27 15:28 +0000
                Re: silly newbie GUI ques "RedGrittyBrick" <redgrittybrick@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
  Re: silly newbie GUI ques "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000

csiph-web