Some tips for Java beginners

Source: Internet
Author: User
Tags documentation

Learn Java time is not short, but there is no one of their original things, today to write the IDE development tools to use the skills as my original start it, I hope we can like this article, but also hope that the vast majority of beginners Java friends have a little help! In the use of jcretor process, I groped out a little bit of the use of skills, here for the vast number of beginners and I like reference!

Tip 1: Create an empty project for Java programming

It's best to build an empty project first when you're programming. Then in this empty project, edit your own Java program; in fact, this is a good habit, you can build your own package in this project, you edit the source program, according to the different functions of different packages; After you have studied Java for a long time, you have a bag of your own, which is very convenient for you to study or check the relevant code later.

The method of building an empty project, perhaps everyone knows, but here I still wordy:

In the order of the Jcretor menu, create the method as follows:

File?? >new?? >project?? >EmptyProject;

Ha, actually very simple! Wish you have your own class library as soon as possible!

Tip 2:jcretor provides good support for JDK help documentation

With Jcretor you can easily access the JDK Help document instantly! This feature enables Web pages to be displayed directly in the JCreator editing window without having to open any other browser for browsing. (JCreator This feature I like very much, as far as I know eclipse does not seem to provide this function) ha, said for so long I believe we will ask, you this function in the end how to use! Ok! don't worry, you'll be able to master this technique right away.

Do not know if you remember after we loaded JCreator, the first time you run JCreator, the system will require you to specify the installation path JDK; in fact, if you remember, after setting the JDK installation path, you will also be asked to provide a docs path. Ha, the enemy, want is this pull! Now let me show you how to set this path:

First, download the corresponding JDK documentation from the Sun company website;

Second, create a folder named Docs in the JDK installation directory (for example, my installation directory is d:j2sdk1.4.2_06), and then extract the downloaded JDK document into the folder that you just created, and after the decompression is complete, Then, when installing Jcretors, select the directory where the JDK is located in the appropriate place; (note: To ensure that Docs folders do not have Docs folder below) When you set up a good start jcreator, you will find your jcreator what has changed? ha , in fact some, do not believe you look at the JCreator menu bar help Drop-down menu, carefully see if there is something more? hehe ... Is there a "JDK Help Ctrl+f1" menu item! If there is, then congratulations, configuration successful pull! Below I will show you how to use this function;

Again, use Jcretor to play the role of the JDK Help document pull! That's exactly what I'm talking about, OK, let me tell you how to use this function in detail:

When you write a program in JCreator or look at someone else's original code, you will definitely encounter unfamiliar or unknown classes or methods, this time you use the mouse to select the name of the class or method you want to query, and then click on the Jcretor menu bar of the Help menu under the JDK Help, At this time you will find that the information you want to query immediately in the JCreator in the form of a Web page display! Oh...... is not found to be very simple, is not think it can be compared with the CHM format JDK documents! Ha, it's that simple!

Tip 3: This technique seems to be similar to tip 2, which is Bandi to implement a Web page file that is displayed directly in the JCreator editing window, and eliminates the hassle of opening other browser tools separately. In fact, this function is mainly to facilitate the writing of Java Applets applet programmer. When you write a applet program, always through the Web page to observe the results of the program, then use Jcretor to write an HTML original file and save! At this point, you will find the filename in the File View window at the far left of the JCreator edit window, and select the file name. Right-click and click the View in Browser menu item, and soon your selected HTML file will be displayed in Jcretor. OK, with this method than you use the browser to open the HTML file, is not convenient Dora! Oh, it is so simple!

The above is I use JCreator Java programming summed up a little bit of the use of skills, perhaps some friends already know that the inside of the function, swim, and write well please see cool! At the same time, I also hope that you will be able to use the Jcretor process summed up the experience posted for everyone to reference! I will also in my blog in time to update the new skills I learned!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.