Search:

Type: Posts; User: Vesper

Search: Search took 0.31 seconds.

  1. Replies
    15
    Views
    2,966

    Re: Java sliding block puzzle issues

    Problem fixed, everything you linked me was completely opposite of the fix that was found.
  2. Replies
    15
    Views
    2,966

    Re: Java sliding block puzzle issues

    That still tells me nothing, it's trying to find getWidth and getHeight which are part of the Java library, this is what im finding confusing. It's not finding something that i've already imported...
  3. Replies
    15
    Views
    2,966

    Re: Java sliding block puzzle issues

    But how do I declare it? and where would I declare it, everything i've tried doesn't seem to work.
  4. Replies
    15
    Views
    2,966

    Re: Java sliding block puzzle issues

    SlidingBlockModel(int nc, int nr, String image_filename )
    {
    numCols = nc;
    numRows = nr;

    int w = getWidth();
    int h = getHeight();

    original_image = null;
  5. Replies
    15
    Views
    2,966

    Re: Java sliding block puzzle issues

    C:\Users\Vesper\Desktop\Practical Programming - CI2250\Workshop 5\Task 2\SlidingBlockModel.java:32: cannot find symbol
    symbol : method getWidth()
    location: class SlidingBlockModel
    int w =...
  6. Replies
    15
    Views
    2,966

    Re: Java sliding block puzzle issues

    import java.awt.image.*;
    import javax.imageio.*;
    import java.io.File;


    class SlidingBlockModel
    {
    BufferedImage original_image; // the image to be cut up into blocks
    int numCols; // number...
  7. Replies
    15
    Views
    2,966

    Re: Java sliding block puzzle issues

    I declared them before using :


    int w = getWidth();
    int h = getHeight();

    I put this in the class, in the constructor, everywhere but it gave me the same error saying that it couldn't find...
  8. Replies
    15
    Views
    2,966

    Java sliding block puzzle issues

    I'm working on this task for my university, and I've come up to an impass.

    Im trying to display in a system.out.println method to display the width and height of an image.

    So far i've gotten it...
Results 1 to 8 of 8