• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

What is the best to achieve this sort of layouts ? (Newbie)

 
Ranch Hand
Posts: 79
Android Java ME Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi all,

I am a newbie for JavaFX. I want to develop a client which has tiles and on clicking a tile again other tiles appear. Finally a other layout for entry/view appears.

I belive for this I got to have different layout classes for each and call one by one in the main class. But am not able to get how to achive this. I read couple of turotials but couldn't get what I want to achieve.

What is the best possible way to achieve this? Please try to help me at the earliest. Any help is highly appreciated.

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Trupti,

I am a JavaFx newbie also; it looks as if your application is a my JavaFx game (a kind of Sokoban game). I have a grid of 22 * 22 tiles, located at certain positions:

ImageView le_buildingView[][] = new ImageView[22][22];
for (nRow = 0; nRow < 22; nRow++) {
for (nCol = 0; nCol < 22; nCol++) {
le_buildingView[nCol][nRow] = new ImageView ();
le_buildingView[nCol][nRow].setX (nCol * 26 + 178);
le_buildingView[nCol][nRow].setY (nRow * 26 + 40);

leView.getChildren ().add (le_buildingView[nCol][nRow]);
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic