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!

setting the preferred width or height of a ListView using css ?

se32862378Apr 11 2013 — edited Apr 12 2013
Is it possible to set the preferred width and height of a Node (a ListView) using css ?
Just in case I tried with:

.my-list {
-fx-pref-width: 130;
-fx-pref-height: 100;
}

but it does not seem to work.
This post has been answered by James_D on Apr 11 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 10 2013
Added on Apr 11 2013
3 comments
3,340 views