Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The following examples show you how to use the Code Editor to insert code into your Visual J# application. You can either create a new .jsl code file or open an existing one. For more information, see Visual J# Express Development Environment Features.
To start and create a new project
On the File menu, point to New, and then click New Project.
The New Project dialog box appears. This dialog box lists the different project types that the Visual J# Express Edition can create.
Select the Console Application template, change the name of your application to CreateCode, and click OK.
Visual J# Express Edition creates your project named after the project title, and opens the Code pane, where you enter and edit the J# source code that makes up your application. The project is stored in a temporary location until you actually save it.
The pre-generated code in your Program.jsl is color-coded. By default, the blue text contains application keywords, access modifiers, and method return types. For example, the phrase
public classdescribesProgramas class that anyone can use.Black bold text describes data types, methods or functions, and native data types. For example, Program happens to be the default class name for J# console applications. You can change the name to describe your application.
Green text indicates that the information contains helpful comments and javadoc documentation comments.
In the Program.jsl, click on the commented line directly below
// TODO: Add code to start application here, and press Enter.Click the blank line and begin entering your code.
To enter code in an existing J# file
In Solution Explorer, double-click on your .jsl file.
-or-
From the File menu, point to Open, and then click File. Click on the appropriate folder to find the file.
-or-
Press CTRL+O and double-click on the file that you want to open.
The file is displayed in the Code pane.
Click on a blank line and begin coding.
-or-
Click at the beginning of any line, and press Enter. Then move to the blank line that you just inserted and begin coding.
See Also
Tasks
How to: Create a Visual J# Console Application (Visual J# Express)
How to: Create a Visual J# Windows Application (Visual J# Express)
How to: Insert Code Snippets (Visual J# Express)