Applet popup window

Good morning,
I have an applet and I want to pop up another window, when a user clicks on a menu item, that allows the user to do some configuration for the application. The window has to be modal. How would I go about accomplishing this?
Thanks in advance.
Lynn

thank you for your help, sils.
I've written that code :
* Cr�� le 31 ao�t 05
package com.scor.apricot.web.rpc.ltnp.applet.listener.ldf;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JDialog;
import javax.swing.JPanel;
public class AppletWindowListener extends WindowAdapter {
     private JPanel panel;
     private JDialog dialogWindow;
     public AppletWindowListener(JPanel panel, JDialog dialogWindow) {
          this.panel = panel;
          this.dialogWindow = dialogWindow;
     public void windowActivated(WindowEvent e) {
          if (dialogWindow!=null && dialogWindow.isShowing())
               dialogWindow.toFront();
}Is that right ?
I don't know how to add the listener, where must I put the addWindowListener method ? It seems that this method cannot be used with a JApplet object.

Similar Messages

  • Problem with applet, popup window and focus loss

    Hi all !
    I've got a problem when my applet lose the focus. Let me explain :
    I've got an applet embed in a jsp page. There are several buttons in it that allow the user to open modal windows.
    The problem comes when the user gives the focus to another application whithout closing the modal window first.
    When he tries to come back to the web page owning the applet (using the task bar), then the modal window stays behind it and blocks any action on the applet.
    Does anyone know how to force the modal window to be displayed in front of the applet, even when the user plays with focuses ?
    Thank's in advance.

    thank you for your help, sils.
    I've written that code :
    * Cr�� le 31 ao�t 05
    package com.scor.apricot.web.rpc.ltnp.applet.listener.ldf;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import javax.swing.JDialog;
    import javax.swing.JPanel;
    public class AppletWindowListener extends WindowAdapter {
         private JPanel panel;
         private JDialog dialogWindow;
         public AppletWindowListener(JPanel panel, JDialog dialogWindow) {
              this.panel = panel;
              this.dialogWindow = dialogWindow;
         public void windowActivated(WindowEvent e) {
              if (dialogWindow!=null && dialogWindow.isShowing())
                   dialogWindow.toFront();
    }Is that right ?
    I don't know how to add the listener, where must I put the addWindowListener method ? It seems that this method cannot be used with a JApplet object.

  • OpenScript DOESN'T capture Java Applet popup window

    I am testing an airline website that requires to choose a Departure and Returning Date from a web.button called 'View Calendar' which is a Java Applet. During recording, it doesn't capture the View Calendar as an object and therefore, i am unable to test the validity of the dates chosen.

    I haven't seen an Applet module in OpenScript yet, you might have to use OFT to build the script

  • How to create a button to get File Open popup window and select a file

    Hi,
    I have an applet that contains Browse button. When user clicks on that, a File Open popup window should be displayed to enable user to select the input file. This file path should be given back as parameter.
    How to do this? I have tried using LoadFileData but not able to get the desired result.
    Any pointers would be helpful.
    Thanks,
    Lalitha Dandibotla

    Do you need only the path or also the file back into Siebel?
    If you need both, the have a look at any attachment applet, that will give you a good start.
    Are you using Siebel in High Interactivity (HI) Mode or Standard Interactivity (SI) Mode?
    If you are in SI Mode have a look at the html type
    <input type="file">
    http://www.w3.org/TR/html401/interact/forms.html#h-17.4
    Axel

  • To Open 11g Forms output on a seperate popup window

    Hi,
    Anybody help me, how to Open 11g forms output on a seperate popup window. Now it is comming in browser itself.
    regards
    Ahamed Rafeeque CH

    This is controlled in the Forms Services configuration. You will need to modify the "separateFrame" configuration setting using the WebLogic Server interface. You could also modify the formsweb.cfg using a standard text editor, but it is not recommended. The default value for separateFrame is FALSE. By setting the value to TRUE it instructs Forms Services to use a seperate browser window for the Java Applet.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Annoying popup windows during exec()

    I am executing couple of system commands
    in Windows using exec() calls from a signed applet.
    Though the functionality works, when the command
    gets executed, an empty DOS window pops up and disappers.
    Is there a way to hide the popup window or make it not
    to show up?
    Here is an example of my code. "dir" will be replaced with
    some actual useful commands.
    String command = "cmd /c pushd c:\\test && dir -s";
    Process p = Runtime.getRuntime().exec(command);
    Thanks in advance.

    For everyone that keeps asking how to NOT have a dos window pop up - here is the c++ code from a program I wrote years ago. It lets you spawn a dos process without a dos window. It should be a simple matter to port this to a .dll that you can use from java.
    int CYourClass::Spawn( int nMode, char * cmdproc, char * buff )
    STARTUPINFO         si = {0};
    PROCESS_INFORMATION pi = {0};
    si.cb = sizeof( STARTUPINFO );
    si.lpReserved = NULL;
    si.lpReserved2 = NULL;
    si.cbReserved2 = 0;
    si.lpDesktop = NULL;
    si.dwFlags = STARTF_USESHOWWINDOW;
    si.wShowWindow = SW_HIDE;
    BOOL CreateProcessStatus;
    ULONG dosretval;
    DWORD retval;
    MSG msg;
    CBuildApp* pApp = (CBuildApp*)AfxGetApp();
    _doserrno = errno = 0; // set to zero first so we can see if we go wrong somewhere
    CreateProcessStatus = CreateProcess( cmdproc, buff, NULL, NULL, TRUE, NORMAL_PRIORITY_CLASS, NULL, NULL, &si, &pi );
    dosretval = GetLastError();
      if  (!CreateProcessStatus)
        return -1;
      if ( nMode == _P_WAIT ) /* SYNCHRONOUS */
        WaitForSingleObject( pi.hProcess, (DWORD)(-1L) );
        GetExitCodeProcess( pi.hProcess, &retval );
        CloseHandle(pi.hProcess);
            // so the system doesnt appear to freeze
            while (::PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))     
              if (msg.message == MM_STOP)        
                  pApp->bBusy = FALSE;
                  pApp->bStopProcess = TRUE;
                  break;    
                    if (!AfxGetApp()->PreTranslateMessage(&msg))        
                       ::TranslateMessage(&msg);           
                       ::DispatchMessage(&msg);
             AfxGetApp()->OnIdle(0);   // updates user interface
             AfxGetApp()->OnIdle(1);   // frees temporary objects
       CloseHandle( pi.hThread );
       return retval;

  • Keeping popup windows in front of NS or IE

    Hello,
    I have the problem of keeping popup windows spawned from an applet in an IE or NS web page in front.
    When the user clicks on the title bar or a scrollbar of a Jtable or the UI of another applet in the web page, NS or IE gains focus and covers up the popup window. There may be multiple popup windows. The "popup" behavior is a requirement.
    How do you make sure that all windows of a particular class (since multiple instances of the windows) are in front of the NS or IE window. The popups can occlude one another but must be in front of Netscape.
    Any ideas? Any URLs for information?
    John F. Richardson

    I used the JPanel on the glasspane technique and it seems to work pretty well
    http://forum.java.sun.com/thread.jsp?forum=57&thread=115498&message=1102428#1102428

  • How to get the values from popup window to mainwindow

    HI all,
       I want to get the details from popup window.
          i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
       now i am able to display popup window with values.How to get the values from popup window now.
       I can anybody explain me clearly.
    Thanks&Regards
    kranthi

    Hi Kranthi,
    Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
    Regards,
    Uday

  • In a multiple monitor situation, how do I get popup windows to open on the same monitor as the parent application is displayed.

    I have two monitors. I have an application that I run all day, displayed on my secondary monitor. Whenever a popup windows is launched form that application, it always opens on the primary monitor. Very annoying. Any way to get the popup to launch in on the same monitor as the parent application?

    Did you solve this problem ?

  • Even though block popup windows is unchecked in content tab of options, I am still not getting any popups. Please help me.

    Hi - Even though block popup windows is unchecked in content tab of options, I am still not getting any popups. Please suggest how to over come this problem.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Did you make sure that your security software isn't blocking the pop-ups?
    Boot the computer in Windows Safe Mode with network support (press F8 on the boot screen) as a test.
    *http://www.bleepingcomputer.com/tutorials/how-to-start-windows-in-safe-mode/

  • SSO UIDPW not working for external Popup Window but works with SAPLOGONTICK

    Dear Experts,
    I have an issue with SSO user mapping (UIDPW), but the same scenario is working with SAPLOGONTICKET.
    Some list gets displayed in the Web Dynpro ABAP iView which has the hyperlinks where on click on the hyper link it opens a external popup window (another Web Dynpro Application) and display the summary some data.
    This scenario works when I set the logon method to SAPLOGONTICKET, but when I set it as UIDPW it won't work when a new window opens on click on the hyperlink from Web Dynpro iView as stated above. It asks to login to R/3 system.
    Can anyone please let me know what could be the reason it fails in External Popup window scenario when logon method as UIDPW.
    Thanks
    Murthy

    Hi Murthy,
    You can use application integrator iView to integrate your ABAP application into the portal and you'll be able to pass the variables <MappedUser>, <MappedPassword>, etc. assuming you know about the security risks in passing mapped info.
    http://help.sap.com/erp2005_ehp_05/helpdata/en/36/5e3842134bad04e10000000a1550b0/frameset.htm
    Still, your ABAPers might need to handle the passed in variables in the first ABAP application and pass them onto the second one.  Again, without knowing how you navigate between the 2 apps and other details about your system landscape, versions, etc. this remains as a guess.  If you search SDN, you'll find many different solutions then you can choose one which is most suitable for your situation.
    Regards,
    Dao

  • How to close main window on click of a button on popup window

    Hi All,
    I have created a web page which on certain condition display a popup window to to provide information. Wht i want is that when i click on close button on my popup window, my main window should also close.
    Can anyone please help with this requierment!!!
    Regards,
    tushar

    Hi All,
    Could anyone of you please help me by answering the thread
    WDDOEXIT method not called when the application is closed from the portal
    Thanks,
    Subash M

  • How to disable parent window while popup window is coming

    Hi,
    I am working on Oracle Applications 11i.
    I am able to get the popup window using the Java script in the controller.
    Please see the below code for the reference.
    String pubOrderId = pageContext.getParameter("orderId");
    StringBuffer l_buffer = new StringBuffer();
    StringBuffer l_buffer1 = new StringBuffer();
    l_buffer.append("javascript:mywin = openWindow(top, '");
    l_buffer1.append("/jct/oracle/apps/xxpwc/entry/webui/AddAttachmentPG");
    l_buffer1.append("&retainAM=Y");
    l_buffer1.append("&pubOrderId="+pubOrderId);
    String url = "/OA_HTML/OA.jsp?page="+l_buffer1.toString();
    OAUrl popupUrl = new OAUrl(url, OAWebBeanConstants.ADD_BREAD_CRUMB_SAVE );
    String strUrl = popupUrl.createURL(pageContext);
    l_buffer.append(strUrl.toString());
    l_buffer.append("', 'lovWindow', {width:750, height:550},false,'dialog',null);");
    pageContext.putJavaScriptFunction("SomeName",l_buffer.toString());
    But here the problem is, even though popup window is there, i am able to do the actions on the parent page.
    So how to disable the parent page, while getting the popup window.
    Thanks in advance.
    Thanks
    Naga

    Hi,
    You can use javaScript for disabling parent window as well.
    Refer below link for the same:
    http://www.codeproject.com/Questions/393481/Parent-window-not-disabling-when-pop-up-appears-vi
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • RE: Getting multiple values from more than one multiple select popup window

    I have a button on a JSP of mine that when clicked creates a popup window (right now it is called popup.html) with a multiple select menu.
    My question is how do I get all the values selected from the menu into my JSP (sample.jsp) so that I can set each of the values for my bean.
    The other problem is that I have more than one select multiple menu.
    Please help if you can. Any advice or suggestions here would be greatly appreciated!
    Thank you!

    I realize that I can use request.getParameterValues to get the values selected from my html because I am passing them to the hidden inputs I have and then using the request.getParameterValues to get each of the values.
    MY PROBLEM IS WHAT IF I HAVE 4 MULTIPLE SELECTS??? How can I use the same html popup menu to get the values from the 4 different multiple selects????
    I look forward to your response.
    This code is from my JSP:
    <INPUT TYPE="TEXT" NAME="Field1" SIZE="15">
    <INPUT TYPE="hidden" name="F1Rad1">
    <INPUT TYPE="hidden" name="Permission">
    <input type=button name=choice onClick="window.open('optionPicker.html','popuppage','width=250,height=100');" value="Options"></TD>
    Here is my optionPicker.html code for the pop up menu:
    <html>
    <head>
    <script language="JavaScript">
    function sendValue(s)
    var boxSize= s.options[0].value;
    var restrict     = s.options[1].value;
    window.opener.document.addNewForm.F1Rad1.value = boxSize;
    window.opener.document.addNewForm.Permission.value = restrict;
    window.close();
    </script>
    </head>
    <body>
    <center>
    <form name=selectform>
    <select multiple name=selectmenu size="2">
    <option value="large">Large Text Input Area
    <option value="restrict">Restricted Access
    </select>
    <p></p>
    <input type=button value="Select Option(s) For Field" onClick="sendValue(this.form.selectmenu);">
    </form>
    </center>
    </body>
    </html>

  • How to pass the values from popup window to parent's window

    Hi Experts,
    in my application i need to develop one popup window in that i have created 4 dropdowns and one ok button , if i willl click on that ok  button the values should pass to parent window dropdownlistboxes
    can any body suggest how i will get the popup window values
    thanks in advance,
    ramani.

    Hi Ramani,
    I can provide few inputs on how can we control JSP 2 from JSP1.
    Here is the code. Check if you can convert this to make useful to you. I am not passing values but control.
    here it is:
    JSP 1.
    <h1>Page One</h1>
    <br>
    <a href="/irj/portalapps/<PAR_FILE_NAME>/images/<HTML_PAGE_NAME>.html#part1">part 1</a>
    <br><br><br>
    <a href="/irj/portalapps/<PAR_FILE_NAME>/images/<HTML_PAGE_NAME>#part2">part 2</a>
    <br><br><br>
    <a href="/irj/portalapps/<PAR_FILE_NAME>/images/<HTML_PAGE_NAME>#part3">part 3</a>
    JSP 2.
    <h1>Page Two</h1>
    <br>
    <a name="part1">
    <h3>Part 1</h3>
    </a>
    <a name="part2">
    <h3>Part 2</h3>
    </a>
    <a name="part3">
    <h3>Part 3</h3>
    </a>
    This way you can move from one JSP to other.
    regards
    -Kedar Kulkarni
    reward points if useful.
    Message was edited by:
            Kedar Kulkarni

Maybe you are looking for