Vitor,
no livro "Java use a cabeça" tem um exemplo que mostra exatamente isto.
Página 290, ele usa o código para barra de rolagem vertical. É só modificar
para que apareça a barra de rolagem horizontal.

Abraços,

Em 18 de novembro de 2011 22:04, vitor marques de miranda <
[email protected]> escreveu:

> Sim. É, ele mostra "..." ao invés de gerar o scroll.
> Eu vi os tutoriais.
> Sim, lembrei disso.
>
> As fotos que eu havia anexado mostram o que havia acontecido.
>
>   ------------------------------
> *De:* Peter P. Lupo <[email protected]>
> *Para:* [email protected]
> *Enviadas:* Sexta-feira, 18 de Novembro de 2011 21:56
>
> *Assunto:* Re: [comp2-geral] Como pôr ScrollBar em JList?
>
> o componente é maior do que a área disponível para vê-lo? O conteúdo
> ultrapassa o tamanho?
>
> Tem como colocar para aparecer sempre, mesmo que não tenha razão pra usar
> mas eu não lembro exatamente do código.
>
> Vc viu os tutoriais?
>
> E vc lembrou que é o scrollpane que vc tem que adicionar na janela e não o
> jlist?
>
>
> Peter P. Lupo
> http://craftnicely.blogspot.com - http://sites.google.com/site/pplupo
>  <http://sites.google.com/site/pplupo>MPS.BR Authorized Implementation
> Practitioner<http://www.softex.br/mpsbr/_profissionais/MPS.BR_certificados_de_arovacao_prova_P2-MPS.BR.pdf>-
>  Certified
> ScrumMaster <http://www.scrumalliance.org/pages/certified_scrummaster>
>  <http://www.scrumalliance.org/pages/certified_scrummaster>Oracle
> Certified Associate, Java SE 5/SE 
> 6<http://in.sun.com/training/certification/java/scja.xml> -
> Java Black Belt <http://www.blackbeltfactory.com/ui#!User/pplupo>
>  <http://www.blackbeltfactory.com/ui#!User/pplupo>+55 (021) 81742487
>
>
>
> 2011/11/18 vitor marques de miranda <[email protected]>
>
> Não funcionou, e o nome acho que é setHorizontalScrollPolicy, ou algo
> assim.
>
>   ------------------------------
> *De:* Peter P. Lupo <[email protected]>
> *Para:* [email protected]
> *Enviadas:* Sexta-feira, 18 de Novembro de 2011 21:23
>
> *Assunto:* Re: [comp2-geral] Como pôr ScrollBar em JList?
>
> no jscrollpane... ;-)
>
> Peter P. Lupo
> http://craftnicely.blogspot.com - http://sites.google.com/site/pplupo
>  <http://sites.google.com/site/pplupo>MPS.BR Authorized Implementation
> Practitioner<http://www.softex.br/mpsbr/_profissionais/MPS.BR_certificados_de_arovacao_prova_P2-MPS.BR.pdf>-
>  Certified
> ScrumMaster <http://www.scrumalliance.org/pages/certified_scrummaster>
>  <http://www.scrumalliance.org/pages/certified_scrummaster>Oracle
> Certified Associate, Java SE 5/SE 
> 6<http://in.sun.com/training/certification/java/scja.xml> -
> Java Black Belt <http://www.blackbeltfactory.com/ui#!User/pplupo>
>  <http://www.blackbeltfactory.com/ui#!User/pplupo>+55 (021) 81742487
>
>
>
> 2011/11/18 vitor marques de miranda <[email protected]>
>
> Bom, no JList não tem nenhum método setPolicy.
>
>   ------------------------------
> *De:* Peter P. Lupo <[email protected]>
> *Para:* [email protected]
> *Enviadas:* Sexta-feira, 18 de Novembro de 2011 21:16
>
> *Assunto:* Re: [comp2-geral] Como pôr ScrollBar em JList?
>
> tem um set policy lá que vc pode colocar como always visible ou algo do
> gênero...
>
>
> Peter P. Lupo
> http://craftnicely.blogspot.com - http://sites.google.com/site/pplupo
>  <http://sites.google.com/site/pplupo>MPS.BR Authorized Implementation
> Practitioner<http://www.softex.br/mpsbr/_profissionais/MPS.BR_certificados_de_arovacao_prova_P2-MPS.BR.pdf>-
>  Certified
> ScrumMaster <http://www.scrumalliance.org/pages/certified_scrummaster>
>  <http://www.scrumalliance.org/pages/certified_scrummaster>Oracle
> Certified Associate, Java SE 5/SE 
> 6<http://in.sun.com/training/certification/java/scja.xml> -
> Java Black Belt <http://www.blackbeltfactory.com/ui#!User/pplupo>
>  <http://www.blackbeltfactory.com/ui#!User/pplupo>+55 (021) 81742487
>
>
>
> 2011/11/18 vitor marques de miranda <[email protected]>
>
> Que tenha uma scrollbar deitada, como eu disse antes:
> Como posso colocar um ScrollBar que funcione lateralmente nessa JList? (a
> maioria dos códigos só se aplica a scrollbars que sobem e descem)
>
>   ------------------------------
> *De:* Peter P. Lupo <[email protected]>
> *Para:* [email protected]
> *Enviadas:* Sexta-feira, 18 de Novembro de 2011 21:08
>
> *Assunto:* Re: [comp2-geral] Como pôr ScrollBar em JList?
>
> Como vc quer?
>
> Peter P. Lupo
> http://craftnicely.blogspot.com - http://sites.google.com/site/pplupo
>  <http://sites.google.com/site/pplupo>MPS.BR Authorized Implementation
> Practitioner<http://www.softex.br/mpsbr/_profissionais/MPS.BR_certificados_de_arovacao_prova_P2-MPS.BR.pdf>-
>  Certified
> ScrumMaster <http://www.scrumalliance.org/pages/certified_scrummaster>
>  <http://www.scrumalliance.org/pages/certified_scrummaster>Oracle
> Certified Associate, Java SE 5/SE 
> 6<http://in.sun.com/training/certification/java/scja.xml> -
> Java Black Belt <http://www.blackbeltfactory.com/ui#!User/pplupo>
>  <http://www.blackbeltfactory.com/ui#!User/pplupo>+55 (021) 81742487
>
>
>
> 2011/11/18 vitor marques de miranda <[email protected]>
>
> Ficou assim. Conhece outra forma?
>
>   ------------------------------
> *De:* Peter P. Lupo <[email protected]>
> *Para:* [email protected]
> *Enviadas:* Sexta-feira, 18 de Novembro de 2011 19:46
> *Assunto:* Re: [comp2-geral] Como pôr ScrollBar em JList?
>
> coloca o jlist em um jscrollpane.
>
> Abraço
>
> Peter P. Lupo
> http://craftnicely.blogspot.com - http://sites.google.com/site/pplupo
>  <http://sites.google.com/site/pplupo>MPS.BR Authorized Implementation
> Practitioner<http://www.softex.br/mpsbr/_profissionais/MPS.BR_certificados_de_arovacao_prova_P2-MPS.BR.pdf>-
>  Certified
> ScrumMaster <http://www.scrumalliance.org/pages/certified_scrummaster>
>  <http://www.scrumalliance.org/pages/certified_scrummaster>Oracle
> Certified Associate, Java SE 5/SE 
> 6<http://in.sun.com/training/certification/java/scja.xml> -
> Java Black Belt <http://www.blackbeltfactory.com/ui#!User/pplupo>
>  <http://www.blackbeltfactory.com/ui#!User/pplupo>+55 (021) 81742487
>
>
>
> 2011/11/18 vitor marques de miranda <[email protected]>
>
> Quando eu ponho um item muito grande em um JList, ocorre o que está na
> imagem.
> Como posso colocar um ScrollBar que funcione lateralmente nessa JList? (a
> maioria dos códigos só se aplica a scrollbars que sobem e descem)
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Comp 2 - Geral" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/comp2-geral?hl=en.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Comp 2 - Geral" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/comp2-geral?hl=en.
>
>
>   --
> You received this message because you are subscribed to the Google Groups
> "Comp 2 - Geral" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/comp2-geral?hl=en.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Comp 2 - Geral" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/comp2-geral?hl=en.
>
>
>   --
> You received this message because you are subscribed to the Google Groups
> "Comp 2 - Geral" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/comp2-geral?hl=en.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Comp 2 - Geral" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/comp2-geral?hl=en.
>
>
>   --
> You received this message because you are subscribed to the Google Groups
> "Comp 2 - Geral" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/comp2-geral?hl=en.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Comp 2 - Geral" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/comp2-geral?hl=en.
>
>
>   --
> You received this message because you are subscribed to the Google Groups
> "Comp 2 - Geral" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/comp2-geral?hl=en.
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Comp 2 - Geral" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/comp2-geral?hl=en.
>
>
>   --
> You received this message because you are subscribed to the Google Groups
> "Comp 2 - Geral" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/comp2-geral?hl=en.
>



-- 
Augusto Vanderley

-- 
You received this message because you are subscribed to the Google Groups "Comp 
2 - Geral" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/comp2-geral?hl=en.

Responder a