[Logo] JavaRanch » Big Moose Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » Java FX
 
RSS feed
 
New topic
Author

changing chart type on the fly

Jordan Thompson
Greenhorn

Joined: Nov 09, 2009
Messages: 11

I have a chart that I would like to change the type on the fly (i.e. with a combo box of several different types) so the user can choose the one that is best for his/her needs. How would you go about this? I've been looking for a refresh/repaint function for the scene, but quite frankly I am lost.


thanks,
Jordan

No matter where you go - there you are
-- Buckaroo Banzai
Jiri Goddard
Greenhorn

Joined: Aug 21, 2007
Messages: 21

Jordan Thompson wrote:I have a chart that I would like to change the type on the fly (i.e. with a combo box of several different types) so the user can choose the one that is best for his/her needs. How would you go about this? I've been looking for a refresh/repaint function for the scene, but quite frankly I am lost.


thanks,
Jordan


you probably want to use binding. you can store the initial type of your chart in a variable that you later on bind where you need it - means at the place in your code where you want to change the type of chart. no need to refresh the scene.


http://dredwerkz.ic.cz
Jordan Thompson
Greenhorn

Joined: Nov 09, 2009
Messages: 11

I don't want to start any flaming, but I have given up on FX for now and am using Web Start (tough to teach an old dog new tricks . Thanks for the answers...

Jordan

No matter where you go - there you are
-- Buckaroo Banzai
 
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » Java FX
 
RSS feed
 
New topic
replay challenge