How do I get a dialog box to reappear?

I'm trying to write an application where
1. There is an opening frame. The user can click a 'start' button which
opens the first of a series of dialog boxes.
2 Each of these dialog boxes has a user input field and buttons 'next' 'back' and 'cancel' , to step forward/backward through user input , or to cancel & return to the opening frame.
3. As each dialog box opens up , the preceeding one should be hid.
4. If the user clicks 'back' , the current box should close and the
preceeding one should reopen.
Straightforward enough and I've got this working at the start of the progam
for the transition between the opening frame and the first dialog box, by
doing this:
in the opening frame...
//start button..
this.setVisible(false);
Dialog001 d001 = new Dialog001(this,"",true);
d001.setVisible(true);;
and in the code in the dialog box d001, for the '<< back' button..
void button1_actionPerformed(ActionEvent e) {
dispose();
super.getOwner().setVisible(true);
*********** so far so good : everything works OK **************
The problem is when I repeat this in the second dialog box , the
first dialog box doesn't reappear.
I have looked in the books and tries various things, but no good
so far
How do I get the previous dialog box to reappear?
Also, how will the 'cancel' button work in the second (and subsequent)
dialog boxes (instead of the preceeding dialog box reappearing, the
original opening frame should reappear) ?
Thanks in advance
Mike
[the jdk is 1.2.2 , OS is win98, IDE is jbuilder ver 3]

How is this: (you can change it from Swing to AWT.)
setVisible(false);
int index = 0;     
Vector v  = new Vector();
dialog d;
while (index != -1)
     if (index == v.size())
           v.add(new dialog(this,index));
          d = (dialog)v.get(index);
     else
          d = (dialog)v.get(index);
              d.setVisible(true);     
     index = d.ret;
     setVisible(true);
public class dialog extends JDialog
     JButton next = new JButton("next");
     JButton back = new JButton("back");
     JButton canc = new JButton("cancel");
     int     me;
     int     ret;
public dialog(JFrame f,int i)
     super(f,""+i,true);
     me = i;
     getContentPane().setLayout(new GridLayout(4,0));     
     getContentPane().add(next); 
     getContentPane().add(back);
     getContentPane().add(canc);
     next.addActionListener(new ActionListener()
     {     public void actionPerformed( ActionEvent e )
          {     ret = me+1;      
               setVisible(false);     
     back.addActionListener(new ActionListener()
     {     public void actionPerformed( ActionEvent e )
          {     ret = me-1;
               setVisible(false);          
     canc.addActionListener(new ActionListener()
     {     public void actionPerformed( ActionEvent e )
          {     ret = -1;
               setVisible(false);          
     getContentPane().add(new TextField("abced"));
     setBounds(100,100,100,150);
     setVisible(true);

Similar Messages

  • How can I get past dialog box that wants my country/region?  Premiere Elements 13 will not open!!!

    Cannot get past the country/region dialog box because the list will not allow me to select the United States as the place where I live.  The list is too long and no way to get to the bottom to select the United States!!!  I can't get into Premiere Element 13.

    TNDOGGER888
    Thank you for the reply.
    Let us start with
    1. Is the computer operating system Windows 7, 8, or 8.1 64 bit? If it is and you are installing Premiere Elements 13, then the program files will go by default to Local Disk C/Program Files/Adobe/Adobe Premiere Elements 13 as the default location. If you have a computer that is using other than Windows 7, 8, or 8.1 64 bit, then it will not. Another question is, when your drives were set up, was the SSD drive designated the C drive?
    2. From what you wrote, I understood that you were using your installation files or installation disc to install the program, but were getting stopped very early in the installation process because you could not set the country/language. Typically that setting is done while you are starting the installation. One of the early dialog boxes that you get in that process is named Choose Setup Language (or something like that). That is where I believed you could not set the country/language. Is that the place to which you were referring or some place else?
    3. You do not need to uninstall Premiere Elements 10 to install and run Premiere Elements 13. Just use one program at a time.
    Typically 32 bit applications in a 64 bit computer operating system run in the 32 bit compatibility mode of the 64 bit system. And, these 32 bit applications program files will be in Program Files (x86) Folder. The 64 bit applications program files would be in Program Files. With regard to Premiere Elements 10, some of its files may be found in Program Files and Program Files (x86).
    But, the main focus now is getting Premiere Elements 13 installed to the default location on the Local Disk C/Program Files/Adobe/Adobe Premiere Elements 13 during the installation process after you designate the country/language and are given a country dependent NTSC or PAL system with which to work.
    From a quick look at 13 installation on Windows 7 64 bit, the first installation dialog that mentions language with country implications is
    This is for Premiere Elements 13 on Windows 7 or 8.1 64 bit. Since you say that the United States is further down the list in your case, I suspect this is not the place where you are having problems. Note the default location in this Options dialog. Did you leave that as is or change it to something else?
    Are you having these issues when you get to the Sign In dialog or some place else?
    Please consider and then let us decide what next.
    Many thanks for the follow up. Appreciated.
    ATR

  • How can I get print dialog box to show accurately?

    My print dialog box shows the image too large. If I go to print it prints correctly. I have tried updating drivers and reinstalling Illustrator. It has been happening since new update to CC.

    When viewing the print settings, in the Summary List, it shows the Paper width as 9 inches rather than 8.5.
    The Navigator window shows (in my test file) 4 plus signs across the top of an 8.5 by 11 inch page.
    The Print Preview in the Print Dialog shows  only 3.  My printer is set to standard 8.5 by 11 page size.
    Everything prints perfectly in CS6 when I bring the file in.

  • When clicking on a pdf attachment in my email I would get a dialog box asking whether to save or open file. I inadvertantly clicked Save with the 'Always do this' option checked. How can I reverse this and get the option dialog box back. Win 7 Ultimate

    How do I get the dialog box back when clicking on a pdf attachment in my email. Made the mistake of clicking save while the check box was ticked.

    From Control Panel | Programs & Features: right-click on Windows Essentials 2012, then select Repair all Windows Essentials programs.

  • I have a canon MX7600 multifunction printer. My security setting allow connection with the printer. If I disable the firewall it works fine. If the firewall is running I get a dialog box every time I print asking for permission. How do I fix this?

    I have a canon MX 7600 multifunction printer. Each  time I print I get a dialog box asking for permission to allow connections to the printer. This box stays on my screen for a few seconds, if I don't click allow I get a communication error which then requires me to delete the job and start over. I contacted Canon and proceeded with their suggestions to no avail. They now say it is an Apple issue. My security settings are set to allow connection to the canon printer. If I disable the firewall it works fine, once I enable the firewall the problem returns.  This issue is a royal pain. Any suggestions on how to fix it short of buying a new printer?

        jsavage9621,
    It pains me to hear about your experience with the Home Phone Connect.  This device usually works seamlessly and is a great alternative to a landline phone.  It sounds like we've done our fair share of work on your account here.  I'm going to go ahead and send you a Private Message so that we can access your account and review any open tickets for you.  I look forward to speaking with you.
    TrevorC_VZW
    Follow us on Twitter @VZWSupport

  • How do you get the text box text properties dialog box to appear on a MAC?

    how do you get the text box text properties dialog box to appear in Adobe Reader XI on a MAC? I know windows is Ctrl-E but can't figure out what to hit for Mac.

    Right-click the toolbar and you should find it there (including the short-cut, which is probably Cmd+E).

  • HT1589 This doesn't work in Windows 8. Anybody know how to get this dialog box in Windows 8?

    This doesn't work in Windows 8. Anybody know how to get this dialog box in Windows 8?

    Hello,
    Try disabling graphics hardware acceleration. Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
    You might need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
    Then perform these steps:
    *Click the orange Firefox button at the top left, then select the "Options" button, or, if there is no Firefox button at the top, go to Tools > Options.
    *In the Firefox options window click the ''Advanced'' tab, then select "General".
    *In the settings list, you should find the ''Use hardware acceleration when available'' checkbox. Uncheck this checkbox.
    *Now, restart Firefox and see if the problems persist.
    Additionally, please check for updates for your graphics driver by following the steps mentioned in the following Knowledge base articles:
    * [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
    * [[Upgrade your graphics drivers to use hardware acceleration and WebGL]]
    Did this fix your problems? Please report back to us!
    Thank you.

  • TS1389 when i changed my browser to IE 8, I am no longer able to play the songs I purchased. I keep getting a dialog box saying "this computer is not authorized to play this song. Would you like to authorize it? The box has an old apple ID . How do I get

    I try to play the Itunes song I purchased. I have a new computer, another internet provider since I purchased the songs, and have switched to a new internet browser Internet Explorer 8. I keep getting a dialog box saying "this computer is not authorized to play the song. would you like to authorize it?
    An old Apple ID popps up and I am asked for the old passwork which I no longer remember. I successfully changed to a new Apple ID and password.
    when I enter that, a new dialog box appears, saying "this computer is already authorized." When I try to play the song the first box appears again,
    I I go round over and over, with no success playing my songs. Can anybody out their resolve this? Thanks for any help

    Were these songs purchased using another account?
    " I opened a new iTunes account and copied the files to the new account.  "
    Do you mean to a new library?
    Account is a user neame and password with which you purchase content.
    A library is your collection of media.

  • I get a dialog box with a copy of firefox is open and only one copy of firefox can be open at one time.

    I get a dialog box with the following: "a copy of firefox is open and only one copy of firefox can be opened at one time."
    I do not see where firefox is open.
    How do get back into firefox so that i can read the links that are in my emails?
    Thank you.

    Sometimes when FF is closing, not all of it shuts down properly.
    On Windows, start the '''Task Manager''' (Other systems may have
    different names and / or commands). Select '''Processes'''.
    Look down the list for Firefox. Right click and select '''End Task'''.
    If this problem keeps coming up, ask for more help.

  • How to stop internet explorer dialog box

    Hi all. I'm new here. I've just added a flash image ( a moving one ) to my web page. It's like a moving logo. I've used this code
    <object width="150" height="95"> <param name="movie" value="http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf"></param><param name="flashvars" value=src=http://localhost/school/logovid.flv&controlBarMode=none&controlBarAutoHide=false&playButto nOverlay=false&loop=true&autoPlay=true&scaleMode=stretch"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="150" height="95" flashvars="src=http://localhost/school/logovid.flv&controlBarMode=none&controlBarAutoHide=false&playButto nOverlay=false&loop=true&autoPlay=true&scaleMode=stretch"></embed></object>
    to get it working. It's fine in safari, firefox, chrome and flock. But in opera I get a dialog box asking if it's ok to connect  to ftp.adobe.com and then the image doesn't display. Also in IE I get a dialog asking me if it's ok to allow something.
    I can live with the opera problem because it's a minority but I really need to resolve the IE issue because so many people use it.
    Any help very much appreciated.
    Marcus.

    Hi Mike,
    >>Basically i want all users to get restricted to IE9.
    Internet Explorer 10 will be available as an “Important” update through the Automatic Update feature of Windows Update. Users of Windows 7 Service Pack 1, who have opted to
    download and install updates automatically through Windows Update (recommended setting), will automatically be upgraded to Internet Explorer 10.
    However, we can prevent users from upgrading to IE 10 via Windows Server Update Services (WSUS) or System Center 2012 Configuration Manager.
    Regarding how to prevent users from upgrading to IE10 or IE11, the following two articles can be referred to for more information.
    Internet Explorer 10 Delivery through Automatic Updates
    http://technet.microsoft.com/en-us/ie/jj898508.aspx
    Internet Explorer 11 Delivery through Automatic Updates
    http://technet.microsoft.com/en-in/ie/dn449235
    Best regards,
    Frank Shen

  • Photoshop 3 I keep getting a dialog box saying the program is not responding

    I keep getting a dialog box saying "Program is not responding" after opening up Photoshop Elements 3.
    I have to shut the program down and start over.

    This isn't actually the Elements forum, which you can find at:
    https://forums.adobe.com/community/photoshop_elements
    You need to tell them what operating system you are using, and what circumstances causes Elements to freeze.  Does restarting the computer make a difference?  How long has this been happening, and can you correlate to something you have done or installed, like fonts or third party plugins?
    Good luck

  • I don't have my navigation bar at all. I tried to start in safe mode but I never get the dialog box the y say you should get to reset to defaults. Help?

    i don't have my navigation bar at all. I tried to start in safe mode but I never get the dialog box the y say you should get to reset to defaults. Help? I have even uninstalled and reloaded firefox
    == This happened ==
    Every time Firefox opened
    == My wife hit a button and doesn' know what happened

    See if this helps. View > Toolbars, if no check beside Navigation Bar, click on Navigation Bar to check it.
    <u>'''Can't see the Menu Bar'''</u> (File, Edit, View, History, Bookmarks, Tools, Help)?
    Turning the Menu Bar on and off is a new feature in version 3.6.
    ''(~~red:Linux & OSX see~~: [[Menu bar is missing]] )''
    <u>''Windows'' Method 1.</u> '''''Hold down''''' the key and press the following letters in this exact order: V T M then release the key
    <u>''Windows'' Method 2.</u> Tap once on the F10 key, while the Menu bar is visible, choose "View > Toolbars", click "Menu Bar" so that a check mark is placed next to Menu Bar
    <u>''Windows'' Method 3.</u> Tap once and release the key. The Menu Bar will be displayed; then choose ~~red:V~~iew > ~~red:T~~oolbars and click on ~~red:M~~enu Bar so that a check mark is placed next to Menu Bar
    The Menu Bar should now be displayed permanently, unless you turn it off again using View > Toolbars. Check mark = displayed, NO check mark = not displayed.
    See:
    http://support.mozilla.com/en-US/kb/Menu+bar+is+missing
    http://kb.mozillazine.org/Toolbar_customization#Restoring_missing_menu_or_other_toolbars
    <u>'''Navigation Toolbar, Bookmarks Toolbar and other Toolbars'''</u> under View > Toolbars. Clicking on one of them will place a check mark (display) or remove the check mark (not displayed).
    <u>'''To display the Status Bar'''</u>, View, then click Status bar to place a check mark (display) or remove the check mark (not displayed).
    <u>'''Full Screen mode'''</u>
    http://kb.mozillazine.org/Netbooks#Full_screen
    Also see:
    ''' [[Back and forward or other toolbar buttons are missing]]'''
    '''[[Navigation Toolbar items]]'''
    '''[http://support.mozilla.com/en-US/kb/How+to+customize+the+toolbar How to customize the toolbar]'''
    <u>'''''Other Issues'''''</u>: ~~red:You have installed plug-ins with known security issues. You should update them immediately.~~
    <u>'''Update Java'''</u>: your ver. 1.6.0.18; current ver. 1.6.0.20 (<u>important security update 04-15-2010</u>)
    (Firefox 3.6 and above requires Java 1.6.0.10 or higher; see: http://support.mozilla.com/en-US/kb/Java-related+issues#Java_does_not_work_in_Firefox_3_6 )
    ''(Windows users: Do the manual update; very easy.)''
    ~~red:Check your version here~~: http://www.mozilla.com/en-US/plugincheck/
    See: '''[http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates Updating Java]'''
    Do the update with Firefox closed.
    <u>'''NOTE:'''</u> Java version 1.6.0.21 has been released. It is mainly an update for developers of Java applications and most users do not need to be concerned about downloading version 1.6.0.21. <u>'''''At this time'''''</u>, the update option in existing installations of Java 1.6.0.20 are not updating to version 1.6.0.21; <u>'''''at this time'''''</u>, it must be manually downloaded and installed. According to the Java release notes:
    ''"'''Bug Fixes'''''
    ''Java SE 6 Update 21 does not contain any additional fixes for security vulnerabilities to its previous release, Java SE 6 Update 20. Users who have Java SE 6 Update 20 have the latest security fixes and do not need to upgrade to this release to be current on security fixes."'' Source: http://java.sun.com/javase/6/webnotes/6u21.html
    <u>'''Install/Update Adobe Flash Player for Firefox (aka Shockwave Flash)'''</u>: your ver. 10.0 r45; current ver. 10.1 r53 ('''important security update 2010-06-10'''; see: http://www.adobe.com/support/security/bulletins/apsb10-14.html)
    ~~red:Check your version here~~: http://www.mozilla.com/en-US/plugincheck/
    See: '''[http://support.mozilla.com/en-US/kb/Managing+the+Flash+plugin#Updating_Flash Updating Flash]'''
    -'''<u>use Firefox to download</u>''' and <u>'''SAVE to your hard drive'''</u> (save to Desktop for easy access)
    -exit Firefox (File > Exit)
    -''<u>In Windows,</u>'' check to see that Firefox is completely closed (''Ctrl+Alt+Del, choose Task Manager, click Processes tab, if "firefox.exe" is on the list, right-click "firefox.exe" and choose End process, close the Task Manager window'')
    -''<u>In Windows,</u>'' double-click on the Adobe Flash installer you just downloaded to install/update Adobe Flash
    -when the Flash installation is complete, start Firefox, and test the Flash installation here: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15507&sliceId=1
    *<u>'''NOTE: On Vista and Windows 7'''</u> you may need to run the plugin installer as Administrator by starting the installer via the right-click context menu if you do not get an UAC prompt to ask for permission to continue (i.e nothing seems to happen). See this: http://vistasupport.mvps.org/run_as_administrator.htm
    *'''<u>NOTE for IE:</u>''' Firefox and most other browsers use a Plugin. IE uses an ActiveX version of Flash. To install/update the IE ActiveX Adobe Flash Player, same instructions as above, except use IE to download the ActiveX Flash installer. See: [[ActiveX]]
    *Also see: http://kb.mozillazine.org/Flash ~~red:'''''AND'''''~~ [[How do I edit options to add Adobe to the list of allowed sites]]
    <u>'''You '''</u>~~red:<u>'''MAY'''</u>~~<u>''' need to Update Adobe Reader for Firefox (aka Adobe PDF Plug-In For Firefox)'''</u>: your ver. N/A; current ver. 9.3.3 (important security update release 06-29-2010; see: http://www.adobe.com/support/security/bulletins/apsb10-15.html)
    ~~red:Check your version here~~: http://www.mozilla.com/en-US/plugincheck/
    See: http://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox#Installing_and_updating_Adobe_Reader
    ''<u>You may be able to update from the Adobe Reader installed on your system</u>'' instead of going to the Adobe site and downloading. Open the Adobe Reader installed on your system (''in Windows, Start > Program Files, find and click Adobe Reader to open''), click Help, click Check for Updates. Allow the download/update to occur. If you use this method, no need to proceed with the instructions below, <u>'''but'''</u> do look at the two bulleted items at the bottom "'''<u>NOTE for IE:</u>'''" and "Also see:". Restart Firefox and check your new version here: http://www.mozilla.com/en-US/plugincheck/
    ''<u>If you go to the Adobe site to download the current Adobe Reader:</u>''
    -'''<u>use Firefox to download</u>''' and <u>'''SAVE to your hard drive'''</u> (save to Desktop for easy access)
    ~~red:-See the images at the bottom left of this post to see the steps to take on the Adobe site~~
    -exit Firefox (File > Exit)
    -In Windows: check to see that Firefox is completely closed (''Ctrl+Alt+Del, choose Task Manager, click Processes tab, if "firefox.exe" is on the list, right-click "firefox.exe" and choose End process, close the Task Manager window'')
    -In Windows: double-click on the Adobe Reader installer you just downloaded to install/update Adobe Reader
    *<u>'''NOTE: On Vista and Windows 7'''</u> you may need to run the plugin installer as Administrator by starting the installer via the right-click context menu if you do not get an UAC prompt to ask for permission to continue (i.e nothing seems to happen). See this: http://vistasupport.mvps.org/run_as_administrator.htm
    *'''<u>NOTE for IE:</u>''' Firefox and most other browsers use a Plugin. IE uses an ActiveX version. To install/update the IE ActiveX version, same instructions as above, except use IE to download the ActiveX installer. See: [[ActiveX]]
    *Also see: http://kb.mozillazine.org/Adobe_Reader ~~red:'''''AND'''''~~ [[How do I edit options to add Adobe to the list of allowed sites]]

  • How to create non-modal dialog box?

    I'm trying to create a non-modal dialog box. The purpose is to show an alarm for the user but should leave the calling VI continuing to run. I have created such a thing -- the problem is that I can't figure out how to get the dialog box to go away! It stops running but the window just hangs around. See the attached VIs and image.
    Thanks in advance for your help,
    Chad
    Attachments:
    alarm_ui.png ‏11 KB
    alarm_ui-2.vi ‏11 KB
    message_to_user.vi ‏11 KB

    Ok, I've attached the files. Thanks for looking at this.
    Chad
    Attachments:
    alarm_ui-2.vi ‏11 KB
    message_to_user.vi ‏11 KB

  • Why doesn't firefox close out when I'm done with it and close it; when next I try to open firefox again I get a dialog box telling me firefox is open and to close it or restart my computer? I'm tired of doing that one of more times a day.

    1. This happens at least once a day, and sometimes multiple times. Today it's happened twice, thus far. My home page is FoxNews.com and if I leave it up overnight or for longer periods during the day firefox doesn't allow the refresh of the home page it just goes to yahoo 404--error can't find the webpage. Then when I enter FoxNews.com it adds a /error to the url and doesn't allow me to go to MY homepage. So I close firefox and then if I try to reopen it and then I get the dialog box saying firefox is open and to close it or restart my computer. Very aggravating. 2. Also the Adobe flash drive update always fails. 3. Webpages get in loops and fail to load to the point I have to stop and refresh or close out and reopen.

    One situation in which Command+w or Ctrl+w might not work is if the "focus" is in a plugin such as the Flash player used on Youtube after you interact with the player controls. Firefox will continue to send the keyboard input to the plugin until you move the focus back to the page. Does that account for any of the problem?

  • I've developed the problem that when I click on something I get a dialog box with a mess of stuff such as: Back,re;oad page ,Open in dashboard ,print page, etc. It's quite annoying!

    I have a problem that when I click on something I get a dialog box with Back,Reload page, Open in Dashboard,View Source Save page as ETC. I don't get the normal or expected respose to a simple "click". Another problem. For some reason the back and forth arrows it the tool bar of Safari have shifted from the upper left hand cornor to the uuuer rihht hand cornor.

    Something is seriously wrong then.  Did you move it?  There are several Library folders.  One of them should be inside your HOME folder.
    If WZZZ suggestion does not work, re-install your OS by using Mac OS X 10.6.8 Update Combo.  When done, repair permissions and restart your computer.

Maybe you are looking for

  • Error while creating a business rule

    Hi all, I am trying to create abusiness rule from eas console when I am choosing business rule >repsitory view > rules>new rule> select outline, I am able to select a essbase database outline ,but while I am trying to select planning outline i am get

  • Satellite L655-11J - Hard disk activity all the time

    Toshiba please I need help The first run of my laptop I entered my location my name and a password, I install Toshiba updates and Windows 7 updates (the notifications I got) then I noticed the hard drive is active all the time and the laptop is very

  • ADF Faces: processScope

    Hi, all. I have a problem with processScope. I have 2 jsp pages, in the first one I have a table <af:table var="filestore" value="#{fileStoreManagerForm}" ...> For every row of the table I have a commandButton <af:commandButton id="button1" action="#

  • Help - Dynamic ALV

    Dear all,   I made some changes to this sample program from The specified item was not found. My requirement now is the field-symbol should be generated from the internal table.       FORM CREATE_TABLE                                             *   

  • Registration problems

    I recently downloaded the free trial with which I am very impressed. I have started cataloguing past photos and have ordered the full version (shh from Amazon - sorry!). Whilst waiting for it to arrive I want to keep working on my pictures - I assume