I'm trying to display an image in an app using Swing Java. I get some frames from a video and display them as images.
private void updateView(){
Image tempCurrent = imageProcessor.toBufferedImage(currentImage);
currentImageView.setIcon(new ImageIcon(tempCurrent));
//JOptionPane.showMessageDialog(null, "um alo");
}
I'mnotaJavaprogrammer,butIneedtomaintainthiscode.Theprocedure"currentImageView.setIcon" should display an image in JPanel, but simply does nothing. The currentImaveView variable is the JLabel video. The funny part is that if I run the "JOptionPane", image ah appears.
Can anyone help me?