DoubleProperty in Java

AXISHK
AXISHK used Ask the Experts™
on
What's the difference between DoubleProperty and Double in Java ? When should I use DoubleProperty ?

Thx
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
gskTechnology consultant

Commented:
Hi Axishk,

double is a return type in java like for eg

double amount=5.4;

DoubleProperty  is used in JaVaFX to handle the event, you will many code sample for DoubleProperty.

Author

Commented:
Shortly, any more explanation on this ? I still can't get exactly the difference.

Thx again.
gskTechnology consultant
Commented:
please refer any JavaFx article ,if any part you not able to understand please come back.The DoubleProperty is bascially for binding the properties during some  action event.

let say you have to store name in java,or counting number in java ,so java has different data types
like
String name="AXISHK"
int vale=10
double  dollar=4.50

Tx
IT Business Systems Analyst / Software Developer
Top Expert 2015
Commented:
Double is a very general data type that would be used everywhere in lots of different Java applications, wherever you need to store a number that can have a decimal point.

DoubleProperty is a very specific object that it a part of the JavaFX platform. If you aren't writing a JavaFX application, then you definitely would NOT use this at all. If you are writing a JavaFX application, then you would likely already know what to use DoubleProperty for. I have delved into JavaFX so while I have an idea about how it is used, I don't know a lot. But as I said, if you aren't doing JavaFX, you can just forget about this one.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial