Issue
This is one of things I have tried: In class 'EditScreenController.java':
Button placeholderEdit = new Button();
Image pencil = new Image(getClass().getResourceAsStream("pencil.png"));
placeholderEdit.setGraphic(new ImageView(pencil));
Result:
Input stream must not be null
I know it's something super simple, and yet I have already tried multiple things :( . Would highly appreciate a working answer.
Enjoy the rest of your day!
Solution
Image pencil = new Image(getClass().getResourceAsStream("/img/pencil.png"));
This solved my issue.
Answered By - dario bronders
Answer Checked By - Willingham (JavaFixing Volunteer)