I cant get a JScrollPane to appear
Im not sure why but I cant seem to figure out why the JScrollPane when used, makes it and the JList invisible... I think it may be because I made a checkbox that, when checked, will make the Jlist invisible/visible.
heres the code that initializes the JList
and this is the event listener that sets the JList invisible or visible
qAWords = new JList(arrayWordList);
qAWords.setMinimumSize(new Dimension(185, 160));
qAWords.setBounds(600, 50, 185, 160);
and this is where i initialize the JScrollPanee
public void actionPerformed(ActionEvent e)
qaWordVisible = true;
qaWordVisible = false;
scrollPane = new JScrollPane(qAWords);
Re: I cant get a JScrollPane to appear
I'm not sure what problems you are having. I used the code that you provided and it seemed to work just as you described it should... What exactly is happening that you believe it's not appearing?