Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » How does one get setScale and setFitToHeight to work together in JavaFX/e(fx)clipse?(How does one get setScale and setFitToHeight to work together in JavaFX/e(fx)clipse?)
How does one get setScale and setFitToHeight to work together in JavaFX/e(fx)clipse? [message #1705398] Fri, 14 August 2015 15:03 Go to next message
Paul Roubekas is currently offline Paul RoubekasFriend
Messages: 207
Registered: March 2012
Location: Chattanooga, TN USA
Senior Member
How does one get setScale and setFitToHeight to work together in JavaFX/e(fx)clipse?

Newbie question here.

I have tried all the different possible sequences that I can think of e.g....
invoke setFitToHeight() first
invoke setFitToHeight() after setScale but before setContent

Nothing removes the huge gaps.

An eclipse forum and Google search came up empty.
See screen captures for more details.

What is wrong with my thinking or code?

index.php/fa/22904/0/

index.php/fa/22905/0/
  • Attachment: No gaps.png
    (Size: 87.16KB, Downloaded 316 times)
  • Attachment: Huge gaps.png
    (Size: 87.98KB, Downloaded 313 times)


Oxygen 3a
Windows 10
Re: How does one get setScale and setFitToHeight to work together in JavaFX/e(fx)clipse? [message #1705435 is a reply to message #1705398] Sat, 15 August 2015 11:13 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
This is not a general JavaFX help forum! You should ask general JavaFX
questions at the Oracle JavaFX forum!

I guess you already read
http://docs.oracle.com/javafx/2/ui_controls/scrollpane.htm. I also think
you did not fully understand that the scale-transformation does NOT
affect the layout bounds of your node!

Tom

On 14.08.15 17:03, Paul Roubekas wrote:
> How does one get setScale and setFitToHeight to work together in JavaFX/e(fx)clipse?
>
> Newbie question here.
>
> I have tried all the different possible sequences that I can think of e.g....
> invoke setFitToHeight() first
> invoke setFitToHeight() after setScale but before setContent
>
> Nothing removes the huge gaps.
>
> An eclipse forum and Google search came up empty.
> See screen captures for more details.
>
> What is wrong with my thinking or code?
>
>
>
>
Re: How does one get setScale and setFitToHeight to work together in JavaFX/e(fx)clipse? [message #1705440 is a reply to message #1705435] Sat, 15 August 2015 12:17 Go to previous message
Paul Roubekas is currently offline Paul RoubekasFriend
Messages: 207
Registered: March 2012
Location: Chattanooga, TN USA
Senior Member
Thomas, thank you for taking your time to answer this newbie's question. I now understand that this is not JavaFX question not a e(fx)clipse question. In the future I will test issues on a standalone Java app first to see if the issue only appears in eclipse. Have a great day.

Oxygen 3a
Windows 10
Previous Topic:Problems building e4 application
Next Topic:eclispe e4 application in part class open with scene builder time ERROR
Goto Forum:
  


Current Time: Wed Apr 24 15:43:04 GMT 2024

Powered by FUDForum. Page generated in 0.02707 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top