Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1214 connectés 

  FORUM HardWare.fr
  Programmation
  Java

  Avoir une barre de scroll dans un JTextArea :/

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Avoir une barre de scroll dans un JTextArea :/

n°513557
EpoK
Let's burn
Posté le 12-09-2003 à 17:07:49  profilanswer
 

voila je trouve pas comment faire :/

mood
Publicité
Posté le 12-09-2003 à 17:07:49  profilanswer
 

n°513562
Taiche
(╯°□°)╯︵ ┻━┻
Posté le 12-09-2003 à 17:17:17  profilanswer
 

A mon avis faut que tu intègres ta JTextArea dans un JScrollPane. Mais si j'étais toi, je coderais en SWT plutôt qu'en Swing :o


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
n°513566
EpoK
Let's burn
Posté le 12-09-2003 à 17:22:32  profilanswer
 

Taiche a écrit :

A mon avis faut que tu intègres ta JTextArea dans un JScrollPane. Mais si j'étais toi, je coderais en SWT plutôt qu'en Swing :o


 
skoi ?

n°513569
benou
Posté le 12-09-2003 à 17:29:13  profilanswer
 


le let motive de taiche [:spamafote]


---------------
ma vie, mon oeuvre - HomePlayer
n°513570
Taiche
(╯°□°)╯︵ ┻━┻
Posté le 12-09-2003 à 17:29:49  profilanswer
 


Une autre API graphique développée par les gens de chez Eclipse. Tes objets graphiques sont ceux de l'OS sur lequel tourne ton appli donc perfos++ et look and feel propre à l'OS (par exemple, sur un WinXP skinné, ton appli récupèrera le skin). Inconvénient : pour le runtime, y a un .jar de 1 Mo à se trimballer (swt.jar) et une librairie de 200 Ko. De plus, comme le soulignera certainement souk, ça bugge sous MacOS :o
Mate le lien que j'ai filé dans le post d'avant, ça te donnera une idée.


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
n°513571
Taiche
(╯°□°)╯︵ ┻━┻
Posté le 12-09-2003 à 17:30:03  profilanswer
 

benou a écrit :


le let motive de taiche [:spamafote]


leitmotiv [:aloy]


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
n°513572
EpoK
Let's burn
Posté le 12-09-2003 à 17:31:45  profilanswer
 

hum ok  :jap:  
 
en attendant faut que je comprenne comment marche le JScrollPane paske là j'ai un truc tout gris  [:proy]
 
 
edit : c'est bon j'ai enlenver les moufles  [:volta]


Message édité par EpoK le 12-09-2003 à 17:34:29
n°513575
Taiche
(╯°□°)╯︵ ┻━┻
Posté le 12-09-2003 à 17:33:55  profilanswer
 

Ba un JScrollPane c'est un conteneur d'objets, donc forcément, tu vas pas voir grand-chose [:ddr555]
Tu inclus ton JScrollPane dans ta JFrame (ou l'objet qui contenait ta JTextArea avant) puis ensuite tu inclus ta JTextArea dans ton JScrollPane. Et roule Raoul.


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
n°513577
EpoK
Let's burn
Posté le 12-09-2003 à 17:35:28  profilanswer
 

Taiche a écrit :

Ba un JScrollPane c'est un conteneur d'objets, donc forcément, tu vas pas voir grand-chose [:ddr555]
Tu inclus ton JScrollPane dans ta JFrame (ou l'objet qui contenait ta JTextArea avant) puis ensuite tu inclus ta JTextArea dans ton JScrollPane. Et roule Raoul.


 
vivi c'est bon, en fait je fesai un .add de mon jta au lieu de le mettre ds les constructeur  :whistle:

n°513580
EpoK
Let's burn
Posté le 12-09-2003 à 17:36:44  profilanswer
 

par contre je sais plus comment donner une taille fixe a ma JFrame de départ, et mon JTextArea  [:meganne]

mood
Publicité
Posté le 12-09-2003 à 17:36:44  profilanswer
 

n°513582
Taiche
(╯°□°)╯︵ ┻━┻
Posté le 12-09-2003 à 17:39:00  profilanswer
 

EpoK a écrit :

par contre je sais plus comment donner une taille fixe a ma JFrame de départ, et mon JTextArea  [:meganne]  


Ba t'as un setSize() dans les objets de type Component... [:spamafote]
Après si ça marche pas, ba dis-toi que ça fonctionne très bien avec SWT :o (et hop, encore une couche [:ddr555])


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
n°513584
EpoK
Let's burn
Posté le 12-09-2003 à 17:41:34  profilanswer
 

Taiche a écrit :


Ba t'as un setSize() dans les objets de type Component... [:spamafote]
Après si ça marche pas, ba dis-toi que ça fonctionne très bien avec SWT :o (et hop, encore une couche [:ddr555])


 
ben en fait j'ai beau spécifier une taille, il m'agrandit au max mon jta, c'est super laid :/

n°513585
Taiche
(╯°□°)╯︵ ┻━┻
Posté le 12-09-2003 à 17:42:51  profilanswer
 

EpoK a écrit :


ben en fait j'ai beau spécifier une taille, il m'agrandit au max mon jta, c'est super laid :/


Ah ui alors après faut p'têt jouer avec des contraintes sur le Layout et tout... beurk.
Bon courage, en tout cas [:joce]


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
n°513589
EpoK
Let's burn
Posté le 12-09-2003 à 17:48:28  profilanswer
 

Taiche a écrit :


Ah ui alors après faut p'têt jouer avec des contraintes sur le Layout et tout... beurk.
Bon courage, en tout cas [:joce]


 
t1 c'est un truc pour les cours, j'ai pas voulu le faire en vb pour faire ma leech :/
 
aller on se motive, on fera la présentation sous unix  [:volta]


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  Java

  Avoir une barre de scroll dans un JTextArea :/

 

Sujets relatifs
logo dans la barre d'adressepb progress barre win32application!
Barre de défilement[ Flash]Auto scroll horizontal
Barre de défilement directement en bas?[JS] enlever barre d'adresses sans window.open
[Swing / JTextArea] Aligner une scrollbar sur le bas d'un JTextArea[JS]Barre d'adresse
[VBA]Ajout de bouton dans la barre d'outils[VC++] barre de progression et bouton annuler
Plus de sujets relatifs à : Avoir une barre de scroll dans un JTextArea :/


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR