How to close only one window

hi,
I'm developing a java application which will involve a pop up text box (a JPanel). This has a JButton that when pressed will cause the pop up box to close but not the actual application. I've tried System.exit(0); but this causes the entire application to close.
Could someone tell me how to close the window but keep the application running.
Cheers

Switch it to invisible, and dispose it.

Similar Messages

  • When I want to close only one window it closes all of them. How do I close just one.

    I only want to close one window. How can I do this without closing them all. But for this, I would use Mozilla all the time.
    Thanks, Joyce

    You do not mention what your Operating System is. You should be able to close only one firefox window, and then finally exit from firefox as a whole by using Firefox Button -> exit.
    Also or alternatively consider use [[tabbed browsing]].

  • How do you close only one window (not tab) when you have two open?

    I can close a tab when I have multiple ones open but if I have two windows open and I close one window it closes all other windows. How can I close just one window without shutting down any other windows?

    Yes, when I click on the red X it closes both windows. I'll try the Ctrl+w
    Thanks

  • How to close only one frame

    Hi!
    How do i close only one frame?
    I know this close everything:
    private void exitActionPerformed(java.awt.event.ActionEvent evt) {                                       
    Component panel = null;
    System.exit(0);
    But i tried this: but dos'nt work ....
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new configuration().setVisible(false);
    }

    r035198x wrote:
    Enojado wrote:
    Sorry, i tried this:
    private void confexitActionPerformed(java.awt.event.ActionEvent evt) {
    new NewJFrame().setVisible(false);
    }Which frame are you hiding here? You are creating a new one and hiding it before it has a chance to say or show anything. That's incredibly rude.
    P.S setVisible(false) just hides. dispose() throws the frame and its components into the trash bin.Yep, that was the answer. :] thanks

  • Sometimes I just want to close ONLY one window, but Firefox is closing ALL TABS, and I don't want this!

    I sometimes will open several windows, especially from my Comcast mailbox. When I am through with that window, I will close it, but leave the other ones open. FIrefox won't do this any more, When I close 1 window, Firefox send me a message stating that it is CLOSING ALL TABS. I DONT WANT TO CLOSE all of them, I just want to close the window I am closing!. This is very annoying, because I have to re-log back into everything, because FIrefox is "CLOSING ALL TABS", and all I want to to close ONE window...I am about ready to chuck this browser....I tried to find an answer to this in tools, but was unable to do so. Please help me with this

    Use CTRL+W - to close the surrent tab.
    '''Try the Firefox Safe Mode''' to see how it works there. The Safe Mode is a troubleshooting mode, which disables most add-ons.''
    ''(If you're not using it, switch to the Default theme.)''
    * You can open the Firefox 4.0+ Safe Mode by holding the '''Shift''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Don't select anything right now, just use "'Start in Safe Mode"''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shift key) to open it again.''
    '''''If it is good in the Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one.
    Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''

  • In 4.0.1, if I have multiple firefox windows open, when I try to close one window, it closes all. Why can't I close just one window at a time?

    I open multiple Firefox windows so that I can quickly Alt+Tab between windows instead of using my mouse to point to tabs. When I close one of my Firefox windows, the browser closes all my windows. What happen to the "Close" feature under the File tab? Why don't I have the option to close only one window at a time?

    I don't understand what happened above, but ericn1, wasn't your problem that you tried to close one browser window using the red X, and ALL of them closed? How did any of the above help you solve your problem? jscher2000 gave you alternate methods of closing windows but said that closing a window with the red X "should" work. It doesn't work, because it is closing ALL your windows, not just the one you are clicking on. I am now having the same problem. with Firefox.
    Understand I do not have the problem with any other program. In other words, I can open multiple windows in Paint Shop Pro, IE, Notepad, etc. and close one with the red X and all others remain open. It ONLY happens when using the Firefox browser.
    The red X should close only the window that you are in when you click on it.
    NOW, before someone suggests tabs, I don't like them and don't use them. My choice. Before someone says my browser is out-of-date, (3.6.13) I am using it because it was the last version that worked reliably on my computers, both at home (Windows 7 Professional) and my office (Windows XP Professional).
    When I updated to the last Firefox browser, both computers started seizing up (nothing worked and had to reboot using power button) Removing that version of Firefox and going back to this version solved that problem. Fact remains, version has little to do with this problem. I've seen other posts around the net about this with different (newer) versions of Firefox.
    So . . . does anyone have a solution to this that doesn't involve using keystrokes or hot keys to close windows instead of the red X that should work properly?

  • I am no longer able to use a keyboard shortcut to close a window when there is only one window open.

    I can use Command+W when there are multiple tabs open to close one window at a time, but not when there is only one window remaining. It's driving me crazy because I have to click on the red dot. It won't close with File > Close either. Nothing changed (that I know of) from last week to this that would cause this. It works fine in safe mode but I can't figure out what's conflicting. Also, I've tried reinstalling Firefox but that did nothing. Help?

    Problem solved! It's the Evernote add-on. They updated something on November 6. I've disabled it until that quirk is fixed. Thanks.

  • No tabs are showing when only one window open. How do I open a new tab?

    Just upgraded to latest version. When only one window is open, no tabs show across the top. If I have two tabs open, both show across the top, but go to no tabs if I close one of them. And, the + sign is available for opening a third tab if at least two are open. The only way I can find to open a new tab when only one window is currently open is to turn off the menu, click the orange Firefox drop-down, and click New Tab. Why isn't it showing a tab, and a + tab (to open a new one) when only one tab (window) is open.

    Thanks everyone for the quick responses. Cntl + T works fine, and I did move the + window to the nav bar, which also works well.
    I had already gone into options and checked the box for always showing the tab bar, but it doesn't show it. I even unchecked it, saved the settings, the rechecked and saved the settings. Doesn't seems to make any difference.
    I'm okay with it not showing a tab when I only have one open, just so I can get to a new one easily when I want it.

  • How do I turn off the tab bar in FF 24 when only one window is open?

    I have just updated to FF 24.0 from FF 20 with Tab Mix Plus already installed. (OSX 10.6.8) From the Firefox Preferences menu, Tabs box, I have set the "Hide the tab bar:" option to "When I have only one tab." I have also gone to the Tab Mix Plus option box and set the drop down to the same value. Unfortunately, it doesn't have the desired effect. Firefox opens to my home page with a tab at the bottom. (I prefer the tabs at the bottom and that setting still works.) With only one page open, that tab is completely unnecessary, takes up space, and just plain bugs me.
    Now, here's what I have found. Once I've started Firefox, if I go to the Tab Mix Plus options box and select "Hide the tab bar: Always" and then set the option back to "When I have only one tab" I can enjoy one page without the tab bar, that is, until I've opened several tabs and then closed all but one. Then I see the tab bar stubbornly remain. An incompatibility between FF and Tab Mix Plus, perhaps. Is FF 24 not letting Tab Mix see the number of open tabs? Dunno. But I can't seem to solve it.

    Are you saying that the problem lies not with Firefox but with Tab Mix Plus? Tab Mix worked up through FF 20 to my knowlege. And I see from other questions that the persistant tab bar was an issue with FF 23 as well.
    Please note, that setting aside the extension issue, the Firefox preference Tab option should turn off the tab option when there is only one window open without any help from addons or extensions. I have disabled Tab Mix Plus, and set the FF option correctly, but the problem remains. As I see it, FF is not working as this user expects it to and is (slightly) broken.

  • Firefox 23.0 doesn't warn me when closing multiple tabs, unless only one window is open.

    I've selected the option for Firefox 23.0 to warn me before I try closing windows with multiple tabs. If only one window is open and that window has multiple tabs, I receive the warning. If more than one window is open and multiple tabs are open in any or all of them, the warning doesn't appear until I get to the final open window.

    hello, the message is only there by design if you close the whole browser with still a few tabs open in it (and also only when you choose not to store browser history). if you want to restore one of multiple windows closed during a session you can do so from the history menu or the keyboard shortcut ctrl+shift+N.

  • Folder tree in only one windows

    Hi,
    is is possible to see a folder tree in only one window?
    I mean, if I use the ConsumerCollectionTreeRenderer, I would see the tree divided in two frameworks. In the left framework the folder tree and in the right one the content of the selected folder.
    What I really want is to see all the tree in only one framework, the tree and the framework.
    Thanks in advance.
    Regars.

    you might wanna check this thread out, they seem to have the same problem
    http://discussions.apple.com/thread.jspa?threadID=719079&tstart=0
    max

  • How to backup only one tablespace in cold backup noarchivelog mode

    Hi,
    How to backup only one tablespace in cold backup noarchivelog mode
    Reagrds,
    Rushang

    We have to restore all 50 GB database if we fail in scripts meanwhile to start again the data load.
    Out scripts populater only two tablespaces.
    That's why if i take backup of those tabblespace then i have to restore only those tablespace not whole database.
    Regards,
    Rushang

  • How to close a popup window for system events?

    Hi,
    I have a screen 110 which shows several input field in popup mode.
    The Cancel button can close the screen.
    But my question is how to close the popup window for the following system events?
    1, Customer clicks the cross button in top-right corner
    2, Customer clicks the system icon in top-left corner and then select either: "Close" or "Stop Session"
    The PAI subroutine of the screen has not been triggered for the above system events.
    Thanks for the coming help.
    Best Regards,
    David

    Hi Siddharth,
    I did check with another very experienced ABAP developer.
    The solution was the same as what Arunima Rudra provided.
    And I got a sample program which did work properly.
    The headache is that the system events in my program still cannot be triggered even after I have all the same changes.
    Anyway, I suggest you to try the solution as provided by Arunima Rudra.
    It should work for 2 system events:
    1, Customer clicks the cross button in top-right corner
    2, Customer clicks the system icon in top-left corner and then select either: "Close"
    For "Stop Session", it should not be handled by popup.
    You can observe the same behavior in ALV sorting configuration popup.
    Good luck!
    Regards,
    David

  • How to deploy only one project from WebCenterSpacesExtensions to WebCenter

    Hello,
    I've been provided a customized WebCenterSpacesExtensions application with 3 custom task flow projects in it.
    I am having trouble finding information on how to deploy only one project at a time. Can someone please tell me how to do this? Is it difficult?
    Thanks in advance.

    Take a look at chapter 53 in webcenter developer's guide which explains the same:
    http://docs.oracle.com/cd/E25054_01/webcenter.1111/e10148/jpsdg_wcsres.htm#BABDBECE
    Thanks,
    Navaneeth

  • How to boot only one group in remote machine from master machine

    Hi,
    I want to know the command to boot entire remote machine from master machine and how to boot only one group for remote machine from master machine.
    Thanks
    Amit

    You can boot the entire remote machine (after booting the Master machine) as follows:
    tmboot -B <lmid of remote machine> -l <lmid of remote machine>.
    For all the available tmboot options see http://download.oracle.com/docs/cd/E18050_01/tuxedo/docs11gr1/rfcm/rfcmd.html#wp1032112
    Regards,
    Malcolm.

Maybe you are looking for

  • Failure to Install Adode Player

    He guys I have been trying to install the Adobe Flash Player in the windows xp.When I install from the adobe.com the process does not go up to the end. I have tried to download through other facilities and install, but when I doubleclick to install t

  • Can more than one build in or out object appear/ disappear simultaneously?

    I have objects (images and text boxes) appearing one at a time but I would like them all to disappear simultaneously so is there some way you can group objects to appear and disappear at the same time? Thanks Kevin

  • JButton activity

    Hello everyone I have a little special problem... I am creating a small game, and for that, I have 9 buttons, which much act together. If I press a button, it's supposed to send it's name to the ActionListener, but the only thing that it sends, is it

  • Elements downloading from DVD

    I am not very good at understanding computers !!  BUT I have downloaded Elements 12 from the DVD and put it into a new folder in hard drive C , when I try to open this folder I get only as far as this message ;  (Error opening installation log file.V

  • Oh my god never mind the iOS 6 maps that is nothing compared to the iCloud Control Panel on windows.

    I had to remove it because it deciding to attempt to use all available memory 8GB's of it and kill my HDD at the same time.  Not worth it. Really poor quality from Apple and I found similar issues with Safari as well recently.  It makes me believe th