Search:

Type: Posts; User: godlynom

Search: Search took 0.10 seconds.

  1. Replies
    12
    Views
    1,499

    Re: setting image to panel

    so now that I am using the computer at home with eclipse, I see the error "Can't read input file" should i try making a folder for the image or something else, cuz just putting in the image did not...
  2. Replies
    12
    Views
    1,499

    Re: setting image to panel

    sorry was not near computer for while, and no it did not :/ still have the white frame screen
  3. Replies
    12
    Views
    1,499

    Re: setting image to panel

    image = ImageIO.read(new File("ges.jpg"));
    JLabel picLabel = new JLabel(new ImageIcon(image));
    this adds the image to the label, oh, should i do a
    add(picLabel); after that?
  4. Replies
    12
    Views
    1,499

    Re: setting image to panel

    ah okay, will do that, thanks for that tip, and i am adding the Label when in the Frame class I say
    BackgroundPanel panel = new BackgroundPanel();
    frame.add(panel);
    should I make a panel inside...
  5. Replies
    12
    Views
    1,499

    Re: setting image to panel

    no, just the program wanted a try and catch
  6. Replies
    12
    Views
    1,499

    setting image to panel

    Hello all, I am making a 2D Scroller game, and I know how to accomplish it, however, having trouble setting an image to the background, no amount of videos or tutorials is helping. The image does not...
Results 1 to 6 of 6