Foros del Web » Programación para mayores de 30 ;) » Java »

JScrollPane con JTextArea, ayuda por favor!!!

Estas en el tema de JScrollPane con JTextArea, ayuda por favor!!! en el foro de Java en Foros del Web. editor= new JTextArea(); editor.setBackground(Color.green); editor.setEditable(false); editor.setLineWrap(true); editor.setWrapStyleWord(true); barras = new JScrollPane(editor, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane. HORIZONTAL_SCROLLBAR_AS_NEEDED); barras.setViewportView(editor); getContentPane().add(editor,BorderLayout.CENTER); getContentPane().add(barras,BorderLayout.CENTER); Tengo sto puesto, pero sigue sin mostrarte las ...
  #1 (permalink)  
Antiguo 03/11/2003, 18:02
 
Fecha de Ingreso: septiembre-2003
Mensajes: 14
Antigüedad: 20 años, 7 meses
Puntos: 0
JScrollPane con JTextArea, ayuda por favor!!!

editor= new JTextArea();
editor.setBackground(Color.green);
editor.setEditable(false);
editor.setLineWrap(true);
editor.setWrapStyleWord(true);
barras = new JScrollPane(editor,
JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
JScrollPane. HORIZONTAL_SCROLLBAR_AS_NEEDED);
barras.setViewportView(editor);
getContentPane().add(editor,BorderLayout.CENTER);
getContentPane().add(barras,BorderLayout.CENTER);


Tengo sto puesto, pero sigue sin mostrarte las barras de desplazamiento, alguien me puede ayudar??

Muchas gracias!!
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 06:14.