Search:

Type: Posts; User: cjburkey01

Page 1 of 3 1 2 3

Search: Search took 0.06 seconds.

  1. Replies
    0
    Views
    158

    Array of Images to file

    How would one go about converting an array of buffered images to an image file like 'mov' or 'avi'? I've looked it up, and everyone says use an external library like xuggler or something like that,...
  2. Replies
    7
    Views
    325

    Re: SwingWorker nullPointerException

    Ahh, ok I fixed it, I had called the doInBackground inside the constructor, I removed that and it worked fine :)
  3. Replies
    7
    Views
    325

    Re: SwingWorker nullPointerException

    Ah, should I check for a null value before I call it? I'll try that, yup returns null. But why?
  4. Replies
    7
    Views
    325

    Re: SwingWorker nullPointerException

    Well, on line 20, I'm canceling a swing worker, which is running at the time, I don't understand why it would return a null pointer
  5. Replies
    7
    Views
    325

    SwingWorker nullPointerException

    Why do I get this error:


    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at com.cjburkey.help.download.Util.closeWindow(Util.java:120)
    at...
  6. Replies
    21
    Views
    378

    Re: Repaint Won't Call paintComponent

    Ah, I'll try that
    EDIT:
    When I do that, I only get the print from repaint, it never calls the paintComponent.
  7. Replies
    21
    Views
    378

    Re: Repaint Won't Call paintComponent

    When I print the values I get the buffered images, which are different everytime:


    BufferedImage@67a7422e: type = 13 IndexColorModel: #pixelBits = 8 numComponents = 4 color space =...
  8. Replies
    21
    Views
    378

    Re: Repaint Won't Call paintComponent

    I am updating


    pickedCard = yourCard.getImage();
    computCard = compCard.getImage();

    every time you click in an area, and I know the click works because I set it up to print a message when you...
  9. Replies
    21
    Views
    378

    Re: Repaint Won't Call paintComponent

    Card yourCard = new Card();
    Card compCard = new Card();



    pickedCard = yourCard.getImage();
    computCard = compCard.getImage();
  10. Replies
    21
    Views
    378

    Re: Repaint Won't Call paintComponent

    The image doesn't update when it's changed, and repaint won't update it. And I don't know how I would update it.
  11. Replies
    21
    Views
    378

    Re: Repaint Won't Call paintComponent

    I change the image from null to yourCard.getImage(); Which is a class I created, it is called Card. It set the image to:
    ImageIO.read(new File("img/Cards/" + getType() + "/" + getType() + "-" +...
  12. Replies
    21
    Views
    378

    Re: Repaint Won't Call paintComponent

    I am changing what the image location is, and I want the screen to update, because right now, I change the image location, and it just doesn't update.
  13. Replies
    21
    Views
    378

    Re: Repaint Won't Call paintComponent

    What should I do?
  14. Replies
    21
    Views
    378

    Re: Repaint Won't Call paintComponent

    So, how would I go about calling the paintComponent?
  15. Replies
    21
    Views
    378

    Repaint Won't Call paintComponent

    So I have this code:


    package com.cjburkey.games.war.g;

    import java.awt.Color;
    import java.awt.Graphics;
    import java.awt.Point;
    import java.awt.Rectangle;
    import...
  16. Replies
    9
    Views
    234

    Re: Getting Progress of Reading Disk

    I copied the the method that goes through the files, but that's about all I copied.
    I also read the listFiles thing, and it says nothing about a null pointer, so where is the null pointer coming...
  17. Replies
    9
    Views
    234

    Re: Getting Progress of Reading Disk

    I'll do it again, I erased the code because I did it like an hour before I posted this. One sec

    OK, here is the error:


    Exception in thread "main" java.lang.NullPointerException
    at...
  18. Replies
    9
    Views
    234

    Re: Getting Progress of Reading Disk

    I tried that, but it returned a null pointer
  19. Replies
    9
    Views
    234

    Getting Progress of Reading Disk

    So I have this method:


    public static void listFiles(String path) {

    File[] list = null;

    File root = new File( path );
    list = root.listFiles();
  20. Replies
    11
    Views
    505

    Re: Copying file INTO a jar File

    Ah, it means update(More info from running the help command than a website) and then I found this:
    Updating a JAR File (The Java„ Tutorials > Deployment > Packaging Programs in JAR Files)

    EDIT:...
  21. Replies
    11
    Views
    505

    Re: Copying file INTO a jar File

    Thanks
  22. Replies
    11
    Views
    505

    Re: Copying file INTO a jar File

    Where is this? I spent about 15 minutes searching for it, and the only thing that was relatively what I want is this:
    Extracting the Contents of a JAR File (The Java™ Tutorials > Deployment >...
  23. Replies
    11
    Views
    505

    Re: Copying file INTO a jar File

    Well, I Don't know what exactly -u means, is it a command line argument? Or is it a java argument? I don't understand how you use it
  24. Replies
    11
    Views
    505

    Re: Copying file INTO a jar File

    How would I use -u? I mean from within the program itself, using the Runtime Execution?
  25. Replies
    11
    Views
    505

    Copying file INTO a jar File

    Is there a way I can package a file INTO a jar file from a directory, not the other way around?
Results 1 to 25 of 73
Page 1 of 3 1 2 3