Continuous image loading/processing & display on button click (in Swing)
问题 I have trouble with continuous image loading&processing&display in Swing: Below there is simple case where clicking a button causes my program to grab frame from webcam and then display this picture in jlabel. It works as it should, but i have to consecutively click this "Start" button in order to get new image(frame) shown. private void StartActionPerformed(java.awt.event.ActionEvent evt) { displayed_img = this.getPIC_COLOR(player); img_field.setIcon(new ImageIcon(displayed_img)); } Im more