FlowPane_Pane_Compared1
Code:

package javafxtemplate1;
//Recursion_BindContent_ListView1
//textProperty().addListener Listview Label
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.layout.FlowPane;
import javafx.scene.layout.HBox;
import javafx.scene.paint.Color;
import javafx.stage.Stage;


/**
*
* @author Manas9
*/
public class JavaFXTemplate1 extends Application {
//ImageView imageView = new ImageView();
//Button clearBtn = new Button("Clear Image");
//Node imagenode;
Label label1 =new Label("L1");
Label label2 =new Label("L1");
Scene scene;
//Pane pane1 = new Pane();
FlowPane pane1 = new FlowPane();
HBox hb1 = new HBox(10); HBox hb2 = new HBox(10);
String str1; Color color1 ;//= new Color();
@Override
public void start(Stage primaryStage) throws Exception {
primaryStage.setTitle("shape Examples");
label1.setLayoutY(300);label1.setLayoutX(100);
label1.setText("Label in HB1");label2.setText("Label2 in HB2");
hb1.getChildren().addAll(label1);
hb1.setStyle("-fx-padding: 10;" +
"-fx-border-style: solid inside;" +
"-fx-border-width: 2;" +
"-fx-border-insets: 5;" +
"-fx-border-radius: 5;" +
"-fx-border-color: blue;");
hb2.setStyle("-fx-padding: 10;" +
"-fx-border-style: solid inside;" +
"-fx-border-width: 2;" +
"-fx-border-insets: 5;" +
"-fx-border-radius: 5;" +
"-fx-border-color: red;");
hb2.getChildren().addAll(label2);
pane1.getChildren().addAll(hb1, hb2);
Scene scene = new Scene(pane1,800,600);
//lineChart.getData().add(series);
primaryStage.setScene(scene);
primaryStage.show();
}

//


public static void main(String[] args) {
launch(args);
}
//
}

Display : FlowPane, organizing two HBox controls.

//Pane pane1 = new Pane();
FlowPane pane1 = new FlowPane();

Pane pane1 = new Pane();
//FlowPane pane1 = new FlowPane();

Note the two label controls are jumbled up as HBox controls overrides labels properties.