import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.TextArea;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;

public class App extends Application {

	 @Override
	    public void start(Stage primaryStage) {
	        TextArea textArea = new TextArea();
	        textArea.setPromptText("Type here...");
	        
	        StackPane root = new StackPane(textArea);
	        Scene scene = new Scene(root, 400, 300);
	        
	        // Apply the CSS file
	        scene.getStylesheets().add(getClass().getResource("styles.css").toExternalForm());
	        
	        primaryStage.setTitle("TextArea with CSS");
	        primaryStage.setScene(scene);
	        primaryStage.show();
	    }

	    public static void main(String[] args) {
	        launch(args);
	    }
}