Questions tagged as 'resources'

1
answer

Why should I use getResource ()?

In Java it is not uncommon to see codes that load images, audio files, XML and other things in a more or less like this: final ImageIcon programLogo = new ImageIcon("res" + System.getProperty("file.separator") + "icon.png"); However, from t...
asked by 07.09.2014 / 14:09
1
answer

How to hide pictures from the 'Resources' folder?

How do I create a file to put the images in the 'resources' folder? I do not want people using my program to have access to them. The file can be any extension.     
asked by 06.02.2014 / 12:58
2
answers

How to use Resources in .js file?

I have an Asp.Net MVC project where I am using Resources , and to use it on my web pages p> @using projeto.Translations <h3>@Resources.DISPLAY_OLA</h3> The problem is that I have some items (buttons, for example) that are d...
asked by 24.07.2015 / 13:26
1
answer

Where to store binary files in JUnit unit tests with Maven?

I have the following directory structure for the resource folder of unit tests: src/test/resources/*.files In order for me to read binary files (such as a PDF for example) to complete a unit test, I am putting these files in the test / reso...
asked by 04.04.2018 / 21:47
0
answers

How to set language according to .resx file

I am aware of the existence of this question: Internationalization using ASP.Net MVC But I have some doubts. I have these language files (I'll have more in the future): Thesysteminquestiondoesnotgiveanypostbackinthepages,soIcannotcha...
asked by 18.04.2017 / 15:37
3
answers

Is it possible to attach an Android res / drawable file to an email using JavaMail?

I'm looking for the solution in two ways: Get the file PATH: I would like to get the path of an image that is in res/drawable in my Android project. I'm needing path because I have to send it attached by email, a...
asked by 21.03.2014 / 15:49
2
answers

Thymeleaf Spring JSF

I'm trying to internationalize templat, using Thymeleaf 3.0 Spring 4.2.3 JSF 2.2 What is sent next to an email. #{i18N.descriptionPortal} When you print in the email html it looks like this ??i18N.descriptionPortal_pt_BR?? o...
asked by 05.01.2017 / 17:24
1
answer

How to use Microsoft ASP.Net MVC features?

I found this package, but I do not know how to use it:    Microsoft ASP.NET MVC English-BR Features       Microsoft.AspNet.Mvc.us    link How do I use the features of this package?     
asked by 30.06.2016 / 04:37
1
answer

How do the icons in a program need not be in a resource folder or something?

I'm using Java, but it's a pretty general question indeed. When I load an image as a program icon (program icon, save, load, any icon) and change the folder where the icon is, of course there is an error because the program looks for the icon...
asked by 31.08.2016 / 02:00
1
answer

How can I put a variable inside a resource string?

How can I put a variable within a resource string? I have the following string: <resources> <string name="card_closed">O cartão Nº _var_ está fechado! </string> </resources> How can I put my variable _var_...
asked by 27.06.2016 / 16:21