Questions tagged as 'java'

1
answer

EditText Multiline with lines separated by dashes

Alright? I would like you to help me with one thing: I would like to have an EditText with Multilines split into lines. What I want to say is this: When we create an EditText multiline (let's say multiline with 4 lines as an example), it l...
asked by 29.08.2016 / 06:46
2
answers

Adapter modified in real time

I have a Activity called ListaBasica and a Adapter with the name adapterBasico . Adapter contains a list of bulletins. The Activity contains information taken from the Adapter as the sum of the ti...
asked by 29.08.2016 / 14:42
1
answer

Search field

Hello everyone. I am putting together a program that has the user registration function. The program is done in Java, xhtml and I'm using PrimeFaces to generate the visual components. In this program there is also a search screen to search the r...
asked by 08.08.2016 / 00:00
1
answer

Error compiling Android

At the time of compiling, the following error occurs: :app:transformClassesWithDexForDebug FAILED Error:1 error; aborting Error:Error converting bytecode to dex: Cause: Dex cannot parse version 52 byte code. This is caused by library dependenc...
asked by 08.08.2016 / 04:55
1
answer

Fill in automatic data - JSF

I need to make my inputs automatically populated, after combo selection. I have already done the method to go through the database and retrieve the necessary information, however it does not fill ... Can anyone help me? I believe that due to the...
asked by 02.08.2016 / 14:16
2
answers

Google Maps does not open after the app is launched

I'm using the Google Maps Android API, but it's not working when I send the app to Google Play. In the debug it works normally and when I run the application through Android Studio too, but when I launch the application to the Playstore it does...
asked by 02.08.2016 / 20:41
1
answer

I am trying to return the name but only I can return the ID

I've been searching the days and could not find a solution. The scenario and the following: I have an employee registration screen and an employee edit screen with two classes a pessoa where I have generic property like name, addres...
asked by 03.08.2016 / 20:13
1
answer

Where is pom.xml?

I'm starting in Java and, according to the workbook, there should be a file called pom.xml in the project, but I can not find it.     
asked by 03.08.2016 / 04:28
1
answer

How to identify the button that was clicked? [closed]

I have several buttons and I would like to compare the text of the button clicked with a variable of type String . This without using this: if (evento.getSource() == botaoXl) { // Fazer isto... } else if (evento.getSource() == bot...
asked by 30.07.2016 / 12:12
1
answer

NullPointerException when comparing two String arrays in java

I have two String arrays and when I run this: if (prod[i][0].equals(temporaria[j][0]) && prod[i][0]!= null && temporaria[j][0]!= null) I get NullPointerException without even entering the IF loop. I found it strange that...
asked by 08.09.2016 / 23:03