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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Aligning texts in one column on TableView

870514Nov 6 2011 — edited Nov 7 2011
I was wondering if you could align the texts in one column of the TableView to, let's say, CENTER. Is there a way to do this for each column one at a time?
.table-cell {
     -fx-alignment: BASELINE_CENTER;
 }
The code above would sets all the columns in a table view to center which isn't what I want. There are specific alignments for each column.

Any help would be appreciated..thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 5 2011
Added on Nov 6 2011
1 comment
9,702 views