Is there anyway to change the icon picture (from the stupid coffee cup) that your JFrame has in its top left corner and icon picture that is down in the windows task bar to your own picture? I have looked everywhere but can't find the answer.
Also, I have another problem. I am creating JCheckBoxes from a list of questions the user has made up himself. The questions are stored in a vector as a String. I am created the JCheckBoxes like the following in a loop.
panel.add(new JCheckBox(String from Vector));
I have no problems so far. But how then do I add an item or action listener to the JCheckBox. I can find no way of accessing it. All I can do is access it as a component from the panel I added the checkbox to, but this does not let me access the checkbox features. Does anyone how I can get around this problem?