Search:

Type: Posts; User: Talksin

Search: Search took 0.09 seconds.

  1. Replies
    5
    Views
    2,221

    Re: IllegalArgumentException error..

    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) >...
  2. Replies
    5
    Views
    2,221

    Re: IllegalArgumentException error..

    Just curious, why does my previous reply require a moderator to accept ?

    Did I do anything wrong ?
  3. Replies
    5
    Views
    2,221

    Re: IllegalArgumentException error..

    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...
  4. Replies
    5
    Views
    2,221

    IllegalArgumentException error..

    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...
Results 1 to 4 of 4