show is deprecated, and doesn't take an argument anyway, as a quick glance at the API documentation will tell you. hide was its equivalent, but you should use setVisible(false) as the poster says above.
ok.. I have used the setVisible(false) method to hide the frame1 of my first java source file. Now how can i activate and display the frame of second java source file. (i have named the frame as frame2)
I cannot use it as
The name frame2 is unrecognized by the intellisense of Eclipse IDE.. How can i activate and load the frame of second java file?
You need to create an instance of the frame in your second file. i.e. if your other class is called MyFrame, and extends JFrame, you will need something like Try a book like Head First Java to get you going.