Exericise14_01Extra
Write a program that prompts the user to enter the centercoordinates and radius of two circles. The program displays thecircles and a text indicating whether the two are overlapping,whether one is contained in the other, or whether they don’toverlap, as shown below .
here is my code. I need everything in one file.
package methods;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.shape.Circle;
import javafx.scene.paint.Color;
import javafx.scene.text.Text;
import javafx.scene.layout.Pane;
import javafx.scene.layout.VBox;
import javafx.geometry.Insets;
import javafx.stage.Stage;
public class Exercise_14_01Extra extends Application{
Circle circleOne, circleTwo;
public static void main(String[] args)
{
launch(args);
}
@Override
public void start(Stage stage)
{
Pane pane = new