Showing posts with label Netbeans. Show all posts
Showing posts with label Netbeans. Show all posts

Sunday, August 19, 2012

Installing and Configuring JavaDoc for Netbeans in Ubuntu

If you encounter such an error, you probably don't have JavaDoc installed or you don't have it configured correctly.
The JavaDoc error
1.Installing JavaDoc

You can install it using command-line or a package manager.

To install it command-line open a terminal and type:
sudo apt-get install openjdk-6-doc
If you want to install it using Ubuntu Software Center, open it and search for openjdk-6-doc and press install:
Installing JavaDoc using the Ubuntu Software Center
2. Configuring JavaDoc

If the previous step didn't solve your problem, open Netbeans and:
1)Open Tools -> Java Platform
2)Go to the JavaDoc tab and add the following path /usr/lib/jvm/default-java/docs
Adding the JavaDoc path
Now when you select a Java method you should its documentation:
Seeing the JavaDoc

Friday, July 27, 2012

Designing Applets with the Netbeans GUI Designer

If you want to use the Netbeans GUI editor for an Applet you must follow the next steps:
1. In the menu bar go to File -> New Project and then select Java->Java Application
2.Name your application and select a location for the project
3, Select the package where you want to add your applet and then right click -> New -> Other. After that go to Swing GUI Forms -> JApplet Form
4.Choose a name for your applet and press Finish
5. Double click on the newly created file in the Project view. You can easily toggle between the source and design view of the file by clicking the highlighted button in the picture above.
Enjoy designing applets with Netbeans!
Related Posts Plugin for WordPress, Blogger...