deo2000
deo2000

Reputation: 3

JavaFX Control sizing

I have a JavaFX app with ComboBoxes and labels. It looks fine in Windows XP but in Windows 7, the font sizes and comboboxe sizes are larger. I tried sizing the comboboxes with setstyle CSS with no results.

Upvotes: 0

Views: 43

Answers (1)

Francesco
Francesco

Reputation: 406

The fact that changing PC's result is different is to be considered based on PC screen resolution, And the fact that you can not modify the size seems to be a problem you have in both codes, only that on w.XP is a negligible problem.

A) Advanced solution:

1: Determine the screen size some code

2: Cenge the size some code

B) Not so advanced solution:

1: ask from the user the size of the text he like

2: cange the size (like A.2)

Upvotes: 1

Related Questions