• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Viewport Constraints

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I'm having problems with two objects from the same image that are supposed to be viewable side-by-side with viewport constraint. The first image object shows but not the second.

https://gist.github.com/2379dc8fbb33...88445193977e15

There are no syntax errors and it compiles but it is a logic issue. gull image can be substituted for any picture as long as its in same folder as the script.

P.S. the IDE above does not work for FX, it will have to be run in another IDE.
 
Emily Jason
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please view this link as the original is broken:
https://gist.github.com/anonymous/eec97cbe34dd1635eda72e59487a5a5f
 
Rancher
Posts: 1170
18
IntelliJ IDE Hibernate Firefox Browser MySQL Database Spring Tomcat Server Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I didn't run you code, but at first glance you make two rectangle, but instead of positioning them different, you give them a different size, so the first rectangle is probably shown but is hidden behind the second.
I would advise you to eather set the positioning with x and y or use a splitpane instead of a stackpane
 
Sheriff
Posts: 6029
157
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Norm seems to have helped the OP on the other forum.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!