How can we close the window using a button in applet?

I have a close button in my applet which should close the browser from where the application is launched. Can somebody post a sample code for doing the same?

I'm afraid I don't have any sample code, but I can describe a possible solution.
1. Retrieve the JSObject via Application.[url http://docs.oracle.com/javafx/2/api/javafx/application/Application.html#getHostServices%28%29]getHostServices().[url http://docs.oracle.com/javafx/2/api/javafx/application/HostServices.html#getWebContext%28%29]getWebContext()
2. Use the JSObject to manipulate the JavaScript into closing the Window.

Similar Messages

  • How can i close the window when i logoff transaction iviews?

    Hi
    I want to close the Portal session window, when i logoff R/3.
    Is there any properties need to set in iview?
    pl suggest me
    thx
    pradeep

    Hi Pradeep,
    What do you mean by closing the Portal session window? Can you describe your events in a more detailed manner.. is this the portal window or is R/3 opened in a new window?
    cheers,

  • How can I close the window on end of execution

    I have a subVI that I call to scan incoming data. When I stop scanning,
    I want the window to close and return to the front panel of the calling
    VI. Can someone help me please?
    Thanks in advance!
    Dave

    Dave,
    If I get it correctly all you need to do is to follow steps below to get
    rid of VI front panel after execution.
    *-ON the Front Pannel go to VI Icon and right click.
    * Select VI Setup.
    * Select Execution Options
    * click on Show front pannel when called
    * click on close afterwards if originally closed.
    Make sure to save your vi with some other name and try on it.
    Rgds,
    Hasan
    "Dave G" wrote:
    >>I have a subVI that I call to scan incoming data. When I stop scanning,
    >I want the window to close and return to the front panel of the calling
    >VI. Can someone help me please?>Thanks in advance!>Dave

  • Close a window using a button

    Hi,
    How do i close a window using a button in that window.
    I thought i might be able to add a windowListener to that button but that doesnt seem to work, any ideas?
    Thanks
    Cath

    eg
    http://www.geocities.com/rmlchan/tst.html

  • How can I close the iOS Diagnostics window?

    When trying to solve a problem through Apple's support service a iOS Diagnostics app started and now I cant figure out how to close it. It's not in the recently used list of apps, but when I swype through the opened apps, it's always there.
    So my question is:
    How can I close the iOS Diagnostics window?

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
     Cheers, Tom

  • How can I change the window size of iTunes?  Used to be easy before installing Mavericks.

    How can I change the window size of iTunes on my iMac?  Used to be easy before installing Mavericks.

    If you want to make the itunes tab so you can see the dock
    you press the
    esc
    button if your in full screen mode
    if you want to get into full screen mode you press the arrows facing away from eachother in the top right corner
    there is another way to get to the normal tab if your in full screen
    make the curser go right up to the top of the screen and it will show the apple tab
    it will have two arrows facing together highlited in blue
    if u tap that it will take you to the normal tab

  • HT5639 i use boot camp to install windows 8.1 but in the middle of the installation it is stop,how can i install the windows again?

    i use boot camp to install windows 8.1on my mac but in the middle of the installation it is stop,how can i install the windows again?
    why it`s stop?

    What is your exact machine and what's the error

  • How can I close 'current' window and not all windows?

    How can I close the current window (only) and not all or none?
    This function works well with MS Explorer.
    Not a problem, just a desired function.

    Hi JLCluster,
    If you just click the small x in the tab you are currently viewing, it will close only that tab. I think you are clicking the x in upper right hand corner of the screen which closes all open tabs as you described.
    Hopefully this helps!

  • What should I do if the iphoto keeps on saying that "Plz wait for import to complete" when i click the close button but it is not importing photos? How can I close the iPhoto? I try to switch my mac off but it doesn't work. Thanks.

    What should I do if the iphoto keeps on saying that "Plz wait for import to complete" when i click the close button but it is not importing photos? How can I close the iPhoto? I try to switch my mac off but it doesn't work. Thanks.

    You should be able to select Force Quit from the menu beneath the Apple icon in Finder
    and choose to Quit iPhoto from there, without messing up the Mac OS X in the process.
    OS X - Support
    Not sure if rebuilding the iPhoto library would help this issue. However if you had to
    turn off the computer without the correct method (unplug, etc; instead of menu choice)
    the system may have accrued damages and should be checked, maybe repaired by
    use of the Disk Utility in the system. Or restart the computer in Safe Boot mode, then
    run 'repair disk permissions' while it is running in that reduced mode; then restart after.
    •Understanding Safe Mode - tuts+ computer skills tutorial:
    http://computers.tutsplus.com/tutorials/understanding-safe-mode--mac-59897
    •OS X: What is Safe Boot, Safe Mode?
    Suggestions on how to use Safe Mode in article, to resolve issues, may be helpful.
    There likely are other means to rectify troublesome applications, including reinstall.
    Be sure to backup your music, image, video, and other work on an external drive
    or suitable device as a precaution against loss should there be a hard drive failure.
    iPhoto - Mac Apps - Apple Support
    There should be some tips and help information using iPhoto via this tiny Support link.
    Good luck & happy computing!

  • How i can open a browser windows using a button in jsf ?

    Hi
    Thank you for reading my post
    how i can open a browser windows using a button in jsf ?
    for example if i want to open a window which will show http://www.mywebsite.com?name=TestName&family=TestFamily
    and before opening the window i need to set those two variables.
    can some one help me with a solution ?
    thank you

    Hi Legolas,
    Please refer to the answer provided by Chris in the EA forums.
    Cheers
    Giri

  • How can i detect the windows version

    Hi,
    How can I detect the windows version from Forms 6i?
    I was used get_application_property(operating_system); But it only return MSWINDOWS, MSWINDOWS32, WIN32COMMON.
    Any function or way can return the exact windows version(98/ME/NT/XP)?
    Regards, Wing

    You may use Win_Api_Environment API call to get windows version.
    I have sample code on my home PC if you need code send mail at [email protected]

  • How can I open the windows file directory in "WHEN-BUTTON-PRESSED" trigger

    Dear All,
    How can I open the windows file directory in “WHEN-BUTTON-PRESSED” trigger?

    Blessan Joseph,
    The solution is dependent on your Forms version and if your applications is traditional Client/Server (CS) (Forms 6i and lower) or web deployed (Forms 6i and higher). For CS, you would use the Get_File_Name() built-in as Faa demonstrated. For Web, you will need to use the WebUtil library function Client_Get_File_Name() as Sarah (OGIR) demonstrated. Both of these functions will return the full path to a file. Note: WebUtil is an external library so it requires you to perform some configuration on your developer client as well as on the Application Server. WebUtil is included with Forms 9i and higher, but you must download it for Forms 6i.
    My requirement is user should able to select windows directory for the output.Do you really need to allow the user to write to a file in the Windows directory? This is very dangerous and you should not allow users or programs to write to the Windows directory. Users should only be able to write files to "User" directories (\My Documents\<Directory name>).
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • My Webpage screen is always minimized. How can I enlarge the window?

    My Webpage window is smaller then my screen the window is at about 10 inches instead of the whole scren . How can I enlarge the window (webpage) ? it is so annoying to work with this screen.
    Any help would be greatly apperciated.
    Thank you

    The first place to start may be to check Activity Monitor. Look at the Disk Usage tab and the CPU tab and see if any one or two things seem to be dominating that activity. Especially see if it's some 3rd party app or background process.

  • How can I find the schemas used in a database?  Any system table contains?

    How can I find the schemas used in a database? 
    Any system table contains?
    I would like to know sql statement (dictionary object name) which tells the all schema s in a database like dba_users.

    Hello,
    this SQL should help:
    db2 "select schemaname from syscat.schemata"

  • HT4759 How can I know the Devices using my i Cloud or Apple ID?

    How can I know the Devices using my i Cloud or Apple ID?

    This information is not available. If you have any misgivings, change your password at http://appleid.apple.com - it should be at least 8 characters - 12 would be better - of which one must be a capital letter and one a numeral. No punctuations signs, and no real words.

Maybe you are looking for

  • How do I get Finder windows to hold their settings?

    Reading in other discussions, I see some folks are having problems with desktop icons moving around. My desktop icons are fine and stay put, but my Finder windows continually rearrange themselves to whatever random design Lion wants to give them. The

  • Creating Report and connecting to database

    Hi I am trying to create a report using Crystal Reports and VB.net, However when I use the database expert to connect to the database I get the error code 0xbe9, cannot open the database. It sometimes work and sometimes do not. Please help Regards Na

  • Transfer Asset

    Hi Gurus, One asset has a $1000 of value and it has the installation cost of $100. When we transfer an asset how can we stop the installation cost so it won't transfer to the new asset and the rest would? Or the asset would transfer the whole value o

  • HT4906 if i delete images from photo stream do they stay in events

    if i delete images that i have made into events in iphoto, can i delete them in my photo stream on my macbook

  • Profiles on my 6600 Fold

    Each time I change to silent profile then back to general profile I find the message Alert that I had set as nothing in general has reverted back to a audibal alert can anyone help?