Oh, it is actually for a puzzle game I am trying to code.. The game goes something like this.
An image divided up into pieces and randomized(haven't thought of how to randomize yet though) >...
Type: Posts; User: Talksin
Oh, it is actually for a puzzle game I am trying to code.. The game goes something like this.
An image divided up into pieces and randomized(haven't thought of how to randomize yet though) >...
Just curious, why does my previous reply require a moderator to accept ?
Did I do anything wrong ?
Did some research (link) and yup like what you said, it is because the JPanel isn't rendered yet.
I either have to do an override of via setPreferredsize() or paintComponent() to access the JPanel...
I believe the error is caused by
Image sc = wi.getScaledInstance(puzpiece.getWidth()/3,puzpiece.getHeight()/3, Image.SCALE_AREA_AVERAGING); after doing a debug in Netbeans.
The debug showed...