Não posso aplicar isso agora pois vou estudar para Mat. Comb., mas no caso, lá 
tem isso:

JScrollPane scroller = new JScrollPane(list);
scroller.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
scroller.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
panel.add(scroller);

Eu teria que usar isso:
JScrollPane scroller = new JScrollPane(list);
scroller.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER);
scroller.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
panel.add(scroller);

Certo?


________________________________
 De: Augusto Vanderley <[email protected]>
Para: [email protected] 
Enviadas: Sábado, 19 de Novembro de 2011 11:54
Assunto: Re: [comp2-geral] Como pôr ScrollBar em JList?
 

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
>MPS.BR Authorized Implementation Practitioner- Certified ScrumMaster
>Oracle Certified Associate, Java SE 5/SE 6 - Java Black Belt
>+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
>>MPS.BR Authorized Implementation Practitioner- Certified ScrumMaster
>>Oracle Certified Associate, Java SE 5/SE 6 - Java Black Belt
>>+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
>>>MPS.BR Authorized Implementation Practitioner- Certified ScrumMaster
>>>Oracle Certified Associate, Java SE 5/SE 6 - Java Black Belt
>>>+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
>>>>MPS.BR Authorized Implementation Practitioner- Certified ScrumMaster
>>>>Oracle Certified Associate, Java SE 5/SE 6 - Java Black Belt
>>>>+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
>>>>>MPS.BR Authorized Implementation Practitioner- Certified ScrumMaster
>>>>>Oracle Certified Associate, Java SE 5/SE 6 - Java Black Belt
>>>>>+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.

-- 
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