Constructor    -    open new Window     -    System.exit(0)

I have 1 package, with 2 java files, lets say a.java and b.java, both are compiled.
a.java and b.java are frontends.
Program starts with "a.java". Here I have a button for "b.java".
If I want to call b.java in a.java, then I call the constructor of b in a.
Then, if b is visible (and clickable), a is in background and is not clickable, until I cancel b.
I would like to do 2 things :
1) If I call b from a, it should be independant, so I still want to have access to a.
2) If I call b from a, and use System.exit(0) in b. I want, that only b exits, and not both b and a.
thanks,
Aykut

For the second requirement, the only thing you can do is to have a.class and b.class run in a seperated JVM. This also satisfy the first requirement.
But for the first requirement alone, I leave to the Swing/AWT expert to answer you.
--lichu                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • My computer suddenly stopped allowing me to open new windows in firefox, how do I reset it to do this

    last week my computer (a thinkpad) stopped letting me open new windows by pushing the + key in a window, so now when I search it replaces the open window. what happened and how do I fix it?

    The suggestion by TonyE will remove the toolbar from Firefox.
    To remove the Ask Toolbar completely from your entire system, see:
    *http://about.ask.com/apn/toolbar/docs/default/faq/en/ff/index.html#na4
    <br />
    <br />
    '''Other issues needing your attention'''
    The information submitted with your question indicates that you have out of date plugins with known security and stability issues that should be updated. To see the plugins submitted with your question, click "More system details..." to the right of your original question post. You can also see your plugins from the Firefox menu, Tools > Add-ons > Plugins.<br />
    <br />
    *Adobe PDF Plug-In For Firefox and Netscape
    **Current versions are 9.4.2 and 10.0.1 (Reader X)
    **More info about version 10.0.1 (Reader X)
    ***New Adobe Reader X (version 10) with Protected Mode was released 2010-11-19
    ***See: http://www.securityweek.com/adobe-releases-acrobat-reader-x-protected-mode
    *Shockwave Flash 10.0 r32
    **Very old version
    #'''''Check your plugin versions''''' on either of the following links':
    #*http://www.mozilla.com/en-US/plugincheck/
    #*https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #'''Update Adobe Reader (PDF plugin):'''
    #*From within your existing Adobe Reader ('''<u>if you have it already installed</u>'''):
    #**Open the Adobe Reader program from your Programs list
    #**Click Help > Check for Updates
    #**Follow the prompts for updating
    #**If this method works for you, skip the "Download complete installer" section below and proceed to "After the installation" below
    #*Download complete installer ('''if you do <u>NOT</u> have Adobe Reader installed'''):
    #**Use the links below to avoid getting the troublesome "getplus" Adobe Download Manager and other "extras" you may not want
    #**Use Firefox to download and SAVE the installer to your hard drive from the appropriate link below
    #**Click "Save to File"; save to your Desktop (so you can find it)
    #**After download completes, close Firefox
    #**Click the installer you just downloaded and allow the install to continue
    #***Note: Vista and Win7 users may need to right-click the installer and choose "Run as Administrator"
    #**'''<u>Download link</u>''': ftp://ftp.adobe.com/pub/adobe/reader/
    #***Choose your OS
    #***Choose the latest #.x version (example 9.x, for version 9)
    #***Choose the highest number version listed
    #****NOTE: 10.x is the new Adobe Reader X (Windows and Mac only as of this posting)
    #***Choose your language
    #***Download the file, SAVE it to your hard drive, when complete, close Firefox, click on the installer you just downloaded and let it install.
    #***Windows: choose the .exe file; Mac: choose the .dmg file
    #*Using either of the links below will force you to install the "getPlus" Adobe Download Manager. Also be sure to uncheck the McAfee Scanner if you do not want the link forcibly installed on your desktop
    #**''<u>Also see Download link</u>''': http://get.adobe.com/reader/otherversions/
    #**Also see: https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox (do not use the link on this page for downloading; you may get the troublesome "getplus" Adobe Download Manager (Adobe DLM) and other "extras")
    #*After the installation, start Firefox and check your version again.
    #'''Update the [[Managing the Flash plugin|Flash]] plugin''' to the latest version.
    #*Download and SAVE to your Desktop so you can find the installer later
    #*If you do not have the current version, click on the "Player Download Center" link on the "'''Download and information'''" or "'''Download Manual installers'''" below
    #*After download is complete, exit Firefox
    #*Click on the installer you just downloaded and install
    #**Windows 7 and Vista: may need to right-click the installer and choose "Run as Administrator"
    #*Start Firefox and check your version again or test the installation by going back to the download link below
    #*'''Download and information''': http://www.adobe.com/software/flash/about/
    #**Use Firefox to go to the above site to update the Firefox plugin (will also install plugin for most other browsers; except IE)
    #**Use IE to go to the above site to update the IE ActiveX
    #*'''Download Manual installers'''.
    #**http://kb2.adobe.com/cps/191/tn_19166.html#main_ManualInstaller
    #**Note separate links for:
    #***Plugin for Firefox and most other browsers
    #***ActiveX for IE

  • I can not open new windows

    When I´m on the internet I can not open new windows, not by ¨file new windows ¨ or by ctrl N. New tabs work but no new windows. It worls well with all other browsers.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.<br />
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.<br />
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    Your above posted system details show outdated plugin(s) with known security and stability risks.
    *Shockwave Flash 10.0 r32
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/

  • Firefox will not open new window, Why?

    I have Vista home base premium operating system. I am a regular user of Mozilla firefox after had lots of positive feedback as one of the best browser. I had no problem for a good while, until recently I found out my add-on firebug stop working. Then I noticed that firefox stopped working properly, ie; it will no more open new window/s. One window will open after rebooting and i can have a number of tabs opened. When I right click on a web link and take the option to open it in a new window it will not open. When I take the option to open it in a new tab then that would be ok. When I go to the toolbar and click on File and chose option "open new window" again it will not open. I have on many accasions completely installed Firefox using the IObit software and use the advance system care to clean the registry and completely scan the system. I then reinstalled the latest version of Mozilla Firefox. I did that twice. The problem is still there. About the ad-on firebug, when I go to the toolbar and click on Tools, i can see Firebug with the extended arrow, but when I click on the arrow to the extended options, it simply would not respond.
    There must something going on, please help.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • Just downloaded Firefox 6.0 and have restarted 4 plus times, but it continues to hang while launching. I cannot open new windows, change any settings, or do anything but Force Quit. I'm on Mac OSX 10.5.8. How do I get past this hang?

    Just downloaded Firefox 6.0 and have restarted 4 plus times, but it continues to hang while launching. I cannot open new windows, change any settings, or do anything but Force Quit. I'm on Mac OSX 10.5.8. How do I get past this hang?

    Long story short: Simply get CC for teams. At 500 bucks a year it's a steal and those 5 licenses in the base package (or was it 10 even?) cover all your computers, at least the 3 ones you mentioned. For system requirements refer to the individual product pages.
    Mylenium

  • Some programs open new window instead of new tab in open window

    Firefox 17.0.1. I have the option "Open new windows in a new tab instead" set, I use the Tree Style Tab 0.14.2012111201 addon (and others unrelated to tabs or windows), and I have multiple profiles. It seems that since I started using multiple profiles some programs (MediaMonkey's help, for example) insist on opening a new Firefox window. If I select any of the one or more currently open profiles it says "Profile in use". Some programs that want to open an internet site to show their help files do open a tab in the current browser window, as expected and desired. But more programs cause the Choose a profile box to display.

    Make sure that you do not start Firefox with the -no-remote switch or have set the environment variable MOZ_NO_REMOTE=1 (Control Panel > System > Advanced > Environment variables).
    If you need to have more than one profile open at the same time then start subsequent instances with the -no-remote command line switch.<br />
    You can not send links from other programs to a Firefox instance that is started with the -no-remote switch.
    In such a case you need to drag links in a Firefox window or paste the link in the location bar.
    *http://kb.mozillazine.org/Opening_a_new_instance_of_Firefox_with_another_profile

  • How do I tell Logic to open new windows always on my external monitor (when available)?

    Hey guys
    I finally got my own copy of Logic 9 from the App Store and I'm very happy with it.
    I have a question though. Logic always open new windows (e.g. when opening a project or when opening a plugin, etc.) in my Macbook Pro's monitor, but at home I have a big external screen which I want to use as the main screen.
    I already have set the external monitor to be the main screen in the System Preferences, so the dock and menu bar always display correctly on my external monitor when available. But Logic still uses my MBP's monitor as main monitor, so I have to move the windows to the external display every time I open them.
    Is there a way to tell Logic to use my external monitor as default when it's availble?
    Thanks, Josh

    There is a thing in OSX that is called "key focus" or "focus".
    When you type on your keyboard (text or any keyboard shortcut), the OS has to know where to send that command to if you have multiple windows open (or multiple applications).  The answer is, it directs the command to the window that has "key focus".
    The key focus window is the one with the active window title bar (not grayed out) and the colored three buttons in the upper left corner (unfortunately, Logic doesn't use colors).
    Now to Logic:
    Logic follows the same rules. However, you have to pay attention to multi-pane windows like the Arrange window. This is a window with more windows (panes) inside. Now the question is, which window pane inside that window has key focus. If you look closely, then you see that the window frame changes  their shade slightly (sometimes very hard to see). Pay especially attention to plugins. They also have key focus when selected and can receive keystrokes.
    Finally to your question.
    You cannot set the preferences on which monitor screen Logic opens  a window. This is determined by the location of the window that has currently key focus. Any new window and also alert windows and dialog windows  (Save, Open) will open on that screen.
    So if you want a window to open on you external screen, click on a Logic window on that screen.
    I have five monitors on my Logic setup and I use a QuicKeys macro (push one button) that sets the key focus to my main monitor and now any new window will open on that screen screen.
    Hope that helps 
    Edgar Rothermich 
    http://DingDingMusic.com/Manuals/
    'I may receive some form of compensation, financial or otherwise, from my recommendation or link.'

  • Open new window: 1st try does nothing; close repeat process and window opens (everytime); why?

    When I try to open a link by right clicking, open new window, my first attempt always does not follow the link and the new window is blank (everytime). I close the blank window, repeat the open link in new window and it actually works and opens the link in the new window. This never used to happen, and for about the last two weeks or so, this has been a source of irritation.

    Try the Firefox SafeMode. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    # You can open the Firefox 4/5/6/7 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    # Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    If it is good in the Firefox SafeMode, your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • New window will not open even when "open new window in tab" is checked

    I cannot open a new window even when i have the option "Open new window in tab" checked.
    Firefox will NOT open a new window under any circumstances.
    Also, when I quit Firefox, the system thinks that multiple instances of FF is running but they are invisible to me.

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • Worst update ever! On my Vista everything is wrong! Back button never active; If I want open pages as new tab it opens new window; FF starts with blank page instead of Google; No url address shown on status bar when I move mouse arrow on the link etc

    Worst update ever! On my Vista everything is wrong! Back button never active; If I want open pages as new tab it opens new window; FF starts with blank page instead of Google; No url address shown on status bar when I move mouse arrow on the link etc.. Please Help!

    Try the Firefox SafeMode to see how it works there. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    * You can open the Firefox 4.0+ SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    '''''If it is good in the Firefox SafeMode''''', your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes
    ''When you figure out what is causing that, please let us know. It might help other user's who have that problem.''

  • Finder Windows always open new windows when clicking subfolders

    since i upgraded to 10.5.6, my finder windows only open new windows when I click on a subfolder. this is no matter what I do with the setting in preferences.
    Also, my finder windows no longer display the side bars with folder icons.
    I searched my library (and whole computer) for the finder preferences .plist file and can't find it. (was going to delete it and re-create it).
    Any ideas here?

    Thanks for the star.
    The default of Finder’s Find will not search that folder, but you can change the pulldown menu just beneath where it says Search, from Kind to System files by selecting Other from that menu and then scroll down the next window and check the box next to System files. You’ll then need to change the pulldown menu next to that to “include” instead of “don’t include.”
    The next time you do a search using Find, that pulldown menu will have System files as an option, if you think you might want to search for something in your home folder.

  • I can't open new windows and add-ons aren't working.

    I recently scrubbed my hard drive due to virus issues in order to contain the virus before it spread. After installing Firefox I noticed that I was unable to open new windows, links that normally opened a new window for Firefox weren't working, and I can't access plug-ins like AdBlock Plus which I used frequently before. I've never had this problem before. I turned off all security settings and unplugged from the internet to see if that was the problem, but that didn't work. I also tried uninstalling and reinstalling Firefox, same deal.

    Hello Anand, '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings, disables most add-ons (extensions and themes).
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu:
    *In Firefox 29.0 and above, click the menu button [[Image:New Fx Menu]], click Help [[Image:Help-29]] and select ''Restart with Add-ons Disabled''.
    When the Firefox Safe Mode window appears, select "Start in Safe Mode".[[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.
    thank you

  • I can't open new windows for my firefox

    Hi,
    I am not able to open new windows in Firefox (Version 31.0) on my Windows 8 PC. When I click the open new window, it doesn't makes any effects.
    This started from yesterday evening, can you please let me know how can I get this resolved?
    Regards,
    Anand.

    Hello Anand, '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings, disables most add-ons (extensions and themes).
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu:
    *In Firefox 29.0 and above, click the menu button [[Image:New Fx Menu]], click Help [[Image:Help-29]] and select ''Restart with Add-ons Disabled''.
    When the Firefox Safe Mode window appears, select "Start in Safe Mode".[[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.
    thank you

  • Firerfox has stopped opening new windows when I ask it to; why is this and what can be done to regain this option?

    Firerfox has stopped opening new windows when I ask it to; why is this and what can be done to regain this option?
    == This happened ==
    Every time Firefox opened
    == not sure - about 2 weeks ago maybe. I recently upgraded to vn 3.6.8

    This is a workstation first off, right? 60 lbs or so?:
    And you have 10.7.2, if not why not?
    Quad core 2.8GHz? 3 x 2GB RAM or more?
    Consider new Mac Pro comes with 1TB drive 50% is actually a lot. Most users off load non system stuff to one of the other 4 hard drive bays.
    As for youtube I do read and saw threads when Lion came out. Lion does not support Rosetta aka PPC/PowerPC code of any kind, plug-ins, drivers and software all. Check into Lion Community?

  • Finder won't stay selected if other programs open and can't open new window

    I have just noticed a new problem. If other programs are open, Finder won't stay selected program. If I alt tab to it or click on it in dock, it shows on menu bar for a half second and goes away. If I right click on icon in dock and select open new window, it will not do so. If I select a folder from the desktop, it opens in Finder with no problem and I can move within the Finder at will.
    I have updated all software. I am running the current Macbook Pro 15in. No other problems noted so far.
    Any ideas? Thanks in advance

    Hi Sleddaddyfro, and a warm welcome to the forums!
    Do you have another account you can log into?
    One way to test is to Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, Test for action in Safe Mode...
    PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive
    Reboot, test again.
    If it only does it in Regular Boot, then it could be some hardware problem like Video card, (Quartz is turned off in Safe Mode), or Airport in 10.4 & below, or 3rd party add-on, Check System Preferences>Accounts>Login Items window to see if it or something relevant is listed.
    Stuffit AVR has been a big one, if you have that use the Pref Pane to turn it off, but others have been implicated too. Check System Preferences for a Stuffit Pref Pane and disable AVR.

Maybe you are looking for

  • CUCM 8.6.2 LDAP User Delete Pending LDAP Sync Status Inactive

    BE6K ver 8.6.2 Client has a user who recently got married.  They changed her account information in Active Directtory to reflect her new last name. At that point CUCM shows her as Delete Pending LDAP Sync Status Inactive CUC shows LDAP User has been

  • How do I set up a sub account for a child who now has an iPod touch

    I have an iPad and and iPod touch 3rd gen. I have just bought my so a 4th gen iPod touch.  How do I set up a secure yet additional sub account for him? I need to be able to see what he is doi g as he is young and he cannot spend any money on the acco

  • Dynamic scrollbar position?

    Hi all, I have a scenario where the user needs a list of materials that is sorted by material text, which is used as a web based sales order creation application. This list can be very long (1000+ lines) and is shown in a Table where one of the colum

  • Adapter Specific Identifiers

    Hello, We are using a File to XML scenario with BPM (Integration Process); wherein the file is read from a certain directory in our PI box and is written to another directory there. We are working on NW2004s XI(PI). We have created the business syste

  • One note Crashes when opening notebook

    I have been using Onenote for about a week. I have been creating a notebook on my hard drive not Sky drive. However now when I try to open the binder. the program becomes unresponsive. The only change I did was going into the file and clicking on one