Masking in Javafx 2.0

Hello , Today I’m going to show the small demo of masking. In javafx masking is known as clipping. Every Node Object has

You can use the setClip to any Node.The setClip is used to mask for specific dimension of the existing Node.Let’s see the demo application of this masking in Detective Glass Application.

Source Code (DetectiveGlass.java):

Detective Glass (Masking)

A worked out example : Detective Glass

 

Feel free to comment.

Have a 🙂 good day.

17 thoughts on “Masking in Javafx 2.0”

  1. Narayan Gopal Maharjan

    I think Javafx 2.0 is easy and flexible who have already knowledge of Java. So There won’t be any difficulties on converting 1.3 app to 2.0

  2. you need Windows Mobile 6.0 or 6.1 platform installed on a target device with network connectivity, 32-bit RISC based microprocessor, and minimum 64 MB RAM.

    1) First, you copy the SUN_JAVAFX.CAB file over to the device emulator file system
    2) Click on the SUN_JAVAFX.CAB to install it
    3) Copy the JavaFX application jar file over to the device emulator file system
    4) Click on the jar file – this should start the JavaFX application installer and should ask you if you want to install the application
    5) Once the installation finishes you can start JavaFX by choosing the “JavaFX” icon in the “Programs” section of the device
    6) You should see your JavaFX application in the list of installed applications. Click to run it. Tesla Secret

  3. Favorite post having such an fantastic and useful informative content. describing good blogging concepts as well as basics that are very much useful in skilled content writing as well

  4. Is there a way to create masking with complex shapes? What I have is an image of the back side of an iphone device and I’d like to create a “skin” for it using a photo but leaving the Apple logo as is (meaning not covered). Is there a way to achieve this if javaFX?

    Thank you

  5. @Stefanos,
    You can easily make use of “clipProperty” available for every Node . To make masking for the apple logo you need to make ImageView instance which will be shown to the user masking in the shape of applet logo.
    imageToDisplay.setClip();

    Thanks

Leave a Reply