Clase NC_CuadroTexto actualizada

This commit is contained in:
NataliaCancinoV 2024-03-23 20:36:44 -06:00
parent 89badbd078
commit 7469b246ec
1 changed files with 18 additions and 10 deletions

View File

@ -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; package uvct.presentadorfx;
/** import javafx.scene.paint.Color;
* import javafx.scene.text.TextFlow;
* @author mario
*/ public class NC_CuadroTexto extends TextFlow {
public class NC_CuadroTexto {
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);
}
} }