0

I have just added a .css file to the default package (right-click over default package > New..) in a plain Java project, but as you can see below, the file (NewFile.css) is outside the package.. why?

enter image description here

This is some strange for me, since I don't have any problem to add a new .css file to a JavaFX application as you can see here (applications.css):

enter image description here

3
  • As a best practice avoid usage of default packages. Commented Dec 16, 2015 at 10:42
  • @UlukBiy what should I do with the default package? should I remove it? Commented Dec 16, 2015 at 10:57
  • No just give some name. Commented Dec 16, 2015 at 12:31

1 Answer 1

1

Packages are created to hold only java files. You can create new source folder say resources in the project level and add .css files there.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.