Open One jframe at a time

I have various links in a table  on a page and when a user clicks on a link a jinternalframe will open up .
I just want one frame to be open at a time. User should be allowed to open only one frame unless he closes that and opens another one.
Can any one suggest how to implement this ?
I am new to Swing.
Thanks,

888525 wrote:
Thanks for the reply.I already have the application built ,I have to fix this bug and the frame I mentioned is already pre created and doing the main function
of the application,I cannot change it to be a dialog. [...]
This is simply not true.
Your code may have an awful structure so that it may be (or may look) hard to change. But switching from a JFrame to a JDialog is mainly changing the extends clause of your Frame Component. (I assume that the coder of this part did not yet realize that extending Swing classes like JFrame or JDialog directly isn't a good idea anyway...)
bye
TPD

Similar Messages

  • Since the os7 update on my iPad, my safari is not right, it only opens one page at a time, crashes when trying to open more, it has no back button. Help

    Since the os7 update on my iPad, my safari is not right, it only opens one page at a time, crashes when trying to open more, it has no back button. Help

    Well, I rebuilt the entire workbook... that was a few months ago and so far, the problem hasn't resurfaced. It really wasn't fun to do, but whatever glitch there was in the file, I eliminated it.
    I think I should mention that I am using Office v.X, NOT Office 2004. I got a new Intel iMac this week and yesterday when I opened up my files, it opened up the test drive (a JOKE of a program if you ask me) Anyway, some of the very minor issues I had with Office v.X were solved in the 2004 version. (When opening up large multi worksheet files without Excel being already opened, the tabs have white text) Anyway, I am still going to wait for the universal version to come out, but it seems that the newer versions may have fewer glitches (as is to be expected)
    At any rate, best of luck to you!

  • Mail: I can only open one email at a time

    Using Mail, I have a very strange phanomenon: I can only open one email at a time. E.g. when writing a new email, I cannot open another email for reference. I need to close and save the new email as a draft before being able to open another one.
    It would be great if somebody could help me with this, thanks!

    Hi Cocolores,
    If you choose File > New Viewer Window from the menu bar in Mail, you can have as many email messages open as you like.
    I hope this information helps ....
    Have a great day!
    - Judy

  • ITunes tells me "Could not be used because the original file could not be found. Would you like to locate it?"  I can locate it and all my other music, but can only open one song at a time.  How do I set it to open all my music whenever I want it?

    iTunes tells me my song selection: "Could not be used because the original file could not be found. Would you like to locate it?"  I can locate it and all my other music, but can only open one song at a time.  How do I set it to open all my music whenever I want?
    Message was edited by: Woildbill

    I just spent several hours dealing with this when switching to a new PC. It was extremely frustrating as I knew my files were on my external HD but no matter how many times I copied my old iTunes folder over the files were still missing...because dummy me had forgotten to "unhide folders" on my new PC and my old files were actually stored in a hidden folder created long long ago.
    This is how I did it on Windows 7 with iTunes 10
    1. Look in iTunes Advanced Preferences to see where iTunes is saving files. (Edit, Preferences, Advanced)
         Example: C:/Users/Woildbill/My Music/iTunes/Music
    2. Ensure you are able to see hidden files - Control Panel, Folder Option, View, Show Hidden Files
    3. Use Your Computer's Search Function to Locate the Missing File (Start, Search, type name of song - I started my search in "My Music" folder but be sure to expand to entire Computer if not found right away)
    4. In Search Results, right-click found folder and select properties. This will tell you where the file is actually stored.
    5. Use Windows Explorer (right-click start) to navigate to the location of the file. It is likley your other missing files are in the same location.
    6. In Windows Explorer, copy the newly located files to the iTumes location from Step 1 and everything should work again.
    Hope this helps!

  • One JFrame At A Time

    I have a JFrame made up of various boxes When the user clicks on a box, a mini-JFrame pops up. So every time the user clicks on a box a mini-JFrame will appear. Is it possible to make sure that only one mini-JFrame appears at a time?
    So what I pterry much am asking. if a mini-JFrame is already open and the user clicks on a box in the main JFrame, I want the already open mini-JFrame tol close so that only the new one will be visible?
    Thank you.

    try modal windows. it a jframe i believe you can make one like this
    super("title", true);
    when you construct it.

  • I lost my only navigation tool bar, so I can only open one window at a time, and can't use google. Help.

    I'm not sure what I did, but I right clicked on my google tool bar (which I use since I can't find the Firefox navigation toolbar) and I somehow disabled it. Now I can only use one window at a time, and if I go to a website, I can't go to another without closing my current one so I can go to my homepage, which is google.

    If the Menu Bar is hidden then press F10 or press and hold the Alt key down to bring up the "Menu Bar" temporarily.
    Go to "View > Toolbars" or right-click the "Menu Bar" or press Alt+V T to select which toolbars to show or hide (click on an entry to toggle the state).
    See also [[Menu bar is missing]] and http://kb.mozillazine.org/Toolbar_customization

  • Only opening one program at a time?

    I was wondering if there is a way to restrict a program so that only
    one instance can be opened at a time.  I have two pieces of motion
    control software that control the same piece of equiptment (one is for
    maintenance and one is for normal operation).  I would like to
    make sure that only one of the programs can be opened at a time. 
    I thought of putting them into a single program with a tab structure,
    but that suggests that you can switch between the tab, and I don't want
    to allow that.  I also thought of having a pop-up when the program
    first launches that askes which program you want to run, that way you
    can only choose one or the other.   But you could still open
    two instances of that application, one of each. 
    The only thing I can think to do would be to use a global variable as a
    flag and only allow the program to launch if the flag is off. 
    However if the program crashed and didn't exit properly the global flag
    would be left on and the program wouldn't start. 
    Does anyone know if there is a good way to do this in LabView?
    Thanks,
    Kasey

    You're welcome. I first used tabs in LV 6.1, before subpanels were available. I didn't want to run subVIs as popups, as a rule. The filetab was a good solution. The selected page obscures front-panel objects on the other pages, so each page is like a separate screen. I labeled the pages according to function, and the user could switch pages accordingly. Switching tab pages is easier than clicking a button on the main VI's front panel to pop up a VI enabling one function; then clicking "End" to disable; selecting another button on main VI's FP for another popup VI; etc.
    But there were certain things I wanted to do without interruption (hardware interactions), so I disabled all pages but the active page as long as the critical task was ongoing. Also, I would disable certain controls even on the active page ("Start" button was disabled until the test was over, etc.). I don't think that strategy violates the spirit of the filetab.
    The only trouble was that most of the pages had complicated functionality, so many of them had clusters full of option buttons. User would click one, I'd have to hide the option menu, show a bunch of other controls, etc. Straightforward but tedious. Subpanels make that kind of thing easier, because the VI running in the subpanel is responsible for its own front-panel display. And different people can develop different subpanel VIs at the same time, without too many problems merging.
    Anyway, I'm glad your problem is solved. I just tried to run two instances of an LV 7 application under Windows 2000 and I couldn't. So that's good to know.
    ::Marty

  • Can only open one link at a time; any page in new tab will seem to load but appears blank. I have to open a new browser to go to a new page. Why?

    This just began to happen yesterday. I have a MacBook Pro 10.7.5.
    I can always get to the first page that I open in a new browser, but any page after that that I try to open in a new tab will seem to load but the page is blank.
    This does not just happen with one website I have tried myriad of different sites.. only the first tab loads in a new browser. I am having to open a new browser if i want to go to another link - very frustrating..

    Hi - This is Eddie from NTK.
    We just released an updated version handling the new Firefox Beta - please grab it from https://addons.mozilla.org/en-us/firefox/addon/new-tab-king/versions/
    Apologies for the bad experience. We're working hard to chase the never-ending Mozilla release train...
    --eddie

  • I just installed CS4 and can only open one document at a time. Has anyone else had this problem?

    $

    Are you sure? Do you see different document names at the top of the window, like tabs in a browser?
    PS: ALWAYS tell us the version number (you did, good) and OS (you didn't, bad).

  • PSE-7 won't allow opening of more than one file at a time.

    I can only open one file at a time in PSE-7.  I just downloaded the trial upgrade from PSE-6.  If I try to open more than one file, PSE crashes and windows wants to send a report to Microsoft.  Elements works fine with only one file.  Anyone got any idea's ?

    Try to exit out of Elements 7 and go back in to your Organizer.  Open a file and choose to edit it in full edit.   Then leave it there and go back to Organizer and choose another picture to go through the same process.  Now you should have both pictures showing in your bin at the bottom of the edit screen which you can toggle back and forth to as you edit each.  If you want them both in the edit window itself you can you to the Window tab - Image - and choose to tile them or cascade them.   Good luck, hope this works.

  • How do i open just one file at a time

    i just got lightroom 4.  how do i open just ONE FILE??  i don't want to open catalongs, backup files, create smart collections auto import or any of that.  i just want to open one file at a time

    jared54 wrote:
    i just want to open one file at a time
    You want Photoshop or Elements and use the ACR plugin. Lightroom is the wrong application for you; square peg in a round hole and all that.

  • I can only view one email at a time

    I can only view one email at a time when i open my email app

    Reopened this question in another forum, since I am not talking about an iPhone but a MacBook Pro:
    Using Mail, I have a very strange phanomenon: I can only open one email at a time. E.g. when writing a new email, I cannot open another email for reference. I need to close and save the new email as a draft before being able to open another one. Obviously, I am not reading two emails at a time, but I might be writing one and needing infos/text from another. It sounds stupid, but that's the way it is. :-/

  • How to make only one JFrame active at a time !!!

    Hy, I have created a JFrame and I have placed a
    JPanel in it. I also have a JButton "New" on the
    JPanel. When I click on the "New" Button, another JFrame
    appears. But I want ONLY one JFrame to be appeared
    at a time. That is when a JFrame appears on the JPanel,
    I should not be able to add another one.
    If it is not possible to do this with JFrame, then how to do
    it with a JDialog
    How to do this.
    thanks

    You can declare a boolean variable in your class and set it to true if you open a window. Next time when you click the NEW button, check whether that boolean value is true or false. If true then don't open a new window. Also when u close the frame window, set the boolean value to false.

  • When I open up iphoto and click on the events tab then double click on an event, it used to show minis of all the photos in that event.  Now it shows only one photo at a time.  How do I get it back? Can you help?

    When I open up iphoto and click on the events tab then double click on an event, it used to show minis of all the photos in that event.  Now it shows only one photo at a time.  How do I get it back? Can you help?

    On the bottom bar of the window (on the left iPhoto 11, on the right in other versions) note the slider. Drag it left.
    Regards
    TD

  • Photoshop can't open more than one graphic at a time without crashing

    I get the error:
    The instruction at "0x7c918af2" referenced memory at "0x00000010". The memory could not be "written".
    Anytime I try to open more than one image in Photoshop at a time, regardless of how I do it - doesn't matter if I choose the image and "open in photoshop" or if I am in photoshop and go to "file/open".
    It's Photoshop CS3. I have already uninstalled, restarted the computer and reinstalled. I tried to "repair/change" from Windows, but it asks for the CS3 cd and then CS4, which I don't have since I'm using CS3. 
    This is quite frustrating as it would be nice to be able to merge photos and the myriads of other things you can do with multiple images at once, if opening them does not crash your program.

    mikeobe wrote:
    OK, kinda slooow here, I hope I'm not trying your patience!? If I understand you correctly, install dummy drivers and then the drivers that came with my printer, Designating NO default printer! Then when I need to use the printer I will have to declare which one each and every time?
    Or, just intall by new printer but do not Delcare it as the Default printer, I guess in this instance there would be NO default printer?
    You may not even have the problem!
    Have you installed the new printer yet?
    There are many more people who don't see it happen than those who do.
    PS: there is always a default printer.

Maybe you are looking for

  • My classic 6th generation gets stuck syncing on the same number.

    When i go to sync my ipod to itunes it synces up to song number 82, so i deleted the song number 82 and it still messed up, i deleted the next number 82 and it didnt work either. I have moved ports on the laptop, i have tried different cords, i have

  • 7.0 no longer syncs with Groupwise

    Unfortunately, I did not realize that GroupWise is no longer compatible with Intellisync when I installed the recent update.  I use GroupWise at work and don't have a choice to switch to another supported program.  I need to know how I can revert bac

  • Return of type BAPIRETURN1 is unknown - BAPI_SALESORDER_CREATEFROMDAT1

    Hi people, I have a scenario to input SalesOrders from a legacy app. One of the return structures, RETURN, is of type BAPIRETURN1. When I run the scenario, in the response mapping, I get this error <i>"Parameter RETURN has type "BAPIRETURN1" which is

  • Adding new rows after displaying subtotals in an ALV report by using OOABAP

    Dear All, I am creating an ALV report, displaying subtotals and total by using Classes. I have used classes CL_SALV_AGGREGATIONS (Method : add_aggregation) and CL_SALV_AGGREGATIONS (Method : add_sort) for sorting and doing subtotals. Output of my rep

  • How can I get raw converter for Sony a7m2

    Aperture does not recognize raw files from my new Sony Alpha a7m2 camera. How can I get an update for Aperture? I have Aperture 3.6. I have macbook pro retina display using ox10.10.1