Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > fr.comp.lang.java > #1636
| Path | csiph.com!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!news.trigofacile.com!.POSTED.reverse-90.fdn.fr!not-for-mail |
|---|---|
| From | Yliur <yliur@free.fr> |
| Newsgroups | fr.comp.lang.java |
| Subject | Re: JPanel scrollable ou pas? |
| Date | Mon, 8 Jan 2018 00:26:50 +0100 |
| Organization | Groupes francophones par TrigoFACILE |
| Message-ID | <20180108002650.5669f587@free.fr> (permalink) |
| References | <5a4653ed$0$31622$426a74cc@news.free.fr> <nnd$12a75e81$6e30983e@e499cf161367f830> <5a47d1b1$0$3692$426a74cc@news.free.fr> <20171230203159.03c32a8e@free.fr> <5a4921e7$0$3302$426a74cc@news.free.fr> <20180101204600.302d0e07@free.fr> <5a4d8477$0$10176$426a74cc@news.free.fr> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| Injection-Info | news.trigofacile.com; posting-account="yliur@free.fr"; posting-host="reverse-90.fdn.fr:80.67.176.90"; logging-data="23375"; mail-complaints-to="abuse@trigofacile.com" |
| X-Newsreader | Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) |
| Xref | csiph.com fr.comp.lang.java:1636 |
Show key headers only | View raw
Le 04 Jan 2018 01:33:44 GMT bloiiing <bloiiing.invalid@yahoo.com> a écrit : > Yliur wrote: > > > J'ai un exemple chez moi qui marche, et je confirme que ça > > fonctionne comme ça (pas d'interface à implémenter) : > > > > panneauDefilant = new JScrollPane (listeAAfficher) ; > > > > Ok. Mais moi je fais: JScrollPane jsp = new JScrollPane (JPanel). Et > là ça ne marche plus car apparemment le JPanel n'est pas scrollable. > Ou alors, il s'agit peut-être d'un problème de Layout. J'ai mis un > FlowLayout dans le JPanel que je veux rendre scrollable et je rajoute > des petits JPanel dedans. Cette solution fonctionne ? C'est le problème auquel je faisais référence : je pense que le panneau qui se trouve directement dans le JScrollPane prend comme taille juste ce qui apparaît à l'écran, donc "pas besoin" de le faire défiler. Est-ce que ça marche avec la JList dans le JScrollPane ? Sinon essaie de fixer la taille du JPanel avec setPreferredSize/setMinimumSize. Ou de placer des composants dans le panneau avec BorderLayout ou BoxLayout.
Back to fr.comp.lang.java | Previous | Next — Previous in thread | Find similar
JPanel scrollable ou pas? bloiiing <bloiiing.invalid@yahoo.com> - 2017-12-29 14:40 +0000
Re: JPanel scrollable ou pas? Yvon Nedonchelle <nedonchelle.yvon@orange.fr> - 2017-12-30 18:29 +0100
Re: JPanel scrollable ou pas? bloiiing <bloiiing.invalid@yahoo.com> - 2017-12-30 17:49 +0000
Re: JPanel scrollable ou pas? Yliur <yliur@free.fr> - 2017-12-30 20:31 +0100
Re: JPanel scrollable ou pas? bloiiing <bloiiing.invalid@yahoo.com> - 2017-12-31 17:44 +0000
Re: JPanel scrollable ou pas? Yliur <yliur@free.fr> - 2018-01-01 20:46 +0100
Re: JPanel scrollable ou pas? bloiiing <bloiiing.invalid@yahoo.com> - 2018-01-04 01:33 +0000
Re: JPanel scrollable ou pas? Yliur <yliur@free.fr> - 2018-01-08 00:26 +0100
csiph-web