
package focus;

import javafx.application.Application;
import javafx.collections.ObservableList;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.ProgressIndicator;
import javafx.scene.control.TextArea;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;


/**
 *
 * @author rakesh
 */
 
public class Main_Window extends Application {
    
    @Override
    public void start(Stage stage) {
        
      TextArea keywords = new TextArea();
      Button crawl = new Button("Search");
      TextArea progress_text=new TextArea();
      ProgressIndicator progress=new ProgressIndicator();
      
      progress_text.setPrefColumnCount(50);    //Width
      progress_text.setPrefRowCount(50);       //Height

      keywords.setPrefColumnCount(8);    //Width
      keywords.setPrefRowCount(5);       //Height

      
      HBox horizontal_layout = new HBox();
      VBox vertical_layout = new VBox();

      vertical_layout.setAlignment(Pos.CENTER); // To align nodes (Button,SearchBox,ProgressIndicator) in center
     
      vertical_layout.setSpacing(30);
      
      horizontal_layout.setMargin(vertical_layout, new Insets(20, 20, 20, 20));
      horizontal_layout.setMargin(progress_text, new Insets(20, 20, 20, 20));
      
      ObservableList list_v=vertical_layout.getChildren();
      list_v.addAll(keywords,crawl,progress);
      
      ObservableList list_h = horizontal_layout.getChildren();
      list_h.addAll(vertical_layout,progress_text);
      
      Scene scene = new Scene(horizontal_layout);
      
      //Setting title to the Stage
      stage.setTitle("Main Window");
      //Adding scene to the satge
      stage.setScene(scene);
      //Displaying the contents of the stage
      stage.show();


    }

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        launch();
    }
    
}

@@ -1,8 +1,193 @@
+/*%0A * To change this license header, choose License Headers in Project Properties.%0A * To change this template file, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0A
 %0Apackage
@@ -195,16 +195,17 @@
 focus;%0A%0A
+ 
 import j
@@ -234,17 +234,16 @@
 ication;
-%0A
 import j
@@ -335,16 +335,17 @@
 ry.Pos;%0A
+ 
 import j
@@ -399,16 +399,51 @@
 Button;%0A
+import javafx.scene.control.Label;%0A
 import j
@@ -581,24 +581,25 @@
 ayout.VBox;%0A
+ 
 import javaf
@@ -617,17 +617,16 @@
 ge;%0A%0A%0A/*
-*
 %0A *%0A * @
@@ -643,17 +643,16 @@
 esh%0A */%0A
- 
 %0Apublic 
@@ -661,17 +661,16 @@
 ass Main
-_
 Window e
@@ -881,24 +881,81 @@
 TextArea();%0A
+      Label label = new Label(%22Enter Keywords%22);%0A%0A      %0A
       Progre
@@ -1719,16 +1719,22 @@
 .addAll(
+label,
 keywords
@@ -1927,18 +1927,42 @@
 l_layout
-);
+,1000,1000);%0A      %0A      
 %0A      %0A

Update Main_Window.java