I\'m trying to declare a java.awt.FileDialog in my code:
FileDialog save = new FileDialog(null, \"Save file\", FileDialog.SAVE);
But I get the
There are 2 constructors for FileDialog with 3 arguments. Because you passed null as the first argument, the compiler cannot distinguish which constructor you want.
FileDialog(Dialog parent, String title, int mode)
and
FileDialog(Frame parent, String title, int mode)
You could use:
Frame frame = null;
FileDialog save = new FileDialog(frame, "Save file", FileDialog.SAVE);
to fix.