Escolar Documentos
Profissional Documentos
Cultura Documentos
Spring 2015
Instructor: Dr. Pedro Rivera
TAs: Pardeep Kumar, Orlando Nieves
Lab 1
Introduction to Programming, Eclipse IDE
Java and work environment.
Department
of
Electrical and Computer Engineering
University of Puerto Rico at Mayagez
is automatically created
in that class.
- Add the following line
import javax.swing.JFrame;
to the beginning of the file that contains your FrameViewer Class.
- Insert the following lines
JFrame frame = new JFrame();
frame.setSize(300, 400);
frame.setTitle("My First Java Frame");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
To run your program from terminal, go to your terminal and access your project
folder once again using cd test or if you are already in the same directory just
follow next step.
Now, write java YourClassFileName. This should have your server start
listening.
Show your work to the lab instructor (20 Points).
Evaluating Lab 1
Write Your Section# here: ..