I am trying to move my button position to the right of the progress bar but it's coming below the progress bar:

Here is my code:


Java FX Code:
    for(int i=0; i<x; i++)
            {
            
            int CurrPosX = (i*30) + 35;
            int XSpacing = 5;
                        
         
            prog_QR[i] = new ProgressBar();
            stop_QR[i] = new Button("Stop Me If You Can!");
            
            lab_QR[i] = new Label("Thread " + i);
            lab_QR[i].setPrefHeight(11);
            lab_QR[i].setPrefWidth(300);
            lab_QR[i].setStyle("-fx-font-family: Myriad Web Pro Bold; -fx-font-size: 10px; -fx-font-weight: bold; -fx-base: #b6e7c9;");
            
            prog_QR[i].setPrefHeight(11);
            prog_QR[i].setProgress(0);
            prog_QR[i].setMinWidth(200);
            prog_QR[i].setStyle("padding-bottom:15px;");
            //stop_QR[i].setMaxWidth(200);
            
           
            
            System.out.println( "lab_QR X[" + i + "] " + lab_QR[i].getLayoutX());  
            System.out.println( "prog_QR X[" + i + "] "  +  prog_QR[i].getLayoutX());
            System.out.println( "stop_QR X[" + i + "] "  +  stop_QR[i].getLayoutX());
			
			
                
            
   
            
            FeedBackGrid.add(lab_QR[i],  0, (i*2)); 
            FeedBackGrid.add(prog_QR[i], 0, (i*2)+1); 
            FeedBackGrid.add(stop_QR[i], 0, (i*2)+2);

Here is how it's coming out:

Java FX Code:
Thread 1
			// My Progressbar goes here
			//Thread 2 and "Stop me if You can" are overlapping.

I want it something like this:

Java FX Code:
Thread1
			//My Progress bar here    Button "Stop Me if You can" here
			
			Thread2
			//My Progress bar here    Button "Stop Me if You can" here

Please let me know what am I doing wrong here?