Results 1 to 3 of 3
  1. #1
    357mag is offline Member
    Join Date
    May 2010
    Posts
    38
    Rep Power
    0

    Default Trying to make a simple Java code file template

    I'd like to make a simple Java code file template but when I open Code Templates I'm bewildered. There is no New button to press. I've enclosed a screenshot of what I see. I don't understand what the dollar signs and variables mean. I can tell you that I would like my template to look something like this:

    //

    public class
    {
    public static void main(String args[])
    {

    }
    }

    Quite basic and simple but I don't understand how to use the Templates dialog box to get it done.
    Attached Thumbnails Attached Thumbnails Trying to make a simple Java code file template-code-template.jpg  

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,217
    Rep Power
    12

    Default Re: Trying to make a simple Java code file template

    Instead of writing a template why not just use the new class icon and select the include static main entry point option?

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  3. #3
    357mag is offline Member
    Join Date
    May 2010
    Posts
    38
    Rep Power
    0

    Default Re: Trying to make a simple Java code file template

    I found out how to make the template. But I'm not going to do it. It wouldn't work too well since you have to name your class as you are creating the new file. Yeah I'll just tick the box next to create main method.

Similar Threads

  1. Java simple game template
    By Wazniak in forum New To Java
    Replies: 1
    Last Post: 10-16-2013, 02:25 AM
  2. Deleted Class template code. Now I cant make class.
    By AcousticBruce in forum IntelliJ IDEA
    Replies: 0
    Last Post: 01-11-2011, 10:52 PM
  3. SWT code template
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-30-2007, 12:18 PM
  4. Replies: 1
    Last Post: 04-26-2007, 03:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •