si ok in realtà avevo già spulciato un po le api ma il compilatore mi da un errore, il pezzo di programma è questo:
codice:
try
{
ImageIcon imageUrl = new ImageIcon ("dkdkdk.jpeg");
final Image img = ImageIcon.read (imageUrl);
SwingUtilities.invokeLater (new Runnable ()
{
public void run ()
{
TestFrame f = new TestFrame (img);
f.setVisible (true);
}
});
}
ma mi da errore sul .read posto anche l'errore:
codice:
E:\Programmazione\LAVORI_JCREATOR\TestFrame.java:26: cannot find symbol
symbol : method read(javax.swing.ImageIcon)
location: class javax.swing.ImageIcon
final Image img = ImageIcon.read (imageUrl);
^
1 error
Process completed.
per leggere un imageicon non devo fare .read("....") ?????
grazie per l'attenzione