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!

anyway to define an Image Property in custom ui class,display on scene builder inspector custoem sec

SZ William WangFeb 7 2015 — edited Feb 7 2015

hi:

I am want to define a custome UI class and package as jar field and import in scene builder 2.0.

but I find some wired behaviror.

my class is extend from AnchorPane,and add some setter and getter bean property.

I purpose add a Image Property and display in scene builder inspector custom section,and let select a image from disk.

but I use follow code to define the Image property,when package jar and import in scene build custom library,I find this property can't displayed,but other String property name could displayed.:

private ObjectProperty<Image> image;

public final void setImage(Image value) {

    image.set(value);

}

public final Image getImage() {

    return image == null ? null : image.get();

}

property.png

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 7 2015
Added on Feb 7 2015
0 comments
507 views