From 618a98acb21d8e70d21705c01f684b5247113468 Mon Sep 17 00:00:00 2001 From: mosterTeco Date: Wed, 20 Mar 2024 08:32:38 -0600 Subject: [PATCH] Clase NC_CuadroTexto Funcional --- .../presentacionjfx/NC_CuadroTexto.java | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/PresentacionJFX/src/main/java/com/potrillos/presentacionjfx/NC_CuadroTexto.java b/PresentacionJFX/src/main/java/com/potrillos/presentacionjfx/NC_CuadroTexto.java index 02b4bf3..bbf404f 100644 --- a/PresentacionJFX/src/main/java/com/potrillos/presentacionjfx/NC_CuadroTexto.java +++ b/PresentacionJFX/src/main/java/com/potrillos/presentacionjfx/NC_CuadroTexto.java @@ -4,10 +4,26 @@ */ package com.potrillos.presentacionjfx; +import javafx.scene.paint.Color; +import javafx.scene.text.TextFlow; + /** * - * @author reyes + * @author Juan */ -public class NC_CuadroTexto { +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); + } + }