Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9107827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T02:40:00+00:00 2026-06-17T02:40:00+00:00

I have encountered a strange behaviour in javaFx2, when moving a pane, that is

  • 0

I have encountered a strange behaviour in javaFx2, when moving a pane, that is bigger than the current scene. The pane has set a background-image in a css file, like:

#foo {
    -fx-background-image: url("bar.png");
}

The image is rendered correctly at first, but when I move the pane (to show a different part of it in the scene), the pane is white, where it was not visible before moving and the background-image should be.

Move-code:

private void moveCameraTo(Point p) {
    TranslateTransition translate = TranslateTransitionBuilder.create()
            .node(pane)
`   `       .toX(someX)
            .toY(someY)
            .duration(DEFAULT_TRANSITION_TIME)
            .build();
    translate.play();
}

Here is a image of the fail:

http://img204.imageshack.us/img204/4796/renderfail.jpg

The background is rendered correctly, as soon, as I resize the scene by dragging its borders.

Am I doing something wrong while moving the pane, e.g. missing an update method (although I doubt this exists in javaFx2) or setting a member of the pane?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T02:40:01+00:00Added an answer on June 17, 2026 at 2:40 am

    After a lot of searching and trying, I have come to the conclusion, that this behaviour is a bug.

    A workaround for this is, to use a ScrollPane instead of a plain Pane and move the “camera” by setting the vvalue and hvalue in a Timeline, like this:

    private void moveCameraTo(Point p) {
            KeyValue yVal = new KeyValue(this.scrollPane.vvalueProperty(),
                    p.getY(),
                    Interpolator.EASE_BOTH);
            KeyValue xVal = new KeyValue(this.scrollPane.hvalueProperty(),
                    p.getX(),
                    Interpolator.EASE_BOTH);
            Timeline yTimeline = TimelineBuilder.create().autoReverse(false)
                    .keyFrames(new KeyFrame(DEFAULT_TRANSITION_TIME, yVal)).build();
            Timeline xTimeline = TimelineBuilder.create().autoReverse(false)
                    .keyFrames(new KeyFrame(DEFAULT_TRANSITION_TIME, xVal)).build();
    
            yTimeline.play();
            xTimeline.play();
        }
    

    I hope this helps everyone having the same problem.
    If anyone got a better solution, please post it!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have encountered a strange linker problem that has me utterly perplexed : I
I have encountered the strange problem, that linux c++ compiler includes the files from
I'm trying to learn python and have encountered some strange behaviour. I am experimenting
I encountered some really strange behaviour in Apache. I have a standard let PHP
I'm having a strange issue that I've never encountered before. I have a partial
While coding, I have encountered a strange Java Compiler behaviour. When compiling the class
I have encountered a strange behaviour using dijit.form.select inside a tooltip-dialog. Here's a shortened
I have encountered a strange Invalid Packet Lenght (that is how the error is
Here is the pattern: $urlpattern = '%[^http://][^https://][\w]+(-[\w]+)*(\.[\w]+(-[\w]+)*)*\.[\w]{1,6}(\.[\w]{1,6})*[^/]%'; I have encountered a strange bug that
I have encountered a strange behavior of BindingSource. First I set it's DataSource in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.