This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 108197 [details] Source code I can't figure out why the ReadTextFile class is being marked as an error, since it is part of the package: public class DesktopApplication1 extends SingleFrameApplication { ... private void jMenuItem1StateChanged(javax.swing.event.ChangeEvent evt) { FileChooser fc = new FileChooser(); ReadTextFile = new ReadTextFile(fc.getSelectedFileName()); } ... }
Missing 'ReadTextFile' variable declaration is marked as an error !!!
(In reply to comment #1) > Missing 'ReadTextFile' variable declaration is marked as an error !!! What variable? What do you mean? In my case ReadTextFile.java is a class contained within the project?
ReadTextFile = new ReadTextFile(fc.getSelectedFileName()); is parsed as an assignment to the variable named 'ReadTextFile'.