123456789101112131415161718192021222324252627282930313233 |
- package Application1;
-
- import java.awt.Font;
-
- import javax.swing.JTextArea;
-
- public class TextPanel extends JTextArea {
-
- public TextPanel() {
- super();
- Font police = new Font(Font.MONOSPACED, Font.BOLD, 25);
- this.setFont(police);
-
- }
-
- public TextPanel(int taille) {
- super();
- Font police = new Font(Font.MONOSPACED, Font.PLAIN, taille);
- this.setFont(police);
- this.setLineWrap(true);
- this.setWrapStyleWord(true);
-
- }
-
- public void AjouterParagraph(String txt) {
- this.append(txt);
-
- }
-
-
-
-
- }
|