j'ai un Label dans un ScrollPane suivant le code XML suivant:
j'extrait un long texte depuis ma base de données et je l'affiche dans le label, mais le texte n’apparaît pas complet
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 <ScrollPane fx:id="scroll" layoutX="30.0" layoutY="162.0" prefHeight="125.0" prefWidth="730.0"> <content> <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="125.0" prefWidth="730.0"> <children> <Label fx:id="lblTitre" alignment="CENTER" prefHeight="120.0" prefWidth="720.0" textFill="#2196f3"> <font> <Font name="System Bold" size="12.0" /> </font> </Label> </children> </AnchorPane> </content> </ScrollPane>
pourtant quand j'affiche le ResultSet retourné depuis la BDD je le trouve complet, et j'ai ajouté la propriété wrap au label
quel est le problème qui empêche l'affichage complet du label ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 lblTitre.setWrapText(true); lblTitre.setTextAlignment(TextAlignment.JUSTIFY); scroll.setPadding(new Insets(10));
merci
Partager