• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

IntelliJ Naming convention in project structure

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

When I look at online tutorials about JavaFX programming the project structure looks different then the one I see when I create a new JavaFx project.

In the tutorials used online the new project the structure looks like this:

SRC >> sample >> controller, main and sample.fxml

My structure looks like this:

src >> main >> java >> sample.demo2 >> HelloApplication and HelloController

src >> main >> resources >> sample.demo2 >> hello-view.fxml


Is this because I use a newer version of Intellij than is used in the course or can I adjust this ?

Thank you very much in advance.
 
Marshal
Posts: 22449
121
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your IntelliJ project uses Maven, the tutorial project doesn't. In Maven, there is a separation between Java class sources (src/main/java/<package>) and other files, called resources (src/main/resources). When you do a build, the two are merged, and the src/main/java and src/main/resources prefix are no longer present.

I wouldn't worry about this. It's just a different way of structuring your files. The end result is the same.
 
John Hermes
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rob Spoor wrote:Your IntelliJ project uses Maven, the tutorial project doesn't. In Maven, there is a separation between Java class sources (src/main/java/<package>) and other files, called resources (src/main/resources). When you do a build, the two are merged, and the src/main/java and src/main/resources prefix are no longer present.

I wouldn't worry about this. It's just a different way of structuring your files. The end result is the same.



Thank you very much.

you've put my mind at ease!
 
Rob Spoor
Marshal
Posts: 22449
121
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're welcome.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic