Pankaj Deshmukh
Pankaj Deshmukh

Reputation: 19

Edit : How to zoom in and zoom out Content in Hbox draggable node in javafx

Situation : i have HBox with Labels and while click on it should be look like zoom in and zoom out. Consider following String of Labels

ATATATATATATATATA.....50 char when i zoom it shows me 25 char with some zoomable view how i can get result.

Upvotes: 1

Views: 122

Answers (1)

Mohasin Mujawar
Mohasin Mujawar

Reputation: 130

If you hold String of labels inside HBOx then Simply on Every click you increase width of label create map with labels width and click

on each click maintain flag and set width to label .

label.setWidth(value); revalidate container.

That It. hope it will work

Upvotes: 1

Related Questions