Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Tooltip in fxml howto

917878Mar 2 2012 — edited Mar 5 2012
Hi All,

I am trying to define tooltip in fxml (javaFX 2.0), but no success:

The code below compiles, but the tooltip does not show. Should I activate it somehow?
If I add activated="true" an error (Property "activated" does not exist or is read-only) comes up.
...
<ImageView fx:id="action0" fitHeight="48" fitWidth="48" 
    onMouseClicked="#Action">
    <tooltip>
        <Tooltip text="Ho-hó-mmm"/>
    </tooltip>
    <style>
        -fx-effect: dropshadow( two-pass-box, black, 10, 0.0, 0, 0)
    </style>
    <image>
        <Image url="@icons/home_48.png"/>
    </image>
</ImageView>
...
I tried to wrap IamgeView into a Button, but got the same result.
This post has been answered by 885691 on Mar 2 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 2 2012
Added on Mar 2 2012
10 comments
7,387 views