How to open a new pop-up window on click of a link using OAFunctions

Hi ,
I have a requirement to open a new pop-window on click of the responsibility name(functions available under responsibilities). The current URL /link is driven using OAFunctions.
Any idea, how can i open a new window while still keeping the parent window as it is?
Regards
Puja

This can be achieved, you need to first create the javascript function which will open the popup and add that to the HomePage through and then call that function during onLoad of the HomePage. Here is a code sample,
1. Extend the page level controller and write a new controller
2. Write the following code in processRequest before calling super.
StringBuffer popupScript = new StringBuffer("function customPopUp() { ");
popupScript.append("newWindow = window.open(theURL,'newWindow','toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,location=no,width=300,height=500);}");
pageContext.putJavaScriptFunction("customPopUp", new String(popupScript));
OABodyBean bodyBean = pageContext.getRootWebBean();
bodyBean.setOnLoad("customPopUp");
3. Use personalization to replace the existing controller with your extended controller and the popup should be launched whenever you enter the homepage.

Similar Messages

  • I can't get Firefox to open a new tab each time I click on a link or favorite. It keeps loading onto the current tab.

    I went to Tools>Options>Tabs and entered a check mark next to the first entry, "Open New Windows in a New Tab Instead" but it still does not open a new tab each time I click on a link or one of my favorites. It used to way back in earlier versions of Firefox but hasn't for the past few iterations...am I doing something wrong or do I need to activate something else within Firefox?

    '''''"I went to Tools>Options>Tabs and entered a check mark next to the first entry, "Open New Windows in a New Tab Instead" but it still does not open a new tab each time I click on a link or one of my favorites."'''''
    That option only controls pages that would open in a new window based on the code on the website page you are visiting.
    Firefox's default is to open a link or a Bookmark in the currently selected tab.
    You have some options to have links and/or Bookmarks open in a new tab:
    *middle-click the link or Bookmark (middle-click = press the mouse scroll wheel)
    *CTRL+left-click the link or Bookmark
    *right-click the link or Bookmark and choose "Open in New Tab"
    *install one of the following and set the options to automatically open links or Bookmarks in a new tab:
    **'''''Tab Utilities Lite''''': https://addons.mozilla.org/en-US/firefox/addon/tab-utilities-lite/
    **'''''Tab Utilities''''' (a few more options than the "Lite" version): https://addons.mozilla.org/en-US/firefox/addon/tab-utilities/
    **'''''Tab Mix Plus''''' (a heavyweight tab utility extension): https://addons.mozilla.org/en-US/firefox/addon/tab-mix-plus/
    <br />
    <br />
    '''You need to update the following.''' The Plugin version(s) shown below was/were submitted with your question and is/are out of date. You should update to avoid known security issues with the version(s) you have installed. Click on "More system info..." to the right of your question to see what was included with your question.
    *Adobe PDF Plug-In For Firefox and Netscape 10.0.1
    *Next Generation Java Plug-in 1.6.0_24 for Mozilla browsers
    #'''''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'''
    #*There are plugin specific testing links available from this page:
    #**http://kb.mozillazine.org/Testing_plugins
    #'''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'''):
    #**SAVE the installer to your hard drive (save to your Desktop so that you can find it after the download). Exit/Close Firefox. Run the installer you just downloaded.
    #**Use either of the links below:
    #***https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox ''(click on "Installing and updating Adobe Reader")''
    #***''<u>Also see Download link</u>''': http://get.adobe.com/reader/otherversions/
    #*After the installation, start Firefox and check your version again.
    #'''Update the [[Java]] plugin''' to the latest version.
    #*Download site: http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)
    #**'''''Be sure to <u>un-check the Yahoo Toolbar</u> option during the install if you do not want it installed.
    #*Also see "Manual Update" in this article to update from the Java Control Panel in Windows Control Panel: http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates
    #* Removing old versions (if needed): http://www.java.com/en/download/faq/remove_olderversions.xml
    #* Remove multiple Java Console extensions (if needed): http://kb.mozillazine.org/Firefox_:_FAQs_:_Install_Java#Multiple_Java_Console_extensions
    #*Java Test: http://www.java.com/en/download/help/testvm.xml

  • I am unable to open new tabs, in any way I attempt to do so. I have checked the settings and they are fine, so it's not those. The only way I can open a new tab is to right click on a link and instruct it to open in a new tab.

    Any way I attempt to open new tabs, be it clicking on the new tab button or using the short-cut Ctrl-t, I am unable to open any new tabs on my browser window.
    The only way I have found that I can open a new tab is to right-click on a link and instruct that link to open in a new window.

    Try disabling the Ask Toolbar extension.

  • Firefox will open a New Pop-up Window in Windows 7 Aero. When trying to Close it, it thinks it wants me to Close the Main Window. Why?

    I use Windows 7 Ultimate in Aero-mode. When a new Firefox window is opened, or a Pop-up window appears, I can't close it without first clicking on that page and clicking the "X" in the corner. Instead, whenever I try to close a window that is not the first window (my main window), it will ask me if I want to close the main window with all the tabs... I have noticed some other slight quirks in this stable release as well, but this one is always present.

    When I hover over the window, it does come up front, but as soon as I press the red "X" it goes immediately back to the main window and acts as if I was trying to close that one. Once in a while it will work, but shortly thereafter, it will just go back into this manner. Quite odd. This is the first time I've truly had any problems with Firefox.
    In addition to that problem I have noticed a few things, but one that may be linked is sometimes I'll click a link. Although I haven't specified to open it in a new window, it will do so anyhow. This gets annoying quickly. Usually shutting down Firefox and reopening will fix this (and once in a while just leaving it be for a long time). Somehow, I think this issue is somehow linked to the one above.

  • How to open up new tab or window in 5800 browser?

    hey, just wondering how you can open up a new tab or window while browsing without exiting the current one.
    Sometimes when i click a link, a new window opens, and a little '2' appears at the top of the browsing screen indicating that 2 pages are open, and i know you can flip through the pages by clicking the 'three lined button' and then 'switch win', but im asking how can you just open a new page without exiting a current one?
    Thanks
    If iv helped in anyway, hit the kudos button

    Do a malware check with some malware scanning programs.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br />
    <br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    * "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • Open a new window by clicking on a link using Personalization

    We have a requirement in personalization mode.
    i want to create one link,called "Customer Credit Information" when user clicks on that link it should open in another window.
    if anybody knows how to do it using personalizaion,can you throw me some points?

    set the destination URI and targetFrame property to _blank which will make the new window popup automatically                                                                                                                                                                                                                           

  • How to open a new IE page when user clicks on a button or link

    Hi Experts,
    I have created WD program which fetches data from R/3.
    I have to create a link or button on the WD program. When the user will click on the link, another IE page should open. Some processing will be carried out by WD. The result of WD processing should be displayed in this new IE page.
    Regards,
    Gary

    Hi Gary,
    You need to create a seperate window and embed a new view in it. and yeah for accessing that window you need to create one apllication also which is connected to this window.
    Then in the event handler of the button's click action write the follwing code:-
    String deployableObjectName =
                   wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();
    try {
                   // Get deployable object part of target application.
                   // Precondition: assume, that other application belongs to the same
                   // Web Dynpro Project (Deployable Object)
                   WDDeployableObjectPart deployableObjectPart =
                        WDDeployableObject.getDeployableObjectPart(
                             deployableObjectName,
                             <window name>,
                             WDDeployableObjectPartType.APPLICATION);
                   urlToTargetApp =
                        WDURLGenerator.getWorkloadBalancedApplicationURL(
                             deployableObjectPart,
                             UrlParam);
              } catch (WDURLException e) {
              } catch (WDDeploymentException e) {
                              IWDWindow win1 =  wdComponentAPI.getWindowManager().createNonModalExternalWindow(urlToTargetApp,"Ouput");
    win1.show();
    This will open a new window and then in the wddoinit of the new window's view you can execute the bapi and display the content accordingly.
    Regards,
    sarbjeet Singh

  • Why is firefox opening a new site (clkmon) when i click on a link, and why does the site grey out and show the message access au site direct?

    when i click on a link some times a new site opens with that shows clkmon as adress. when i go back to my homepage the page greys out and shows in french access site au directe. as well i constantly see a white bar that shows on the right side, when i click on the X for closing it opens the clkmon site.

    thanx for the help, got rid of the problem

  • APEX:  Open a new Pop Up Window in PLSQL

    I call a stored procedure from APEX which generates a report in a directory defined in ALL_DIRECTORIES. After I call this stored procedure, I want to display the report just generated ( i know the filename and path) in a new window in my apex application. I am proficient in PLSQL but not in Java Script. Can anyone explin how to do this. I have tried to use window.open in plsql but it is not recognized.
    Sandra

    Thank you for pointing me in the right direction. I will used this stored procedure multiple times in this app as well as other apps.
    This is what I did.
    I created a stored procedure that passes in the directory name and filename
         Procedure p_uploadFileToBlob (v_directoryName varchar2, v_fileName varchar2) is
         v_filePointer     BFILE;
         v_fileContent     BLOB;
         src_offset     NUMBER := 1;
         dst_offset     NUMBER := 1;
         Begin
              v_filePointer := BFILENAME (v_directoryName, v_fileName);
              insert into flu_file_objects (name, subject, file_pointer) values
              (v_fileName, 'UsageReport',v_filePointer);
              update flu_file_objects set file_content = EMPTY_BLOB() where name = v_fileName;
              select file_content into v_fileContent
              from flu_file_objects where name = v_fileName;
              DBMS_LOB.fileopen(v_filePointer, DBMS_LOB.file_readonly);
              DBMS_LOB.loadblobfromfile (v_fileContent, v_filePointer, DBMS_LOB.getlength(v_filePointer),
                        dst_offset, src_offset);
              DBMS_LOB.fileclose(v_filePointer);
         End;
    THen with the help of this posting
    http://apex-notes.blogspot.com/2008/10/ora-01403-when-viewing-blob-data-in.html
    I was able to display the report. At first I tried to load as clob but I lost all report formatting. CHanged to blob and all worked great.
    Thanks again.
    Sandra

  • Regarding opening a new pop up window

    In order to open open in a new window I have used the following two approaches
    1.public void FormHelpUrl(ActionEvent actionEvent) throws Exception {
    FacesContext context = FacesContext.getCurrentInstance();
    ExternalContext ectx = context.getExternalContext();
    HttpServletRequest request=(HttpServletRequest)ectx.getRequest();
    StringBuffer serverName=request.getRequestURL();
    String serverName1=serverName.substring(0, serverName.indexOf("workflow"));
    HttpServletResponse response =
    (HttpServletResponse)ectx.getResponse();
    response.sendRedirect(serverName1+"/dashboard_help/guide?topic="+topic+"&locale=en");
    The first approach opens in the same window only.
    2.public String formHelpUrl() {
    FacesContext context = FacesContext.getCurrentInstance();
    ViewHandler viewHandler = context.getApplication().getViewHandler();
    UIViewRoot dialog1=new UIViewRoot();
    UIViewRoot dialog = viewHandler.createView(context, "/dashboard/ohguide?topic=ohj_about_ui.htm&locale=en");
    HashMap properties = new HashMap();
    AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
    afContext.launchDialog(dialog,
    null, null, // no particular parameters
    true,
    properties);
    return null;
    The second approach above opens in a window - but it is not taking the new context root
    UIViewRoot dialog = viewHandler.createView(context, "/dashboard/ohguide?topic=ohj_about_ui.htm&locale=en");
    here in the above code , it has to start with '/' , so unable to change context root . please help me out

    Hi Dean,
    The item names and item values are passed as comma delimited lists in the url, so your url should be:
    url = 'f?p=&APP_ID.:49:&APP_SESSION.::::P49_DETAIL_ID,P49_FLAG:'+p_val[b]+',0';
    Regards
    Andy

  • I cannot open a new tab unless I right-click on a link and select "Open link in new tab"

    When I click the plus sign to open a tab, and even when I go to "File" and then "New Tab" Nothing happens. The only way I can get a new tab to open is by right-clicking a link. I've tried closing and restarting the browser, and even restarting my computer. Nothing is helping. Firefox did do an update this morning, could it be a glitch from that?

    Thank you! I went into safe mode and reset all of my settings to the default. Now everything works fine!

  • How to pass value from new pop up window to the input field

    Hi,
    i have a F4 help on a input type field and adjacent to that two more input fields, on clicking the help on the first input field a new pop up window opens, the value in this pop up window is to be selected to give the value in that field and the other two values should be appeared in the input type. suppose the pop up window has three fields "15   LIMA  PLANT   45802 ", so on clicking it in input field only 15 should go to the firstinput fields and "LIMA PLANT" and "45802" should go to new window
    do anyone know this?

    avoid duplicate threads
    F4 help in dropdownlistbox and values in input fields
    if you feel that the thread heading or content is not what you wanted, you can edit it and leave a note in the same thread that you have edited it.
    Raja

  • How can I set home page for a new tab? how can i get firefox to open the home page every time i open a new tab in Windows vista home basic??

    How can I set home page for a new tab? how can i get firefox to open the home page every time i open a new tab in Windows vista home basic??
    == This happened ==
    Every time Firefox opened

    Firefox can have multiple home pages if you wish. Each home page that will open when starting Firefox is separated by the "|" character.
    See: http://support.mozilla.com/en-US/kb/How+to+set+the+home+page
    To have new tabs open a specific web site, add one of the following extensions:
    http://sogame.awardspace.com/newtaburl/
    https://addons.mozilla.org/en-US/firefox/addon/777

  • How to open a new window from the login window?

    hi,
    can someone tell me how to open a new window from an existing window, here by window i mean frame. The case is i hv two java files - oracle.java and FDoptions.java. The first frame is in the Login.java. The oracle.java file has a button "Login", when it is clicked, i want to open the next frame which is in the file FDoptions.java. Can some one help me with this? I m giving the code below -
    oracle.java
    import java.awt.BorderLayout;
    import java.awt.FlowLayout;
    import java.awt.GridLayout;
    import java.awt.event.ActionEvent;
    import javax.swing.AbstractAction;
    import javax.swing.BorderFactory;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JPasswordField;
    import javax.swing.JTextField;
    * The application's main frame.
    public class oracle {
        private JFrame frame;
        private JPanel logInPanel;
        private JButton clearButton;
        private JButton logInButton;
        private JButton newuserButton;
        private JButton forgotpasswordButton;
        private JTextField userNameTextField;
        private JPasswordField passwordTextField;
        public oracle() {
            initComponents();
        private final void initComponents() {
            JLabel userNameLabel = new JLabel("User name: ");
            JLabel passwordLabel = new JLabel("Password: ");
            userNameTextField = new JTextField();
            passwordTextField = new JPasswordField();
            JPanel userInputPanel = new JPanel(new GridLayout(2, 2, 5, 5));
            userInputPanel.setBorder(BorderFactory.createEmptyBorder(10, 20, 10, 20));
            userInputPanel.add(userNameLabel);
            userInputPanel.add(userNameTextField);
            userInputPanel.add(passwordLabel);
            userInputPanel.add(passwordTextField);
            logInButton = new JButton(new LogInAction());
            clearButton = new JButton(new ClearAction());
            newuserButton = new JButton(new NewUserAction());
            forgotpasswordButton = new JButton(new ForgotPassword());
            JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
            JPanel buttonPanel1 = new JPanel(new FlowLayout(FlowLayout.RIGHT));
            buttonPanel.add(logInButton);
            buttonPanel.add(clearButton);
            buttonPanel1.add(newuserButton);
            buttonPanel1.add(forgotpasswordButton);
            logInPanel = new JPanel(new BorderLayout());
            logInPanel.add(userInputPanel, BorderLayout.NORTH);
            logInPanel.add(buttonPanel, BorderLayout.CENTER);
            logInPanel.add(buttonPanel1,BorderLayout.SOUTH);
            frame = new JFrame("FD Tracker");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setSize(500, 500);
            frame.setContentPane(logInPanel);
            frame.pack();
            frame.setVisible(true);
        private void performLogIn() {
            // Log in the user
            System.out.println("Username: " + userNameTextField.getText());
            char[] password = passwordTextField.getPassword();
            System.out.print("Password: ");
            for(char c : password) {
                System.out.print(c);
            System.out.println();
        private void performClear() {
            // Clear the panel
            System.out.println("Clearing the panel");
            userNameTextField.setText("");
            passwordTextField.setText("");
        private final class LogInAction extends AbstractAction {
            public LogInAction() {
                super("Log in");
            @Override
            public void actionPerformed(ActionEvent e) {
                performLogIn();
        private final class ClearAction extends AbstractAction {
            public ClearAction() {
                super("Clear");
            @Override
            public void actionPerformed(ActionEvent e) {
                performClear();
        private final class NewUserAction extends AbstractAction{
             public NewUserAction(){
                 super("New User");
             @Override
             public void actionPerformed(ActionEvent e){
                 JFrame newuser = new JFrame("NewUser");
        private final class ForgotPassword extends AbstractAction{
            public ForgotPassword(){
                super("Forgot Password");
            @Override
            public void actionPerformed(ActionEvent e){
                JFrame forgotpassword = new JFrame("Forgot Password");
        public static void main(String args[]) {
            new oracle();
         FDoptions.java
    import java.awt.FlowLayout;
    import java.awt.BorderLayout;
    import java.awt.GridLayout;
    import java.awt.event.ActionEvent;
    import javax.swing.AbstractAction;
    import javax.swing.BorderFactory;
    import javax.swing.JPanel;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    public class Fdoptions{
        private JFrame fdoptions;
        private JPanel fdoptpanel;
        private JButton enterfdbutton;
        private JButton viewfdbutton;
        public Fdoptions() {
            initComponents();
        private final void initComponents(){
            fdoptpanel = new JPanel(new BorderLayout());
            fdoptpanel.setBorder(BorderFactory.createEmptyBorder(80,50,80,50));
            enterfdbutton = new JButton(new EnterFDAction());
            viewfdbutton = new JButton(new ViewFDAction());
           JPanel enterbuttonpanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
           JPanel viewbuttonpanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
            enterbuttonpanel.add(enterfdbutton);
            viewbuttonpanel.add(viewfdbutton);
            fdoptpanel.add(enterbuttonpanel,BorderLayout.NORTH);
            fdoptpanel.add(viewbuttonpanel,BorderLayout.SOUTH);
            fdoptions = new JFrame("FD Options");
            fdoptions.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            fdoptions.setSize(1000,1000);
            fdoptions.setContentPane(fdoptpanel);
            fdoptions.pack();
            fdoptions.setVisible(true);
        private void performEnter(){
        private void performView(){
        private final class EnterFDAction extends AbstractAction{
            public EnterFDAction(){
                super("Enter new FD");
            public void actionPerformed(ActionEvent e){
                performEnter();
        private final class ViewFDAction extends AbstractAction{
            public ViewFDAction(){
                super("View an existing FD");
            public void actionPerformed(ActionEvent e){
                performView();
        public static void main(String args[]){
            new Fdoptions();
    }

    nice day,
    these lines..., despite the fact that this example is about something else, shows you two ways
    1/ modal JDialog
    2/ two JFrame
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    * Parent Modal Dialog. When in modal mode, this dialog
    * will block inputs to the "parent Window" but will
    * allow events to other components
    * @see javax.swing.JDialog
    public class PMDialog extends JDialog {
        private static final long serialVersionUID = 1L;
        protected boolean modal = false;
        private WindowAdapter parentWindowListener;
        private Window owner;
        private JFrame blockedFrame = new JFrame("No blocked frame");
        private JFrame noBlockedFrame = new JFrame("Blocked Frame");
        public PMDialog() {
            noBlockedFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            noBlockedFrame.getContentPane().add(new JButton(new AbstractAction("Test button") {
                private static final long serialVersionUID = 1L;
                @Override
                public void actionPerformed(ActionEvent evt) {
                    System.out.println("Non blocked button pushed");
                    blockedFrame.setVisible(true);
                    noBlockedFrame.setVisible(false);
            noBlockedFrame.setSize(200, 200);
            noBlockedFrame.setVisible(true);
            blockedFrame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
            blockedFrame.getContentPane().add(new JButton(new AbstractAction("Test Button") {
                private static final long serialVersionUID = 1L;
                @Override
                public void actionPerformed(ActionEvent evt) {
                    final PMDialog pmd = new PMDialog(blockedFrame, "Partial Modal Dialog", true);
                    pmd.setSize(200, 100);
                    pmd.setLocationRelativeTo(blockedFrame);
                    pmd.getContentPane().add(new JButton(new AbstractAction("Test button") {
                        private static final long serialVersionUID = 1L;
                        @Override
                        public void actionPerformed(ActionEvent evt) {
                            System.out.println("Blocked button pushed");
                            pmd.setVisible(false);
                            blockedFrame.setVisible(false);
                            noBlockedFrame.setVisible(true);
                    pmd.setVisible(true);
                    System.out.println("Returned from Dialog");
            blockedFrame.setSize(200, 200);
            blockedFrame.setLocation(300, 0);
            blockedFrame.setVisible(false);
        public PMDialog(Dialog parent, String title, boolean isModal) {
            super(parent, title, false);
            initDialog(parent, title, isModal);
        public PMDialog(Frame parent, String title, boolean isModal) {
            super(parent, title, false);
            initDialog(parent, title, isModal);
        private void initDialog(Window parent, String title, boolean isModal) {
            owner = parent;
            modal = isModal;
            parentWindowListener = new WindowAdapter() {
                @Override
                public void windowActivated(WindowEvent e) {
                    if (isVisible()) {
                        System.out.println("Dialog.getFocusBack()");
                        getFocusBack();
        private void getFocusBack() {
            Toolkit.getDefaultToolkit().beep();
            super.setVisible(false);
            super.pack();
            super.setLocationRelativeTo(owner);
            super.setVisible(true);
            //super.toFront();
        @Override
        public void dispose() {
            owner.setEnabled(true);
            owner.setFocusableWindowState(true);
            super.dispose();
        @Override
        @SuppressWarnings("deprecation")
        public void hide() {
            owner.setEnabled(true);
            owner.setFocusableWindowState(true);
            super.hide();
        @Override
        public void setVisible(boolean visible) {
            boolean blockParent = (visible && modal);
            owner.setEnabled(!blockParent);
            owner.setFocusableWindowState(!blockParent);
            super.setVisible(visible);
            if (blockParent) {
                System.out.println("Adding listener to parent ...");
                owner.addWindowListener(parentWindowListener);
                try {
                    if (SwingUtilities.isEventDispatchThread()) {
                        System.out.println("EventDispatchThread");
                        EventQueue theQueue = getToolkit().getSystemEventQueue();
                        while (isVisible()) {
                            AWTEvent event = theQueue.getNextEvent();
                            Object src = event.getSource();
                            if (event instanceof ActiveEvent) {
                                ((ActiveEvent) event).dispatch();
                            } else if (src instanceof Component) {
                                ((Component) src).dispatchEvent(event);
                    } else {
                        System.out.println("OUTSIDE EventDispatchThread");
                        synchronized (getTreeLock()) {
                            while (isVisible()) {
                                try {
                                    getTreeLock().wait();
                                } catch (InterruptedException e) {
                                    break;
                } catch (Exception ex) {
                    ex.printStackTrace();
                    System.out.println("Error from EDT ... : " + ex);
            } else {
                System.out.println("Removing listener from parent ...");
                owner.removeWindowListener(parentWindowListener);
                owner.setEnabled(true);
                owner.setFocusableWindowState(true);
        @Override
        public void setModal(boolean modal) {
            this.modal = modal;
        public static void main(String args[]) {
            new PMDialog();
    }

  • Problems using right click to open in new Tab or Window. Will not work. How do you solve this. Have v5.0 installed.

    I have the latest version of Firefox installed. Version 5.0.
    When searching on Google and use right-click to open in new tab or window. Keep getting blank tab.
    Can somebody advise how to solve this.
    Thank you.

    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.
    You can use "Disable all add-ons" on the ''Safe mode'' start window.
    You have to close and restart Firefox after each change via "File > Exit" (on Mac: "Firefox > Quit")

Maybe you are looking for

  • Data in the cube is showing wrong when compared with ODS

    Hello BW Gurus, We have a waste report in production planning on Cube and ODS separately. The same info package loads both targets (which means same infosource) but when we run a report on Cube, the records are showing multiple entries (i.e. Key Figu

  • I recently downloaded music from the iTunes store but it doesn't play on my iPod

    I recently downloaded music through the iTunes store and synched it manually to my iPod nano (5th generation) and while it shows up on my iPod when I scroll through my list of artists/songs/albums it will not play any sound if selected and will not p

  • My iBook is in Chinese how do I change it to English?

    I down loaded an iBook which had the language as Chinese and English - it down loaded in Chinese -how do I change this to English?

  • Load Balancing with Adapters.

    I am using File Adapter for a simple process . Now I want to deploy this adapter across several CPUs which will provide me vertical scaling . Is it possible? If yes, then how to configure this?

  • Acrobat Reader 5.0.1

    Acrobat Reader バージョンは 5.0.1を使っています. PDFファイルをダウンロードしたときに対応してないところがあるとかで.バージョンアップをというような内容が出るのですが.どうしたら良いのか分りません. 無料でバージョンアップできるのでしょうか.どうやったらよいのでしょう? ウィンドウズXP ホームエディション 256MB