The JES Interface
Click on the image below to learn about the different areas of the JES interface. |
|
Command Area Use the command area to type commands that you'd like JES to carry out right away. You'll notice that there are three "greater than" symbols in the command area. This is called the primary prompt. It simply means that JES is ready for a new command. An example of a command: >>> print 5+7 You will also use the command area to call the programs that you write in JES. For example, if you have written a program called MyProgram() and loaded it, you might call it using the command line like this: >>> MyProgram() |
|
jump
to top
|
|
Edit Menu The Options menu item opens a dialog box in which you can set the font size and the mode in which you would like to work. Changing modes simply changes the kind of error messages that JES displays when it finds a programming problem. The "normal" mode is the default mode. In this mode, error messages are very simple. In "advanced" mode, error messages are more detailed. Until you feel that you are ready to interpret detailed error messages, you should not change the mode. You also have the options to turn on/off the line numbers and block boxes. The Editor and Command menu items allow you to move between the Program Area and Command Area. The keyboard shortcuts are very useful. |
|
jump
to top
|
|
File Menu Use the file menu to create New files, Open existing files, Print or Save the file on which you are currently working, or Save As to specify a file name for your current file. For more about the Load option, see the section on Load Button. You can also exit JES from this menu. |
|
jump
to top
|
|
Help Menu Look here for information about carrying out basic tasks in JES and creating media computation programs in Jython. |
|
Load Button Hint: Before you can load a program, you must save it! |
|
jump
to top
|
|
Program Area As you probably know already, JES is used to write programs in the Jython programming language. For more information about writing programs, see Programming in Jython. |
|
jump
to top
|
|
Status Bar You should also include line number/position information if you are sending a question about your code to TAs or classmates so they can quickly identify the segment to which you are referring. |
|
jump
to top
|
|
Explain Button |
|
jump
to top
|
|
Stop Button You can also use the Stop button to stop a program that has been called from the command area. This may be useful if the program you have opened, loaded, and called from the command window is taking a long time. You should try to keep media file sizes to a reasonable size, but sometimes it will take several minutes to run a program that you have written so the Stop button can be useful if you decide you'd rather run a long program at a later time. |
|
jump
to top
|
|
Debugger One of the hardest things to do when you're programming is debugging. To make this easier, JES includes a debugger for you to use. To turn it on, simply press the Watcher button, or choose Program Area + Interactions Area + Watcher from the Window Layout Menu. See the help section on The Debugger for more information. |
|
jump
to top
|
|
MediaTools Menu This menu allows you to access the Sound Tool, Picture Tool, and Movie Tool. To open them, simply click the appropriate menu item, and JES will prompt you to select a sound, picture, or movie to open in the tools. See the help section on MediaTools for more information. |
|
jump
to top
|
|
JES Functions Menu This menu provides a list of methods available in JES. To make them easier to find (and to keep the list from getting to big), the list has been divided into Colors, Files, Input/Output, Turtles, Movies, Pixels, Pictures, and Sound. Selecting a function from this list will immediately drop it in the Program Area wherever your cursor is. Also, the information for this function will appear in the Help area. |
|
jump
to top
|
|
Window Layout Menu JES has two windows which you can choose to open on the side of the Program Area: the Watcher and the Help Area. This menu lets you choose between having one of those open and having neither open. |
|
jump
to top
|
|
Running Indicator The running indicator is a bar that moves back and forth when JES is working on something. It will show when you are running a program, picking a file, or giving commands in the Command Area. |
|
jump
to top
|