A pop-up window in Java

Hello
I have a neat little Java applet menu and would like a link from the menu to open up a pop up window in another frame.
I know this can be done in Java, but is there any information anywhere which I could read to show me how to do it? Basically, I need to know how to create the link to open the pop up, and I need to know how to create the pop up itself either in normal Java or Java Swing.
Many thanks

I think you're thinking of javascript instead of java. Pop-up windows are easy to do using JavaScript. A quick google search will turn up lots of examples.

Similar Messages

  • A pop up window saying Java Runtime Environment keeps coming up. How do I get rid of it?

    How do i get rid of a pop up window that asks me to run Java Runtime Environment?

    If you're referring to a Mac and not an iPad, then most likely, you have a web plugin that depends on the Java runtime distributed by Apple, such as the Facebook video calling plugin or the "NexDef" plugin for watching baseball streams. If you no longer need the plugin, remove it, including its automatic update mechanism (if any) according to the developer's instructions. Otherwise, install Java.

  • Firefox does not open pop-up windows from java script even if blocking pop-up is disabled for those sites

    I need to use pop-up windows for some e-mail sites which use java, but firefox doesn't do anything, even if i allowed pop-ups for those sites or disable completely

    If the settings in Firefox are correct then make sure that your security software (firewall, anti-virus) isn't blocking pop-ups, some have advanced features that include blocking pop-ups.
    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]]

  • I just installed firefox as a broser. everytime I click on any website a pop up window named "java script application" and states "exc in ev handl:type error: oSAPLg. o root. log is not a function"

    I just installed firefox as a broser. everytime I click a website the following pop up window opens. "exc in ev handl: type error: oSAPLg.o root. log is not a function. How do I correct this.

    Please see solution in http://kb.mozillazine.org/Problematic_extensions
    for "McAfee Site Advisor".
    (Windows): For best results you should uninstall '''McAfee Site Advisor''' from Control Panel > add/change programs (Programs and Features). Reboot the system. Then Reinstall from http://www.siteadvisor.com/ and reboot the system. When installing refuse other suggested (crapware) applications.
    <br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small>

  • Opening firefox comes a Java script error pop up window

    Today I've been having this problem when I open Firefox
    I get this pop up window, one after another.
    Max shows 20
    LeadManage_OnDocumentLoad pd 1320084884 1320084944
    check4Match l1
    metaKeywords 1aaaa
    metaKeywords 2 [object HTML Collection]
    keyarray metaKeywords:undefined
    url:http://support.mozilla.com/fi/questions/881878?=s=java+script&r=1&as=s
    mySearchString:undefined
    How can I fix this, I have installed Firefox again but no help.

    How do you remove my compagion in modules? Please reply ASAP . Thanks .

  • Why do I keep getting a pop-up window that says install Java when I try to open a pdf file?

    Why do I keep getting a pop-up window that says install Java when I try to open a pdf file?

    (You can take screenshots of the windows in your computer using Alt+PrintScreen... No need to use a camera)
    This is quite odd. Where did you get the Reader installer from? I would suggest uninstalling it and then downloading the installer from Adobe (here: http://get.adobe.com/reader/ ) and re-installing it.

  • How can I call a pop up window from a java class ?

    Hi,
    I am developing a web app. I would like to call a windoz pop up from a java class.
    How can i do that ?
    Thanks

    user504072 wrote:
    It was possible to do it in ASP .NET even from the server side with the method Page.ClientScript. What do you think what Page.ClientScript stands for?
    I's an encapsulation for the JavaScript code required and hides the separation between frontend and backend. There was a reason why so many developers stick to the MVC-pattern wich ist violated here.
    I did not know it is not possible to do the same thing in Java.I'ts not a task of the backend to layout the user interaction GUI.
    bye
    TPD

  • After the latest update for firefox, now when I start firefox up I keep getting a pop up window that is a Java Script Application that says TypeError:Components.classes['@softage.ru/skype/skypeFfExtension;1']is undefined.

    After closing this Firefox seems to work fine but this happens everytime on startup. How can I get rid of this pop up window starting everytime? Can I re-install firefox? Would I lose my bookmarks etc?

    Once I disabled my Ask.com toolbar (that was installed when I installed FoxIt), the error went away.

  • How to pass values from main window to pop-up window?

    I want to pass a value from the main window (1st form) to pop-up window (2nd form). The first form is of name booking.jsp and 2nd form is of name Fund_booking.jsp. I am using window.showModalDialog to open the window. I think, I have written right code in main window to pass the value but even then I am not able to get it on pop-up window. I am not even able to display an alert on pop-up window saying "hi" by writing a function on save Button in pop-up window. The code is as follows:
    On booking.jsp:
    <script>
    function popup()
    var aForm;
    aForm = D_requisition_id.options[D_requisition_id.selectedIndex].text;
    \\Here I have captured value from a drop down box in my main window form and assigned it to the variable.
    alert(aForm);
    var myObject =new Object();
    myObject.Brandcode = aForm;
    alert(myObject.Brandcode);
    window.showModalDialog("Fund_booking.jsp",myObject,"dialogHeight:400px;dialogWidth:420px;");
    </script>
    <button name="B_FundBooking" tabIndex=4 style='POSITION:absolute;LEFT:393;TOP:292;WIDTH:100;height:24;BACKGROUND-COLOR:buttonface' onClick ="popup()">Fund Booking</button>
    On Fund_booking.jsp:
    <SCRIPT>
    var oMyObject = window.dialogArguments;
    var sBrandcode = oMyObject.Brandcode;
    alert(sBrandcode);
    </SCRIPT>
    Even the following alert is not getting displayed in pop-up window;
    <script>
    function ValidateData()
    alert("Hi");
    </script>
    <button name="B_Save" tabIndex=1 style='POSITION:absolute;LEFT:255;TOP:315;WIDTH:75;height:24;BACKGROUND-COLOR:buttonface' onClick ="ValidateData()">Save</button>
    I am using DIV instead of frames in my both forms. I just want to get that value in my pop-up window to write a query based on which data will get displayed in my table of pop-up window.
    Plz help me to solve this problem.

    Well, this is actually a JavaScript question, not a Java question but I can give some hints.
    When you do pop-up windows you need to put JavaScript in the html of the pop-up itself. Data can be passed by creating new fields in the window object, which the popup can access via the window.openner field.
    So, before invoking the popup add any data to be passed to the window object, then the onLoad function in the popup grabs the data.

  • How to pass value from main window to pop up window?

    I want to pass a value from the main window (1st form) to pop-up window (2nd form). The first form is of name booking.jsp and 2nd form is of name Fund_booking.jsp. I am using window.showModalDialog to open the window. I think, I have written right code in main window to pass the value but even then I am not able to get it on pop-up window. I am not even able to display an alert on pop-up window saying "hi" by writing a function on save Button in pop-up window. The code is as follows:
    On booking.jsp:
    <script>
    function popup()
    var aForm;
    aForm = D_requisition_id.options[D_requisition_id.selectedIndex].text;
    \\Here I have captured value from a drop down box in my main window form and assigned it to the variable.
    alert(aForm);
    var myObject =new Object();
    myObject.Brandcode = aForm;
    alert(myObject.Brandcode);
    window.showModalDialog("Fund_booking.jsp",myObject,"dialogHeight:400px;dialogWidth:420px;");
    </script>
    <button name="B_FundBooking" tabIndex=4 style='POSITION:absolute;LEFT:393;TOP:292;WIDTH:100;height:24;BACKGROUND-COLOR:buttonface' onClick ="popup()">Fund Booking</button>
    On Fund_booking.jsp:
    <SCRIPT>
    var oMyObject = window.dialogArguments;
    var sBrandcode = oMyObject.Brandcode;
    alert(sBrandcode);
    </SCRIPT>
    Even the following alert is not getting displayed in pop-up window;
    <script>
    function ValidateData()
    alert("Hi");
    </script>
    <button name="B_Save" tabIndex=1 style='POSITION:absolute;LEFT:255;TOP:315;WIDTH:75;height:24;BACKGROUND-COLOR:buttonface' onClick ="ValidateData()">Save</button>
    I am using DIV instead of frames in my both forms. I just want to get that value in my pop-up window to write a query based on which data will get displayed in my table of pop-up window.
    Plz help me to solve this problem.

    just attach the value with its url for example
    String names="java";
    <a href="# onclick="window.open('file.jsp?name='+names);"></a>

  • Pop up Window before saving remembering the need (forcing) to fill required fields in a form

    Hi!
    I searched the "old" forum and have very good help from UVSAR but unfortunately I'm not able to access my message sent to that forum anymore.
    [I could never thank all the people who answered because I keep receiving "Your submission has triggered the spam filter and will not be accepted.""]
    I've have never use Java scripts in my life: I started about three days ago.
    1) I'm using Adobe Acrobat Pro X (Windows 7)
    2) I've created a form using Microsoft Word and save it as a pdf file.
    3) After I created a form using Acrobat Pro X;
    3.1.) This form it's not going to be submitted over Internet. It will be send by e-mail to some persons. They will receive it, fill in the form and send it back to me via e-mail. Note: I will save it with extended rights in order to allow to be read with acrobat reader (I'm the only one of the group having Professional edition).
    4) In that form I've created some text fields (for now it's just what I need - no radio buttons, dropdown
    menus, and so...)
    5) Choosed Properties and marked 7 fields as "required";
    6) Used a script I found in here: http://forums.adobe.com/thread/784322 (thank you for the authors of the thread)
    if (!event.target.valueAsString) {
    app.alert("My text My text", 3);
    7) This script allows me to remember people to fill that 7 specific fields (when using mouse or tab).
    8) So... What I really need? Here are the reasons for my request for help:
    8.1.) When people use the Acrobat Reader Save button (not a button I created inside the form) it will pop up an alert message. Users will receive a pop up window telling them they need to fill those fields before saving the form and send it back to me. Can someone share a script, please? Thanks in advance.
    8.2.) Is there a way to colorize the fileds that need to be filled? Again I only learned where to insert a java script yestaerday sou I'm not able to write one. I'm sorry for my newbie questions.
    8.3.) Last question: In one of the fields there will be an e-mail address. On the end of the form I want to create a button like "Send by e-mail" and When someone press that button the e-mail will be sent to the address that was written in the earlier specific field. How can I do this (link a button to an e-mail address in a specific field)? Can someone help me with a script or ideas? Hope I was clear.
    8.1.) UVSAR sent me the following code that works fine untill I save the document for the first time. Affter that he never shows me pop up window again.
    var isFilled = true;
    for (var i=0;i < this.numFields;i++){
    var f = this.getNthFieldName(i);
    if (this.getField(f).required && !this.getField(f).valueAsString) isFilled = false;
    if (!isFilled) app.alert("You must complete all the required fields");
    8.3.) With the help of UVSAR I used:
    var mailto = this.getField('emaddr').valueAsString;
    if (mailto!='') this.mailForm({ bUI:true, cTo:mailto, cSubject:"This is the subject", cMsg: "This is the body of
    the mail." });
    else app.alert("Cannot submit form until the email address field is completed");
    but gives me an error (Note: I named the filed with e-mail "emaddr")
    Once again Thank you so very very much to all the kind people who take their time to share knowledge...
    I'm not a native speaker, sorry for some errors
    Best regards
    AC

    Hi Winnie
    Unfortunately I have been sick and did not read the message before. I apologize.
    I have not received help beyond what is on the page. But when I get I tell you.
    I hope you can get answers. If you receive, I ask that you share with me.
    thank you very much
    best regards
    AC
    Date: Mon, 27 Feb 2012 09:33:10 -0700
    From: [email protected]
    To: [email protected]
    Subject: Pop up Window before saving remembering the need (forcing) to fill required fields in a form
        Re: Pop up Window before saving remembering the need (forcing) to fill required fields in a form
        created by Win_Form in Forms - View the full discussion
    Hi ACI wonder if you can share any responses on to your question above?I too have never used a script but, I have the same problems as you in regards to building a form. And wants to have the same 'protection' and message reminders for the end users. Any information, including a script and/or a contact email of experts you can share with me will help tremendously. Thank you so much in advance. Winnie
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4232307#4232307
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4232307#4232307. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Forms by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How to change the size of New Page create pop up window ?

    In Site Actions on clicking of New Page the pop up page is opened it is stretched mode.
    I want to change the width of that pop up windows only.
    After pressing F12 key i find that it is happening because of the java script  function on calling of which that page is opened.
    But i am unable to find that javascript function from where it is calling or where it is written or how i can modify that function.
    So please help me out in solving that issue.

    Hi,
    According to your post, my understanding is that you want to change the size of the new page pop up dialog.
    We can create a new dialog with proper size to achieve it.
    I have made a simple code demo to create a new dialog with proper size, you can have a look at it.
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(function(){
    ready();
    function ready(){
    $("span[title='Open Menu']").click(function(){
    //alert(2);
    setTimeout(openNewPageClick,500);
    function openNewPageClick(){
    //setTimeout(openNewPage,1000);
    $("#mp1_0_3").removeAttr("onMenuClick");
    $("#mp1_0_3").click(function(){
    url="http://sps/_layouts/createwebpage.aspx";
    openDialogBox(url);
    function openDialogBox(url){
    var options = SP.UI.$create_DialogOptions();
    options.url = url;
    options.height = 900;
    SP.UI.ModalDialog.showModalDialog(options);
    </script>
    Note: You should change the ID or class to fit your environment.
    More reference:
    http://kyleschaeffer.com/sharepoint/sharepoint-2010-pop-up-dialogs/
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Pop-up window - triggered by a click on an image

    I need to know how I make an image call a pop-up window (external website), when you click the image.
    Please help.

    Thank you very much.
    I actually had some useable java script, but the trick dividing the commands into two steps - Insert HTML --> javascript code AND linking an object to that code did the trick.
    Now I'll have to learn some more javascript code in order to center the pop-up window.
    But thank you very much so far.

  • Pop-up window

    I want a pop-up window with no menubar or toolbar and scrollbar.
    Below is the code i used but still i can see menubar,toolbar,..
    i have used no whitespaces to avoid ignoring of the code. Still it is not working.
    function popit()
    window.open('','_popups','toolbar=no,status=no,location=no,menubar=no,resizable=no,scrollbar=no,top=200,left=200,screenX=200,screenY=200,height=150,width=30')
    }

    Well, your question has nothing to do with java...you are in the wrong forum.
    Try javascript forum for more help

  • Open or Save to harddiskoption pop up window needed when clicked on pdf lin

    Subject : Open or Save to harddisk option pop up window needed when clicked on pdf link
    I have a web application. There will be some pdf links in the application. When clicked on these links I read the content from database and output as bytestream. But when end user clicks these files the pdf will open in the browser or in Adobe based on his Adobe setting
    Note : Experimentation done on Adobe Acrobat reader 5
    Setting 1> Edit - Preferences - Options - Check on the 'Display PDF in browser' option
    pdf opens up in the browser itself without asking any option
    Setting 1> Edit - Preferences - Options - Check off the 'Display PDF in browser' option
    on click it opens a windows pop up window asking me either to 'Open' or 'Save' . If I say Open it opens in Adobe.
    Can this setting be controlled by my application itself [from Java servlets]? I want the opp up to be asked for every end user who clicks on the pdfs irrespective of what settings he has in Adobe Acrobat

    I am not sure whether this will work. But it's possible to download the pdf file. Try the following
    response.setContentType("application/download");
    String filename = <<filename>>
    response.setHeader("Content-Disposition","attachment;filename=\"" + filename + "\"");
    Read the file into a bufferedOutputStream and then
    int bytesA = bis.available();
    response.setContentLength(bytesA);
    write the content to ServletOutputStream..
    Sagar

Maybe you are looking for

  • Spool help

    hi I created a view which has 6000 records and each record has 54 columns. now I am trying to spool the output data of the view to an excel sheet as sql>spool c:\out.csv sql> select * from summary; but the excel file does not display the records in a

  • Reg: basic doubts in BI

    Hi All,              Please give answer for some question.        1. What is reorganaization of master data.         2.If we delete initilaization of infopackage what will happen?          3.what BI accelerator and what is the necessity of this? Than

  • JSF 2.0 faces-confix.xml problem

    Hi, I am developing web application using JSF2.0 along with netbean6.8 IDE. In this project, i use rich faces 3.3.2. when i run the application, it throws the following error deploy?path=C:\Documents and Settings\workplace\JSF3\build\web&name=JSF3&fo

  • New iMac with dead pixels

    I just got a brand new 21.5 iMac it has 2 dead pixels, is this normal what's the acceptable number of dead pixels?

  • The Firefox What's New screen will not go away after updating to Firefox 10.0.

    I updated Firefox to 10.0 on my Acer Laptop. Now every time I open Firefox the What's new page loads along with my chosen homepage in another tab. I can not stop the What's new page from loading. No problem on my desktop, the What's new page loaded o