Help on javafx coding please...

hi,
I have developed a small eclipse application. I want to integrate javafx with it.
I used the eclipse view's "composite" as the frame for the javafx application i developed, say a frame has a canvas which inturn has a rectangle.
Integration using the following code which i found in the net,
var frame = SWT_AWT.new_Frame(composite);
where the composite is the eclipse view's composite. And all fx components on fx's rootpane component and added it to the frame using,
frame.add(rootpane.getComponent());
This worked out excepting for Popupmenus.When i click for popupmenus, it shows and disappears. Other mouse click and drag options are working fine.
But if the frame is changed to javafx frame , all popup menus work fine. But i need it to be embedded within the view which wants an SWT_AWT base frame.
Can anybody suggest me something on this??
Sukanya

http://beej.us/guide/ipc/

Similar Messages

  • Can you help with the coding please? I am trying to create a moveable pin by clicking and dragging.

    import mx.transitions.Tween;
    import mx.transitions.easing.*;
    /* Mouse Click Event
    Clicking on the specified symbol instance executes a function in which you can add your own custom code.
    Instructions:
    1. Add your custom code on a new line after the line that says "// Start your custom code" below.
    The code will execute when the symbol instance is clicked.
    gage.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);
    function fl_MouseClickHandler(event:MouseEvent):void
    // Start your custom code
    // This example code displays the words "Mouse clicked" in the Output panel.
    trace("Mouse clicked");
    // End your custom code
    function rotation(350, 182) {
       return Math.atan2(dy, dx) * 180/Math.PI;
    gage.onRelease = function() {
       var newAngle:Number = rotation(_xmouse-this._x, _ymouse-this._y);
       var dist:Number = Math.abs(newAngle - this._rotation);
       this._rotation %= 360;
       if(dist > 180)     {
          if(newAngle > this._rotation) {
             newAngle -= 180;
          } else {
             newAngle += 180;
       new Tween(this, "_rotation", Strong.easeOut, this._rotation, newAngle, 1, true);

    You appear to have just collected a variety of code snippets and thrown them together, including a section of AS2 code ( gage.onRelease = function() {... )
    The suggestion I offered yesterday still stands.  You should find a tutorial regarding AS3 and the atan2 function.  Beyond that, what you show suggests this is a school assignment.  You should seek help from your fellow students and instructor if that is the case.

  • Corrected coding please for repeating image

    I have searched the internet/the tutortials and cannot get the correct coding for a repeat image vertically in a table on the left hand side of the webpage.  I believe the coding should be repeat-y but I tried all the examples and could not get it to work.  I finally found a way to get it on but I know there is better coding.  This is what I have so far:
    <tr><th width="526" height="865" valign="top" scope="row"><table width="121" height="864" border="0" align="left" cellpadding="0" cellspacing="0">
            <tr>
              <th width="121" height="864" valign="top" scope="row"><p><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" />
              <img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" />
              <img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /><img src="../Images/border.jpg" width="80" height="80" /></p></th>
            </tr>
          </table>

    I do not want a complete page covered with this design, merely the left-hand border side.
    as mentioned background-repeat:repeat-y; will do just that.
    Some of us, especially in this economic times, cannot afford to spend thousands to have a website created, so we do the best we can.  While I agree tables are difficult for they were indeed designed to place data, and I have eliminated tables where ever I could, this was the only way I could get the result needed.
    agreed times are tough, but seriously working in tables adds more time, more headaches and therefore costs more money.
    Sorry to have bothered you.  Shame Dreamweaver was bought out by Adobe but then, there are other programs; perhaps there forums will have more tolerance for one of us old duffers.
    whats with being all touchy? you asked for "correct coding please for repeating image?"
    and thats what I gave you.
    apart from that I mentioned not to use tables. which is a good thing to take on board.
    for example
    1. Tables are usually more bytes of markup. (Longer to download, and more bytes of traffic for the host.)
    2. Tables usually prevent incremental rendering. (Takes longer for the user to see anything on the page.)
    3. Tables may require you to chop single, logical images into multiple ones. (This makes redesigns total hell, and also increases page load time [more http requests and more total bytes].)
    4. Tables break text copying on some browsers. (That's annoying to the user.)
    5. Tables prevent certain layouts from working within them (like height:100% for child elements of <td>). (They limit what you can actually do in terms of layout.)
    6. Once you know CSS, table-based layouts usually take more time to implement. (A little effort up-front learning CSS pays off heavily in the end.)
    7. Tables are semantically incorrect markup for layout. (They describe the presentation, not the content.)
    8. Tables make life hell for those using screen readers. (Not only do you get the other benefits of CSS, you're also helping out the blind/partially-sighted. This is a Good Thing.)
    9. Tables lock you into the current design and make redesigns MUCH harder than semantic HTML+CSS. (Have you seen CSS Zen Garden?)
    (source - http://phrogz.net/css/WhyTablesAreBadForLayout.html)

  • My Mac was updated to Ÿosemite OS and since then the PS5 software doesn't open. I need help on this subject please.

    My Mac was updated to Ÿosemite OS and since then the PS5 software doesn't open. I need help on this subject please.
    They error message I get is "An unexpected and unrecoverable problem has occurred. Photoshop will now exit."
    This only started after I upgraded my OS to Yosemite.

    The upgrade has been know to break Photoshop CS5 installs. An Uninstall/Reinstall may be necessary.

  • If you want to access the PowerShell 3.0 Help in another language please vote for my Connect suggestion!

    All my Windows operating Systems are set to use the UI Culture: German
    With Update-Help or Save-Help you can download PowerShell help in different (any) language by use of the –UICulture parameter.
    Update-Help –UICulture en-US
    Because my Windows OS is set to use the German UI Culture and the Cmdlet Get-Help depends on it, I cannot access PowerShell help in a different Language (English) with Get-Help.
    There is still no translated German PowerShell help and even if I have installed the en-US verbose Help files I cannot use it (easily)!
    I made a suggestion on Microsoft Connect to add the –UICulture Parameter to the Get-Help Cmdlet, to make it possible to call Help in a different language then the Windows Ui Culture.
    As a workaround until then you can use the  .NET Class [System.Threading.Thread]::CurrentThread.CurrentUICulture to set the UI Culture and get Help in a different language.
    Function Get-HelpUICulture {
    param (
    [String]$HelpSearchString,
    [String]$UICulture
    # remember the UICulture
    $OldCulture = [System.Threading.Thread]::CurrentThread.CurrentUICulture
    trap
    [System.Threading.Thread]::CurrentThread.CurrentUICulture = $OldCulture
    # set thread to given UICulture
    [System.Threading.Thread]::CurrentThread.CurrentUICulture = $UICulture
    # call powershell help in given language
    Get-Help $HelpSearchString -Full
    # reset UICulture
    [System.Threading.Thread]::CurrentThread.CurrentUICulture = $OldCulture
    # Example: call PowerShell en-US help in verbose English:
    Get-HelpUICulture -HelpSearchString Get-Command -UICulture ‘en-US’
    If you want to access the PowerShell 3.0 Help in another language please vote for my Connect suggestion!
    https://connect.microsoft.com/PowerShell/feedback/details/767899/please-add-uiculture-to-get-help
    Please click “Mark as Answer” if my post answers your question and click
    “Vote As Helpful” if my Post helps you.
    Bitte markiere hilfreiche Beiträge von mir als “Als Hilfreich bewerten” und Beiträge die deine Frage ganz oder teilweise beantwortet haben als
    “Als Antwort markieren”.
    My PowerShell Blog http://www.admin-source.info
    [string](0..21|%{[char][int]([int]("{0:d}" -f 0x28)+('755964655967-86965747271757624-8796158066061').substring(($_*2),2))})-replace' '
    German ? Come to German PowerShell Forum!

    Hello JosKW
    Thank you for your suggestions!
    In my 3 Part Blog Series about the new 3.0 PowerShell,  I offer a full blown Proxy Function for the Get-Help cmdlet to solve this better.
    For now I have the first two Articles Published at my Blog, the Third Part will follow soon:
    PowerShell 3.0 updateable help Update-Help, Save-Help und Get-Help Basics
    http://www.admin-source.de/BlogDeu/497/powershell-3-0-updateable-help-update-help-save-help-und-get-help-grundlagen
    PowerShell 3.0 updateable help Update-Help, Save-Help und Get-Help using
    http://www.admin-source.de/BlogDeu/523/powershell-3-0-updateable-help-update-help-save-help-und-get-help-anwenden
    The Articles are written in German. I think you as a Dutchman can read this.
    Or you can use the Translate Button on my Page, to use Google Translate Service to read this in the Language of your choice. ;-))
    Cheers Peter
    Please click “Mark as Answer” if my post answers your question and click
    “Vote As Helpful” if my Post helps you.
    Bitte markiere hilfreiche Beiträge von mir als “Als Hilfreich bewerten” und Beiträge die deine Frage ganz oder teilweise beantwortet haben als
    “Als Antwort markieren”.
    My PowerShell Blog http://www.admin-source.info
    [string](0..21|%{[char][int]([int]("{0:d}" -f 0x28)+('755964655967-86965747271757624-8796158066061').substring(($_*2),2))})-replace' '
    German ? Come to German PowerShell Forum!

  • I need a help !!! Please  ,I dropped my iPhone 5 in toilet and I didn't get fast  maybe 5mins before I get it because I didn't notice drop it and it won't work now  it's almost 1week I'm waiting it  still  it don't work ...

    I need a help !!! Please  ,I dropped my iPhone 5 in toilet and I didn't get fast  maybe 5mins before I get it because I didn't notice drop it and it won't work now  it's almost 1week I'm waiting it  still  it don't work ... But when I plug my charger it goes light and show up apple logo and die again I don't know what to do and it's so expensive here at Japan pls.. Help maybe there still way to get it work again
    Thank you ,Rean

    At this point it's clear that it's been damaged and will need to be take or sent to Apple for replacement.
    Regards.

  • Im stuck with this message "no bootable device, insert boot disk and press any key". Now i want to go back to mac os but everytime i turn on my laptop that message appear..kindly help... Please

    Im stuck with this message "no bootable device, insert boot disk and press any key". Now i want to go back to mac os but everytime i turn on my laptop that message appear..kindly help... Please .... Im using my usb as bootable device but it cant be detected..

    Reboot, hold the option key down, select OSX when the startup manager appears.

  • Uloading ebook using iProducer rec'd error: ERROR ITMS-9000: "Unable to parse nav file: toc.ncx" at Book. I don't understand and need help fixing it. Please Help

    Uloading ebook using iProducer rec'd error: ERROR ITMS-9000: "Unable to parse nav file: toc.ncx" at Book. I don't understand and need help fixing it. Please Help if you've the knowledge.
    Many Thanks

    Yep, i just did it again. The entire scroll-bar widget, complete with formatted text, graphics, etc., pasted itself nicely in another book. Two different files, the same widget.
    I use the scroll-bar widgets for most of my texts. (I have audio buttons on the side, and the scripts are within the widget, to the side). My only text is within widgets, and text boxes, naturally. 
    I am following your recommendation: cleaning files, etc. I am remaking the book anew. I need to convince the EPUB bot or whatever that my file looks and works nicely on all my devices. You would expect an error message when previewing the book: 'Hey Amigo, your file is flawed, stop working on it, and get back to the drawing board." Should be able to try again next Monday.

  • My iCloud is disabled. I've reset my password numerous times, but that doesn't help. Can someone please tell me how can I log onto my iCloud

    My iCloud is disabled. I've reset my password numerous times, but that doesn't help. Can someone please tell me how can I log onto my iCloud

    If your ID is disabled, you'll have to contact Apple for assistance, either by going to https://expresslane.apple.com, then click More Produces & Services>Apple ID>iTunes Store, App Store or Mac App Store>Disabled Apple ID, or by contacting the Apple account security team: http://support.apple.com/kb/HT5699.

  • I am trying to buy mitril for hobbit kom but it always gives me error i have already added my card information to store but i cant buy it.Could u help me about it ,please?

    I am trying to buy mitril for hobbit kom but it always gives me error i have already added my card information to store but i cant buy it.Could u help me about it ,please?

    Wish I could help. My wife is having the same problem.  Same computer for 2 years and all of a suddent it thinks this is her first purchase.

  • HT3775 why can't i play .wmv file in quicktime even after i download codec from windows? can anyone help me wit this please!!!!!

    why can't i play .wmv file in quicktime even after i download codec from windows? can anyone help me wit this please!!!!!

    Have you done the obvious things to try to fix it: quit Quicktime then start it back up again, log out then back in, reboot.
    Edit: Just read one of your later posts. If VLC won't play it, this is unrelated to Quicktime and Flip4Mac. Are you sure these wmv files are okay?

  • TS3276 I am not able to Mobile Me email account to connect with iCloud or my Apple Mail program. Don't know if my settings are correct or not. Can anyone help me with this please?

    I am not able to Mobile Me email account to connect with iCloud or my Apple Mail program. Don't know if my settings are correct or not. Can anyone help me with this please?

    http://support.apple.com/kb/HT5922
    If you want to mirror your desktop, see:
    http://support.apple.com/kb/HT5404
    Regards.

  • TS3276 can anyone help on the following please. When I have been away from the office for a few days and check for emails it only supplies the most recent 100 emails and the ones before that are never received. thanks

    can anyone help on the following please. When I have been away from the office for a few days and check for emails it only supplies the most recent 100 emails and the ones before that are never received. thanks

    Does your server have a limit?

  • I have a brand new MacBookProo and I can not open PDF files from my desktop. Can anyone help me with this please?

    I have a brand new MacBookProo and I can not open PDF files from my desktop. Can anyone help me with this please?

    A new Mac comes with 90 days of free tech support from AppleCare.
    AppleCare: 1-800-275-2273

  • Hi help me on coding for a IDOC for a CATSDB TABLE

    hi help me on coding for a IDOC for a CATSDB TABLE

    Hi,
    Check this fucntion module also.It can help you.
    ALE_PTMGREXTWOSCHED_INSWCOST
    Message was edited by:
            Jayanthi Jayaraman

Maybe you are looking for

  • Trust Certificate Issue in Outlook

    I have a new user who is attempting to trust certificate authority but is receiving the message: Outlook cannot trust the certificate authority's certificate (root certificate) because it cannot be found. Others are able to trust the same cert author

  • Email address in People screen and FND user screen

    In HR when we create a person record ( Employee / Contingent Worker / Contact etc ) we have a field for email address. UK HRMS Manager-> People -> Enter and Maintain -> People Now when we create a user account for the user, in FND user Screen, the em

  • I forgot my password iphone 5 What I am doing, please help

    I forgot my password iphone 5 What I am doing, please help

  • Ae is not in the creative cloud list.

    hello, I will download Ae, but it's not in the creative cloud list. So I can't download it. Pleas help me in need Ae.

  • Itunes hangs when determining gapless playback

    I have just plugged my portable hard drive back into my laptop after a month, i have 15,997 songs in total (60.93 GB)on my hard drive but it now hangs whilst doing the initial analyzing - on 378 of 4518 track 03 and will not progress. I have the late