Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8605655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:53:36+00:00 2026-06-12T02:53:36+00:00

I am taking a programming class in college where my professor requires me to

  • 0

I am taking a programming class in college where my professor requires me to include information on the assignment withing a JavaDoc comment block in a specific format. I’m wanting to create a java class template so that when I create my file, I just type in the assignment specific information, and it places it in the template. Is this possible, or do the variables used in netbeans templates have to be pre-defined?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T02:53:38+00:00Added an answer on June 12, 2026 at 2:53 am

    “I’m wanting comments that are generated when the user creates a .java file in netbeans.”

    Then your best solution is modifying the templates and defining custom User.properties when needed.

    In NetBeans 7.2 (latest I think), go to [Tools] -> [Templates], and in the Template Manager window you can expand whatever template for whatever language you like and customize it.

    For example, if you expand Java, you can then change the Java Class by highlighting it and selecting [Open in Editor]. At that point, you can easily see the normal javadoc comment block at the top.

    /**
     *
     * @author ${user}
     * @professor Mr. LordZardeck's Professor
     */
    public class ${name} {
    
    }
    

    If you want to add custom properties, like the above uses the user property, in the Template Manager window, select [Settings]. That will open the User.properties file where you can add properties of your own. If you look at the bottom of the file, the last line is commented out, but it is an example of a custom property, uncommented it is:

    user=Your Name <your.name at your.org>
    

    So, with this you can specify static tags that can be auto-created without any work by simply changing the templates (like the professor tag added to the java class template). For a tag whose variable might change from assignment to assignment, you can use the custom user properties to assign those at the start of each assignment, then the templates will auto-fill your assignment information into the auto-generated custom javadoc tags when your template is opened.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently taking a Programming Fundamentals college class that deals with the C
I'm a blind college student who is taking an introduction to programming class that
I am taking a class in C++ programming and the professor told us that
I am taking a principals of programming class right now. We are learning about
I am taking a Coursera Functional Programming in Scala class. This is the second
I'm taking some classes on Web Programming and no one in the class including
Basically, I've been taking a class on C programming, within that class we use
I'm currently taking a class on programming the iPhone, and I am struggling with
I am taking a programming class and we are required to use the gcc
I am taking a C++ programming class right now on GIS Programming. I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.