-4
我在Java Creator上寻求帮助,在程序中使用图像时遇到了一些麻烦。如何在Java Creator上插入图像
我尝试使用两种,URL模式和桌面之一。
This is how it looks on my program This is the code
//这里是我尝试做图像
if(menu==1)
{
final ImageIcon icon = new ImageIcon(new URL("http://prntscr.com/fq9ary"));
Circulo obj1 = new Circulo();
obj1.asignar1(radio);
input = JOptionPane.showInputDialog(null,"\t\t CIRCULO \nLa longitud del Circulo es: "+obj1.calcularLong()+"\n El area del Circulo es: "+obj1.calcularArea(), icon);
} } }
//
你的问题在这里添加您的代码。 – Azeem
我无法发送截图,因为我是一个新用户,而是stackoverflow让我把这些超链接放在我的帖子上,这个东西即时尝试做它的显示图像后做一些过程,例如在我的程序中,我必须在计算其面积和长度后显示一个圆的图像。 – Mizael
您可以在文本中编辑问题中的代码。代码的屏幕截图在任何方面都没有帮助。我们必须重现相同的问题以确定问题。 – Azeem