Find Jobs
Hire Freelancers

Java swing for jlist element with jtextfields.

€20 EUR

Terminado
Publicado hace más de 7 años

€20 EUR

Pagado a la entrega
Details I have a JScrollPane. Inside it I have a JList. Each element of JList is a JPanel. Inside JPanel I have JLabel and JTextField. The problem is JTextField is not editable. I want to be able focus and write text in this jtextfields. Sample of code: // ------------------- package testapp; import java.awt.*; import javax.swing.*; public class NewJFrame extends [login to view URL] { public NewJFrame() { DefaultListModel<JPanel> _listModel = new DefaultListModel<>(); JList<JPanel> _listbox = new JList<>(_listModel); [login to view URL](new MessageRenderer()); JScrollPane _historyScrollPane = new JScrollPane(_listbox); JPanel p = new JPanel(); [login to view URL](new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); JTextField userField = new JTextField(); [login to view URL]([login to view URL]); [login to view URL](true); [login to view URL](true); [login to view URL](true); [login to view URL] = new [login to view URL](2,0,2,5); // (top, left, bottom, right) [login to view URL] = [login to view URL]; [login to view URL] = 1; [login to view URL] = 1; [login to view URL] = 0; [login to view URL] = 1; [login to view URL] = [login to view URL]; [login to view URL](userField, c); [login to view URL](p); [login to view URL] layout = new [login to view URL](getContentPane()); getContentPane().setLayout(layout); [login to view URL]( [login to view URL]([login to view URL]) .addGroup([login to view URL], [login to view URL]() .addComponent(_historyScrollPane, 261, 261, 261)) ); [login to view URL]( [login to view URL]([login to view URL]) .addGroup([login to view URL]() .addComponent(_historyScrollPane, 238, 238, 238)) ); pack(); } public static void main(String args[]) { [login to view URL](new Runnable() { public void run() { new NewJFrame().setVisible(true); } }); } } // ----------------------- package testapp; import [login to view URL]; import [login to view URL]; import [login to view URL]; public class MessageRenderer implements ListCellRenderer<Object>{ public Component getListCellRendererComponent(JList<?> list, Object value,int index, boolean isSelected, boolean cellHasFocus) { return (Component)value; } }
ID del proyecto: 11544403

Información sobre el proyecto

2 propuestas
Proyecto remoto
Activo hace 8 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
Hi there, I am java developer. I have read the details, its an easy job for me. Message me, we can discuss over chat.
€20 EUR en 0 día
4,7 (48 comentarios)
5,3
5,3
2 freelancers están ofertando un promedio de €20 EUR por este trabajo
Avatar del usuario
Hello My name is Ahmed, i'm a top rated freelancer. i worked over 250 projects and over 1000 hours doing java projects. plus i passed freelancer java exam with top 15% plus i got 2 java certificate 1Z0-803 and 1Z0-804 with 3+ years experience. small overview of feedback on my profile "you want to get your projects completed with quality? Hire Ahmed. Highly recommended." "Thoroughly satisfied with Ahmed, and would recommend him to anyone looking for an excellent java developer!" "Highly recommended. Very smart and well experience" looking forward to work with you Regards
€20 EUR en 1 día
4,9 (221 comentarios)
5,9
5,9
Avatar del usuario
hi,lets discuss about your project
€20 EUR en 1 día
5,0 (4 comentarios)
3,0
3,0

Sobre este cliente

Bandera de ROMANIA
Bucharest, Romania
5,0
3
Forma de pago verificada
Miembro desde sept 3, 2013

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.