private JPanel crearPanelJugador(Tanque tanque) { JPanel p = new JPanel(); p.setLayout(null); p.setBorder(BorderFactory.createLineBorder(Color.gray)); p.setPreferredSize(new Dimension(140, 71)); JLabel lblImagenTanque = new JLabel(new ImageIcon(tanque.getMiniaturaTanque(50, 50))); lblImagenTanque.setBounds(0, 10, 50, 50); p.add(lblImagenTanque); cargarDatosTanque(p, tanque); return p; }