RDV+DIAL chat illimit� dans ta r�g!
no save
Assistance
Achat
News

Forum | programmation
[JAVA] Barre de défilement
phantom lord, le mar. 21 oct. 2008 à 16:33:35
Bonjour,
Voila le topo;

j'ai fait une fenetre en java, et j'ai inséré un JTextArea

seulement je voudrais mettre des barres horizontales et verticales de défilement sur ce JTextArea.

Mais je n'y arrive pas, et j'ai beau chercher je trouve rien

voici des parties de mon code :




import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class FicheClientIHM extends JFrame implements ActionListener,WindowListener
{

...

private JLabel labelCommentaires;
private JTextArea txtACommentaires;

...

public FicheClientIHM()
{

super();
this.setSize(500,600);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setTitle("Fiche Client");
this.setVisible(true);
this.setResizable(false);


....


this.labelCommentaires= new JLabel("Commentaires : ");
this.txtACommentaires=new JTextArea();


...
Container contenu=this.getContentPane();
contenu.setLayout(null);

...

contenu.add(labelCommentaires);
contenu.add(txtACommentaires);

...


labelCommentaires.setBounds(40,260,200,20);
txtACommentaires.setBounds(240,260,200,60);



Merci d'avanceConfiguration: Windows XP
Firefox 3.0.3


phantom lord
oct. 08
Suivant
REPONSES
phantom lord
oct. 08
guillaume_74
oct. 08
phantom lord
oct. 08
phantom lord
oct. 08
Adrien
oct. 08
Version Web
Réalisé par RedShift
no save