Thank you for your response, I tried this line already, but I got that error that I mentioned above:
Syntax error on token “;”, expected (In the end of the BufferedImage line)
I entered this in the root of the ProgramNodeView:
public JLabel imageLabel;
BufferedImage image = ImageIO.read(this.getClass().getResource(“image.png”));
imageLabel = new JLabel(new ImageIcon(imageLabel));
EDIT:
I put these lines inside a box construction method that I created, now the error I am getting is:
The constructor ImageIcon(JLabel) is undefined.
JLabel imageLabel;
BufferedImage image = ImageIO.read(getClass().getResource("/ur.png"));
imageLabel = new JLabel(new ImageIcon(imageLabel));