From 7469b246ec970b4063b53ace398b7d6f44755da0 Mon Sep 17 00:00:00 2001 From: NataliaCancinoV Date: Sat, 23 Mar 2024 20:36:44 -0600 Subject: [PATCH] Clase NC_CuadroTexto actualizada --- .../uvct/presentadorfx/NC_CuadroTexto.java | 28 ++++++++++++------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/PresentadorFX/src/main/java/uvct/presentadorfx/NC_CuadroTexto.java b/PresentadorFX/src/main/java/uvct/presentadorfx/NC_CuadroTexto.java index fed212f..24f0dec 100644 --- a/PresentadorFX/src/main/java/uvct/presentadorfx/NC_CuadroTexto.java +++ b/PresentadorFX/src/main/java/uvct/presentadorfx/NC_CuadroTexto.java @@ -1,13 +1,21 @@ -/* - * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license - * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template - */ package uvct.presentadorfx; -/** - * - * @author mario - */ -public class NC_CuadroTexto { - +import javafx.scene.paint.Color; +import javafx.scene.text.TextFlow; + +public class NC_CuadroTexto extends TextFlow { + + public NC_CuadroTexto() { + super(); + this.setMinSize(800, 600); + this.setLineSpacing(30.0); + } + + public void agregaTexto(String punto) { + NC_Texto t = new NC_Texto(); + t.setTexto("\n\t* " + punto, 30, Color.BLACK); + this.getChildren().add(t); + } + + }