Questions tagged as 'java'

1
answer

Error entering data into JPA

import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; @Entity // pode usar para alterar o nome da tabela la no banco //@Ta...
asked by 11.02.2017 / 14:39
1
answer

Message is not displayed

Within my form has a autocomplete , when triggering the autocomplete and if the previous field has not been filled I want to trigger a message stating that the previous field must be filled in. I configured but the message is not di...
asked by 03.02.2017 / 14:52
1
answer

Returning NullPointer to the controller

I have a method in controller that has the function to make a query in my database and after returning only one field of this search, however I am taking nullpointer in the first for that I am using. I would like help in tha...
asked by 01.02.2017 / 19:40
1
answer

ListView does not load all items

I'm using ListView in my project, it was doubling the values, until I put the ELSE of that condition: if(convertView == null)... else... After this it stopped duplicating, but also stopped showing all 12 items, now showing only the first 2....
asked by 05.02.2017 / 00:13
3
answers

Error with List with null reference in Java

Calling any method on any null reference will always result in an exception. How could I solve this? public class frmStatusAprovacaoGeral implements AdapterInterface{ @Override public void back(EntityWrapper arg0, Activity arg1) {...
asked by 03.02.2017 / 14:29
1
answer

Receive parameters of different activity and add

Hello, I need to pass the two-screen parameters to the home screen , or the "BALANCE" parameters of the balance screen where it will be passed to an EditText (lblStandard) start screen and then take a value set to "EXTRA" on the addarsal...
asked by 25.10.2016 / 21:42
2
answers

Catching files on drive C:

Using the code: System.getProperty("user.dir")+"\email\email.properties" It picks up from the user (C:\USUARIO\user\Documents\Netbeans\Projeto\email\email.properties) But what if it is in the drive C:\ only? (C:\Email\emai...
asked by 03.11.2016 / 20:36
2
answers

Routine in Java within loop of repetition

I have a method in Java that sends an email with a doc attachment, and is working correctly. However, this method takes around 50 seconds to execute the entire shipping process. But now I need to run it several times in sequence. How can I make...
asked by 07.11.2016 / 01:38
2
answers

How to make a functional string parsing method?

I'm creating an application that simulates a library system, and to begin with, you need to log in by entering a name in the text field. This is the method I created to parse the name (I want only uppercase letters and spaces in this string):...
asked by 07.11.2016 / 09:46
2
answers

Change language in the app and stay changed

I have an app and would like the user to change it if he / she wants to Following this link worked fine, however if I clean the cache of the phone (I think that's it) or clean all the screens open and try to open again, it does not stay wit...
asked by 25.11.2016 / 12:52