【问题标题】:Wont show or find image不显示或找不到图像
【发布时间】:2011-09-01 22:07:32
【问题描述】:

例子:

File imageCheck = new File("picture.gif");
    if(imageCheck.exists()) 
        System.out.println("Image file found!");
    else 
        System.out.println("Image file not found!");

图像在源目录中,它不会显示在按钮或标签上。我在 Eclipse 中工作。

【问题讨论】:

    标签: java eclipse image path


    【解决方案1】:

    它应该在项目目录中,而不是源目录中。

    【讨论】:

      猜你喜欢
      • 2013-02-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-09-15
      • 2018-03-17
      • 1970-01-01
      • 1970-01-01
      • 2021-09-23
      相关资源
      最近更新 更多