Clase NC_CuadroTexto Funcional

This commit is contained in:
mosterTeco 2024-03-20 08:32:38 -06:00
parent 7e7c8f29eb
commit 618a98acb2
1 changed files with 18 additions and 2 deletions

View File

@ -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);
}
}