Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+10 votes

In the instruction page, the "Roll With It" is in the dead center, but for mine it is off to the left side.
I compared with a friend and hers is in the dead center, but she said it showed up that way without her doing anything. Note that I have everything else centered, I just can't figure out the "Roll with It".

asked in CSC305 Fall 2023 by (2k points)

3 Answers

+5 votes
 
Best answer

The text "Roll With it" is centered in the Lab's image because the program is being run on the Linux operating system (Using the GNOME 2 GUI I believe), which by default centers the window title. However, the Windows OS displays the window title left aligned.

answered by (2.1k points)
selected by
+5 votes

My "Simple Paint" and "Roll With It" are both left-aligned. I tried a variety of approaches, but nothing appears to work. Since we all have that in common, I suppose it doesn't matter.

answered by (1 point)
+4 votes

My "Roll With It" title is left-aligned as well. I don't think this is an issue, my guess is it might be because your friend has a different version of JavaFX or she has a Mac computer. I couldn't find a way to center that title, and I don't really see a reason to need to center it so I bet you're good as long as all the other stuff in your VBox is centered.

answered by (1 point)
...