Dialog focus in Windows/NT

When a user opens up a dialog window in my java app, and then switches to some other program (dialog still open) and then switches back to the original java app, the dialog frame is now 'behind' the main application's frame.
The dialog frame does not appear in the system bar, nor can it be accessed using alt-tab. The only way to get to it is to close down the windows of the running apps until you find it again.
How can I get around this??

You might try passing in the parent frame/dialog as the first parameter in your JDialogs constructor.

Similar Messages

  • Web Dynpro Dialog Box / Modal Window is not working properly on firefox

    Hi All,
    We are having problems with Web Dynpro Dialog Box / Modal Window in Firefox.  Dialog Box / Modal window won't show up properly on. They look like transparent windows. Our server is Netweaver 7.0 SP 19.
    Same code is working fine in Internet Explorer. Please advise on this. Below is the code I am using.
    Modal Window:
    IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows("SomeWindow");
    IWDWindow sampleWindow = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
    sampleWindow .show();
    Confirmation Dialog Box:
    IWDWindow dialogBox = wdComponentAPI.getWindowManager().createConfirmationWindow(
    "Click OK to save data", IPrivateSampleView.WD_EVENTHANDLER_ON_ACTION_SAVADATA, "OK");
    dialogBox.show();
    Thanks
    Sreekanth

    Hi,
    Maintenance and Availability of SAP NetWeaver 7.0 [original link is broken]
    Last Item:
    Product Availability Matrix
    SAP NetWeaver 7.0 Product Availability Matrix   (SMP login required)
    Application Server - Java
    FIREFOX 2.0  LINUX REDHAT EL3/IA32 32BIT  Released  01.04.2008     
    FIREFOX 2.0  LINUX REDHAT EL4/IA32 32BIT  Released  01.04.2008     
    FIREFOX 2.0  MAC OS X 10.2  Released  01.04.2008     
    FIREFOX 2.0  MAC OS X 10.3  Released  01.04.2008     
    FIREFOX 2.0  MAC OS X 10.4 (TIGER)  Released  01.04.2008     
    FIREFOX 2.0  SUSE LINUX 10.1  Released  01.04.2008     
    FIREFOX 2.0  SUSE PROFESSIONAL 9.3  Released  01.04.2008     
    FIREFOX 2.0  SUSE SLED 10  Released  01.04.2008     
    FIREFOX 2.0  WIN 2000 PROF.  Released  01.04.2008     
    FIREFOX 2.0  WIN VISTA 32-BIT  Released  01.04.2008     
    FIREFOX 2.0  WIN XP 2002 HOME 32-BIT  Released  01.04.2008     
    FIREFOX 2.0  WIN XP 2002 PROF. 32-BIT  Released  01.04.2008     
    FIREFOX 2.0  WINDOWS SERVER 2000/IA32 32BIT  Released  01.04.2008     
    INTERNET EXPLORER 6.0  WIN 2000 PROF.  Released  01.02.2006     
    INTERNET EXPLORER 6.0  WIN XP 2002 HOME 32-BIT  Released  01.02.2006     
    INTERNET EXPLORER 6.0  WIN XP 2002 PROF. 32-BIT  Released  01.02.2006     
    INTERNET EXPLORER 6.0  WINDOWS SERVER 2000/IA32 32BIT  Released  01.04.2008     
    INTERNET EXPLORER 7.0  WIN VISTA 32-BIT  Released  01.04.2008     
    INTERNET EXPLORER 7.0  WIN XP 2002 HOME 32-BIT  Released  01.04.2008     
    INTERNET EXPLORER 7.0  WIN XP 2002 PROF. 32-BIT  Released  01.04.2008   
    Hope it helps
    Regards,
    Daniel

  • Bug: Navigation: Save As Dialog Boxes in Windows (thus any application) goes to Computer Drive C - instead of Quick Access

    Bug: Navigation: Save As Dialog Boxes in Windows (thus any application) still have its legacy behavior implemented and navigates to a computer drive, by preselecting and letting the user start at Computer > Drive C - instead of Quick Access.
    This is simply a forgotten correction after Quick Access has been introduced that needs to be corrected for Quick Access to work effectively (in a valuable way for the user) with files not just during create and modify operations on files - but also Open
    file - using File Dialog Boxes (although users may use launch instead for Opening files using i.e. Explorer or navigation from shortcuts on the desktop).
    This missing change of File Dialog Box behavior is unintended and now contradicts the new design with Quick Access for faster navigation (so you should not have to start with a scroll and extra navigation to look for Quick Access (contradiction:
    i.e. QUICK Access)
    Please support the new navigation provided by Quick Access intended to give Quick Access - thus Save As must be able to start here.
    For variability, may be provide an overriding option in Explorer>Folder Options>General (if you change the default behaviour in the File Dialogue) to have Save As start at Computer > Drive C.
    ! Remember to do the change for the Common File Dialog as well - used by most widespread software applications in the Adobe software applications portfolio, i.e. Adobe Photoshop CS6

    Thank you for your time and response! Unfortunately, we have the machine locked down pretty tight (they are public use computers that require heavy restriction) and it is set to restrict all drives so access is limited to the local profile. We did try
    testing your method, however, by adding the Desktop as an allowed location in the Office policy (which would not solve the issue for the other applications but was good for a test) using the path %userprofile%\desktop. When choosing that location, it does
    not throw the error but unfortunately, it does not remember like it did for your with the E: drive so it still always throws the error when first loading the dialogue box no matter what I do. If you're able to confirm that this is simply by design and we're
    just expected to inform our users to click through the errors, then I guess that's the accepted answer. Although, do you think that there might be a registry key value that is set after you save to the E: drive for the first time? Maybe we could set that value
    to %userprofile%\desktop if it's doing the redirection after the first save through registry. Thanks again!

  • IE11 can't post form data to specific frame or window dialog opened via window.open()

    Hello,
    Form POST targeting to specific frame or dialog popped up via window.open() no longer works in IE11.
    It worked fine in IE10 and all previous versions of IE.
    Please see screenshot attached with simple test that reproduces this problem.
    Direct Link to screenshot:
    http://173.231.98.44/cgi/TestFolder/IE_11_widow_frame_targeting_BUG.jpg
    Direct link to simple test page demonstrating this problem:
    http://173.231.98.44/cgi/TestFolder/page2.asp
    Note: IE11 doesn't report any errors, doesn't complain about anything, even when debugged via F12 developer tools. The only thing it complained initially was missing doc type declaration on top of page, but even after adding doc type definition, problem still
    persists, makes no difference.
    I tested this on fresh install of Windows 2012R2 while testing our web application with the new IE11.
    I believe doing this on Windows 8.1 with IE11 will result in same bug/problem.
    Our web application uses a technique whereby it launches a popup window via call to window.open(), passing blank URL and specifying a name for the new window. It then does a from post targeting the name of new dialog.
    In IE11 this functionality has been broken and no longer works.
    Problem is that IE11, instead of posting form to the newly created dialog, it launches a new instance of IE and then loads the requested form in this new instance of IE, while the dialog launched via window.open() remains on screen and is empty. If user repeats
    launching same form post request (via button click for example), IE 11 keeps creating new empty dialogs and new IE instance for every form post executed. This totally breaks our application because we use many so called "wizards" that encapsulate
    specific functionality in separate web page launched in a popup window.
    Another related problem is that if a dialog is launched with window.open(), the java script code in the dialog can not target the parent frame that opened the dialog anymore. In our application, when a dialog is closed, it typically needs to trigger a refresh
    of a specific frame within the parent window (again targeted by name) to reflect saved/updated info that user entered in the popup dialog. The result is that we can't refresh the parent frame after the pop up dialog closes. Instead, IE11 launches
    a new instance of IE (not just a tab, but a whole new instance) and loads the parent frame in it.
    The problem seems to be caused by broken frame name targeting mechanism in IE11.
    Note that we force IE to compatibility mode 5, but even without specifying any compatibility, the problem remains.
    Typical java script to reproduce this is:
    <input type="button" onClick="Popup(this.form);" name="btn2" value="Popup Dialog">
    function Popup(f){
        window.open("","MyNewDialogName","width=200,height=150");
        f.action = "page3.asp";
        f.target = "MyNewDialogName";
        f.submit();
    Expected: IE11 should correctly post form to and load targeted page in the newly popped up dialog, without opening new IE instance and new tab. Repeatedly posting form to existing popup window should reuse that window, not keep on launching more popup windows
    and then more IE instances.
    Steps to reproduce the problem (include URL if applicable):
    URL with sample page: http://173.231.98.44/cgi/TestFolder/page2.asp
    1) Create page1.htm: <html><body>display "I'm in a popup window now ..."</body></html>
    2) Create page2.htm with a button and onclick() event calling function to open dialog, and do form POST targeting new dialog calling page1.htm, like below.
    <input type="button" onClick="Popup(this.form);" name="btn2" value="Popup Dialog"> function Popup(f){
        window.open("","MyNewDialogName","width=200,height=150");
        f.action = "page1.asp";
        f.target = "MyNewDialogName";
        f.submit();
    3) Open IE11, navigate to page2.htm, click the "Popup Dialog" dialog button. IE 11 will popup the new dialog, but then it will also launch new instance of IE11 and display the page1.htm in it, instead of in the popup dialog.
    Has anyone else encountered this problem?
    Any insight or help is appreciated.
    Regards
    Peter

    the default action of <input type="button" is submit. Note also that the default type of <button> elements is 'submit' also.
    add a return false to the onclick inline event handler (which constructs the form submit attribues) to cancel the default form.submit behavior.
    form elements have a target value with which you can specify the name window into which you want the form to open in.
    <form action="process.aspx" target="popup">
    you can use the window.open method with a query uri to achieve the same outcome.
    window.open('process.aspx?s=search+term&amp;foo=bar','popup',{features})
    the outcomes of all scripted windows are affected by
    your IE Popup blocker and tabbed browsing settings
    which in turn is affected by your IE Security zone settings (for popup blocking handling)
    and the settings of any third-party popup blocker you may have installed and enabled... it may not necessarily be visible on your browser toolbar.
    The first step in troubleshooting web browser issues is to test in no-addons mode.
    Use the Developer Tool to find out what documentMode the test page is opening in on your system. On Modal/Modeless popup windows use the f12 key to display the Developer tool positioned on the contentWindow.
    Use File>Properties to find out what IE Security zone it maps to... there is a security setting to prevent navigation into zones of lower integrity.
    Rob^_^

  • Font Dialog in MS Windows

    Hi,
    What is the equal (in Java) font Dialog in MS Windows? Is Font Dialog same as Courier New Bold or Arial Bold or another one?
    For example, when there are buttons, ones is JButton, and other one is simple/classic Windows Button. These buttons have same caption but when I get string width from buttons, the values are not equal.
    Thank You

    You can get the font name by calling getFont().getFontName() or getFont().getName() from the buttons.
    There are a few default fonts that are mapped to some other fonts
    sansserif
    serif
    dialog
    monospaced
    These mappings can be found in a file called font.properties in your jdk installation. It is in the lib folder.

  • Dialog intance on windows

    Hello SAP Gurus,
    I'd really need to seek for your help. Do you know how to add another dialog instance on windows/mssql but the CI is in unix/db2? what are the steps that I need to do? thanks in advance.

    hi
    Kindly go thru the below web link
    dialog intance on windows
    Regards
    M

  • ADS in the Java stack of a Dialog instance on Windows + CI on iSeries

    Hi,
    I read the document "Using Adobe Document Services with SAP on IBM DB2 for i5/OS".
    Summary of the document -
    There are two possible technical scenarios:
    1. ADS in the Java stack of a Dialog instance on Windows
    1.1. ABAP+Java dialog instance on Windows
    1.2. Java dialog instance on Windows
    2. ADS in a SAP system on a supported platform
    2.1. ABAP+Java central instance on Windows/Unix
    2.2. Java central instance on Windows/Unix
    The document recomammeds technical scenario 1, that is, install a Windows Dialog instance.
    Choosing an ABAP+Java or Java system depends on the usage scenario for Interactive Forms:
    - Interactive PDF use: Java mandatory, ABAP+Java possible
    - Interactive use in SAP Maanger Self_Services/batching of forms:
    ABAP+Java mandatory but Note 993612 describes the status for NW04s SP12 onwards.
    End of summary -
    Our prefered rechnical scenario is: "1.2. Java dialog instance on Windows" to minimice resources.
    Our usage scenario for Interactive Forms includes "SAP Manager Self- Services".
    Our interpretation of note 993612 is that we do not need double stack installation. Could you confirnm this ?.
    If yes, we are going to install a Java Dialog instance on Windows connected to our Java Central instance on iSeries (our SAP Portal system) to use ADS.
    Best regards.

    Hello Torrell,
    your statements sound reasonable, also including SAP Note 993612.
    To decide, though, whether a single stack would be enough (especially based on the aforementioned note), you will need the advise of an ADS application expert (or someone else who has implemented your scenario, independent of the platform).
    I thus assume that you will not get an answer in this forum. Your question is ADS application specific.
    When you know for sure that a single stack will be enough, your approach to use a Windows dialog instance will be fine.
    Best regards, Barbara

  • How to ensure that giving the firefox.exe command in run dialog box in Windows opens up a specific firefox Profile?

    I have a firefox profile with certain proxy settings set. When I type firefox.exe in the run dialog Box in windows it opens up the default profile. I have a firefox shortcut specified with the command line args -P "profilename". I want this to be used as it will force the custom profile. Is there an environment variable that i can set for this?

    You can set the default profile to use in the Profile Manager to be used when no profile is specified and otherwise use desktop shortcuts with a profile specified (-P "profile").<br />
    There is also a "Don't ask at startup" check box in the PM window.
    *http://kb.mozillazine.org/Profile_Manager

  • 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.

  • InDesign File Save Dialog Focus Issue

    In this newest version of CS5 it appears that when you go to save the focus in the dialog window for saving is automatically on the Filename as opposed to CS3 and 4 where the focus was automatically in the window displaying folders and files. This significantly increases clicks and time throughout a day. We're so used to plopping in typing in the first few letters of a folder then a sub folder and saving, but now, even if you click in the window it basically fights you to keep focus on the filename. I have to click in the window three times to get the focus to shift so I can navigate by typing in the first few letters and using enter. Now if I just go in to do that without remembering, it will rename my file to whatever I am typing and then save it where ever I was by default. Again it use to work I could exit the last folder I was in by using backspace, then type in the first few letters of a folder hit enter to go into the folder, type a few letters of the sub folder and then hit enter and then click save. This was worlds faster and how we are now essentially trained.
    It would not be such an issue if there was an option to change this functionality, but it appears it is as a result of coding in CS5 InDesign and we cannot find an option to change this behavior, this is the only program period that behaves this way, though we dont work as often in the other Adobe programs, all of our other third party programs perform in this manner fine, and Windows 7 support has assured me twice now that this is an issue Adobe must be the one to address.

    The focus has always started on the file name. When you change it to the folders and start typing, it does seem to want to go back to the file name. I've seen this in CS4 and CS5 on Vista 64 and Win 7 64. It's not supposed to work that way, it's annoying as hell and I suggest you report it to Adobe here:
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Bob

  • Slow opening print dialog screen in Windows 8.1

    I have Adobe Reader 11.0.5 and am using Windows 8.1.  When I click on the print icon, it takes 20 to 30 seconds for the print dialog screen to open.  This is maddening.  Does anyone know why and how to speed it up?

    Hello eycon
    Try out the article below to troubleshoot your issue with iTunes freezing on you. Also check to make sure that when you removed iTunes, did you uninstall in the order of the second article as it does make a difference when troubleshooting the issue.
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/ts1717
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    http://support.apple.com/kb/ht1923
    Regards,
    -Norm G.

  • How do you disable OS X (when you focus on a window) from auto-focusing on windows from the same (or similar) program on another screen

    Hi,
    I have what is quickly becoming a major nuisance, I hope someone here knows more than me (hopefully about to change this behaviour..?).
    Whenever I click on e.g. excel on one screen, the excel windows in the background on my other screen is automatically brough to the front, hiding the window I actually want to be able to see. And if I have no excel windows on that screen, it will automatically bring e.g. MS word to the front instead.
    Does anyone know of a way to disable this extremely annoying behaviour? It seems silly to have to minimize every single window (yes, I have a lot open at any given time, and need to transfer data between several different programs) just to be able to look at windows from two different programs at the same time.
    Cheers,
    W

    this is NOT how apps behave on a Windows PC. There, the different windows of any app focus independently.
    Mmm, no, not really. All Windows apps run inside an application frame. Nothing for that app can exist outside the frame. Once you are in the frame of a given app, all of (example) Excel's open documents are also stuck inside the frame. Along with any palettes or other objects for that app. You can take it off full screen display like below, but each app, and everything associated with it is in its own frame.
    I mention this to show that you can do the same thing on your Mac. Where you said:
    I'm clicking/highlighting to the foreground (this also applies if I use alt+tab in Windows PC; you cycle through every single excel you have open,
    The equivalent on the Mac is to press Command+` (same key as the tilde ~, which should be directly above the Tab key). So it's Command+Tab to switch between apps, and Command+` to rotate between open documents within an app.
    So anyway, in the same manner you would arrange your Windows apps as shown above so you can see the contents of both apps, you simply arrange your Mac apps' documents the same way. Adjust the size of each open document as necessary so you can see the relevant information.
    Just like if a person were going from Mac to Windows, it's "different". Folders, files and apps? All the same concept. Saving and deleting files? Pretty much the same. But if you're very used to one, the other seems odd until the need to think about "simple" steps that aren't performed quite the same way as the OS you're used to becomes habit, and it no longer seems odd anymore.

  • Change and set Focus of window

    HI
    Guys
    I have encountered a problem while setting focus of my application's windows.
    i found the way i.e. by
    public void windowGainedFocus(WindowEvent wgf) {          
              if(this.isActive()){
                   VWM.theVWMDetailWindow.setAlwaysOnTop(true);
                   System.out.println(wgf.getSource());
         }by doing that there is errors came.....
    but there is no effect on the window theVWMDetailWindow to have operation setAlwaysOnTop successfully functoned
    Please help me out
    Thanks

    HI
    Yannix
    actually , i want to get the focus of my application window
    and then perform the action on it..
    The case is that::
    I have a main window..then on it a menu bar...
    when i click on one of the menu option then another separate window will be opened....and many other windows on different menu options....
    SO now i want to control their focus..... rite
    when my main window's focus lost means if i select another application
    another related opened window's must also lost their focus at that time.and when i came back to the main window another window's already opened must be on top.....
    So could you please suggest me some way , some solution to solve this
    Thanks

  • XMonad scratchpad focusing wrong window

    In Xmonad, when I hide a scratchpad window using my designated hotkey, the focus does not return to the previous window, but to whatever window that has a lower position in the stackset (I think); this is an annoying problem, especially when I'm in the full screen layout.
    Anyone experiencing the same problem or has come up with a fix?

    Now I think more about it, some sort of ordering on the stackset such that whenever a window is closed then the most recently used window is focused should just do it..

  • Adobe Reader XI - print dialog box blank - Windows 8

    Using the latest version of Adobe Reader XI, The print dialog box either comes up blank as shown in file 1 and I have no control over printing. OR it comes up with all the labels missing, see File 2 - yet I can control some features by clicking on the blank boxes.
    FILE 2 - Print Window for Adobe Reader XI in Windows 8.docx
    https://files.acrobat.com/preview/41f38277-3483-4179-8bea-97c593bdf52d
    FILE 1 - Print Window for Adobe Reader XI in Windows 8-Blank.docx
    https://files.acrobat.com/preview/435659b8-50ec-4b05-8a02-4de75305446f

    One reason that the Acrobat/Reader dialogs will not display correctly is when the needed system fonts have been removed or uninstalled.
    Or it may be that the default font is changed.
    Try to reinstalled the Segoe font family and check if it corrects the issue.
    Also You can follow the below steps for restoring the default font and removing any font changes you’ve made. After the restore, check if the issue is resolved or not?
    1. Open Fonts by clicking the Start button, clicking Control Panel, clicking Appearance and Personalization, and then clicking Fonts.
    2. In the left pane, click Font settings.
    3. Click Restore default font settings.
    You can also check the corrupted fonts by running Microsoft’s Font Validator from http://www.microsoft.com/typography/FontValidator.mspx

Maybe you are looking for