JComboBox nombresLista = new JComboBox(nombres);
nombresLista.setBounds(250, 110, 150, 30);
JComboBox nombresLista2 = new JComboBox(nombres);
nombresLista2.setBounds(700, 110, 150, 30);
JLabel lista = new JLabel();
lista.setText("Lista de nombres");
lista.setBounds(950, 70, 100,50);
nombresLista.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e)
{
}
});
I want to implement an image into my JFrame
that has a brief description of the person’s role and also shows an image of him/her. what can i do? Im really new into this, help.
Ive seen videos but cant really get an answer of my problem, i have no clue on how to display images with each selection of the JComboBox
, thank you for reading this in advance.
New contributor
Santiago Irigoyen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1