Questions tagged as 'java'

1
answer

How to create a ListView in a Navigation Drawer?

1 My goal is this: in place of these items that come by default in Navigation Drawer I would like to put a series of lists that will change as I create, delete and edit these lists. I tried to create an Adapter with an Array of Strings j...
asked by 02.03.2017 / 20:57
0
answers

Java ME Emulator does not start

I'm trying to start the Java emulator for mobile devices, but when I start it directly from its executable, it has a black screen. Then in the system tray, the device-manager icon appears that even allows me to click on it and access its options...
asked by 01.03.2017 / 07:56
1
answer

I can not change my object coming from a dataTable - JSF with Primefaces

I am retrieving my object from the dataTable plus the time I redirect the dataTable to another page to make change, it presents an error. Plus it takes the ID of the object, I did a convert more without success. MyConverterpackageconverter;i...
asked by 02.03.2017 / 02:33
1
answer

javax.faces.validator.BeanValidator.MESSAGE = {1} {0}

I created a form where I have the following Name, Position, Login and Password fields. I am using javax.faces.validator.BeanValidator.MESSAGE={1} {0} to return error message to the user. I know it's working because all the fields are bein...
asked by 02.03.2017 / 16:13
0
answers

What is the best Design Pattern for Java Logger?

I would like to know which is the best choice to implement loggers in Java. Currently I have used dependency inversion as the following example: @Controller @RequestMapping("/"); public class HomeController { private final LoggerImpl lo...
asked by 02.03.2017 / 17:44
1
answer

How to make inserts in table creation in SQLite?

I would like to know how to do INSERT manuals in the DatabaseHelper class that extends SQLiteOpenHelper. public class DatabaseHelper extends SQLiteOpenHelper { private static final String BANCO_DADOS = "Agenda"; private static int VERSAO = 1;...
asked by 20.04.2017 / 17:32
0
answers

Error: Content-Length and stream length disagree

If you use a Log this way rescuing the body from response : Log.wtf(TAG,""+response.body().string()); Correctly prints the JSON value. Something in this format: {"error":true,"message":"Login failed. Incorrect credentials"} Bu...
asked by 20.04.2017 / 23:48
1
answer

Creating a match system with days of the week and different periods between two tables

While doing a university project, I came across a problem that proved to be a hindrance. I need to create a system that requires a user to select days of the week and periods (night, daytime, morning) in a way that is convenient for them. Ex: us...
asked by 25.03.2017 / 06:34
0
answers

File directory

Hello, I'm doing a program in java where I need to open a file and read it. But when I'm trying to put the file path, it does not find such a file and so I get the Null Pointer Exception error. The code is as follows: public File[] returnFile...
asked by 25.03.2017 / 21:03
1
answer

System.setProperty - Set path to chromedriver

I'm starting to tinker with tests using selenium and JUnit. I need to set the chromedriver.exe path. I would like to know if you have chromedriver.exe inside the project folder and set the path in a way that if someone else downloads the project...
asked by 28.03.2017 / 20:26