Computer Science Canada

Netbeans 6.5 (Java) tutorial reference

Author:  isaiahk9 [ Mon Mar 30, 2009 7:52 pm ]
Post subject:  Netbeans 6.5 (Java) tutorial reference

Hey, I'm going to have to make my grade 12 computers project this year and was hoping to get a good hold on Java, because it has been pretty confusing compared to the overly simplistic Turing and Visual Basic so far. I was wondering if anybody had any references to a series of tutorials? ty

Author:  DemonWasp [ Mon Mar 30, 2009 8:09 pm ]
Post subject:  RE:Netbeans 6.5 (Java) tutorial reference

You want these:

Java 1.6 API - a list of all the built-in classes and functionality. Tremendously helpful.

SUN's Java Tutorials - these explain both the concepts behind the different parts of the program and also how it's done in Java.

Eclipse (optional) - This is an IDE competitor to NetBeans, and is fast becoming the standard for Java projects. At a guess, more of the community here knows Eclipse. The Eclipse project is also related heavily to the Standard Widget Toolkit, a better UI framework than either of Java's basic UI options (AWT, Swing).

Author:  Drew416 [ Tue Mar 31, 2009 12:13 am ]
Post subject:  Re: Netbeans 6.5 (Java) tutorial reference

Netbeans is an excellence choice for an IDE. I've never used Eclipse and I'm sure it is an excellent IDE but Netbeans esp from 6.0 is absolutely amazing. It will be especially useful for you as a beginer in java. It has intellisence which tries to complete the line of code as you are typing it, that way you don't have to worry about the little syntax quirks of library functions. For example when I used to use TextPad as my compiler I would always make a mistake of typing JOptionPane.showMessageDailog instead of JOptionPane.showMessageDialog, NetBeans is so awsome that I never make such mistakes Very Happy Also NetBeans uses JavaDoc style of commenting which allows you to literally browse through various library functions and see their parameters/purpose/etc without having to lookup documentation online. The debugger is excellent too. I could go on and on about the cool features but I'll stop here. As for tutorials I'd recommend taking out a basic java book from your local library (or downloading one from the internet) and getting a firm grasp of the basics which shouldn't be too hard since you already have programming experience. After that it depends upon your project... what are you trying to make? If you are making a databasy application you will have read a book on Object Oriented Programming you don't have to master it just get a general understanding and then you will be able to move to stuff like linked lists which are very intuitive when working with databasy applications like an address books, schedulers, sports records handler. If you are making a game or something you'd probably have to read on Open GL or some other library like it. It really depends upon what you want to do.

Author:  DemonWasp [ Tue Mar 31, 2009 1:27 am ]
Post subject:  RE:Netbeans 6.5 (Java) tutorial reference

For the sake of completeness, Eclipse has all the features listed by Drew as well as:

1. Code-refactoring and generation tools. Rename a variable or function? A few clicks and the change happens throughout the entire application - sensitive to syntax / context too, so that if you have myNumber as a field and a function, it only changes whichever one you specified. You'll also never need to write a trivial setter or getter again.

2. Painless integration with a number of repository types, including CVS, SVN, ClearCase and a host of others (I'm too lazy to look up the full list at the moment).

3. Automatic import directives. Forgotten to include something? Press Ctrl+Space and it'll fix the imports for you - down to including specific classes for you instead of whole packages. If it's ambiguous, it gives you a dialog, sorted by which options it thinks are most likely.

4. Inline error detection and resolution hints. As you're coding, a small bar next to your code shows the location and type of all kinds of issues - errors, warnings, TODOs, etc. A small icon gives you access to a variety of simple solutions, whether it's including a new file, changing the interface, or adding class members to fulfill the requirements of the interface. Builds and rebuilds as you're editing, in the background, so when you're done coding, you hit save and it's ready to run right away.

5. Thread-capable debugging suite. The debugger can handle as many threads as you could possibly want, maintaining context for all of them.

6. Portability. Mods and modules for Eclipse expand its capabilities to other languages, including C, C++, PHP, JavaScript, HTML, CSS, and dozens of others.

Author:  isaiahk9 [ Tue Mar 31, 2009 6:02 am ]
Post subject:  RE:Netbeans 6.5 (Java) tutorial reference

ty DemonWasp and Drew416. That looks like it'll give my a great start.


: