Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

NAME:KARAKA.

RUPASREE
REGISTRATION NUMBER:20BCI7108

CODE:

import javafx.application.Application; import


javafx.stage.Stage; 
import javafx.scene.Scene; 
import javafx.scene.layout.*; 
import javafx.scene.shape.Circle; 
import javafx.scene.paint.Color; 
public class HelloApplication extends Application { 
 public void start(Stage stage) 
 { 
 stage.setTitle("Creating canvas");  Circle ci=new
Circle(); 
 ci.setCenterX(200.0); 
 ci.setCenterY(200.0); 
 ci.setRadius(100.0); 
 ci.setFill(Color.BLUE); 
 BorderPane b=new BorderPane(); 
b.getChildren().add(ci); 
 Scene s=new Scene(b,400,400); 
stage.setScene(s); 
 stage.show(); 

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

You might also like