Class WebBrowserErrorDialog

  • All Implemented Interfaces:
    ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

    public class WebBrowserErrorDialog
    extends JDialog
    This class is a dialog that appears when we could not launch the user web browser after the user clicked on a link. The dialog displays the URL to be displayed and provides a 'Copy URL' button to copy it to the system clipboard. This way (even if not ideal) the user can view the contents of the URL we display by pasting manually the URL in his/her browser.
    See Also:
    Serialized Form
    • Constructor Detail

      • WebBrowserErrorDialog

        public WebBrowserErrorDialog​(JFrame parent,
                                     WebBrowserException ex)
        Constructor of the WebBrowserErrorDialog.
        Parameters:
        parent - the parent frame for this dialog.
        ex - the WebBrowserException.
    • Method Detail

      • packAndShow

        public void packAndShow()
        Packs and displays this dialog.
      • main

        public static void main​(String[] args)
        Method written for testing purposes.
        Parameters:
        args - the arguments to be passed to the test program.