Questions tagged as 'java'

2
answers

Check and edit a List

I have a List: private List<Geracao> lista; This list will be populated with data coming from a database: lista = dao.findAll(); The findAll() method: @SuppressWarnings("unchecked") @Override public List<Gerac...
asked by 17.11.2016 / 11:40
1
answer

Passing of several parameters as an Array

I have a method that receives an unknown amount of parameters as an Array, like this: public void enviarCampos(String funcao, String... campos) { // Ação do método } To call this method I do: enviarCampos("CADASTRAR", "nome", "dataNasci...
asked by 18.11.2016 / 15:06
1
answer

Using Callable in java sequentially executes the code

I'm doing a server in java that wanted to perform certain tasks in parallel. I have a list of a certain type I want 20 threads to deal with deterimented list elements. for( Item item : result ) { Callable< List< IResult > > cal...
asked by 06.12.2016 / 16:03
1
answer

How to get data processing and memory of Windows system in Java?

How do I in Java code show use of Windows memory and processing?     
asked by 24.11.2015 / 00:05
1
answer

Rename an element in a JList

Greetings, friends. I have a problem with Java. I'mtryingtoaddanelementoftype"Occurrence" in a JList. This element has 4 elements inside it, which I need to keep. So far so good. However, the problem appears when I add that element to...
asked by 23.11.2015 / 17:19
1
answer

Alert Dialog with custom Gif image

I would like to know how to create a custom Alert Dialog where you have an ImageView containing a GIF. In my Main. imgAndroid = (Button) findViewByid (R.id.imagandroid); imgAndroid.setBackgroundResource (R.drawable.imagee); anime = (Anima...
asked by 28.12.2016 / 19:31
1
answer

Error DataBase Locked Sqlite / Java

I have the following problem: in an insert that I am trying to perform, I do not know if it is an error in the database or something in the programming in java, however every time I try to perform an insert of the client table I get the error: p...
asked by 24.12.2016 / 18:24
1
answer

Which library do I use to send notifications?

Hello, I'm developing an app where patients have left it in the background or even open, and when the patient's time comes, the office sends a notification saying that it's his time. Do you have any specific library for this? I'm very new to and...
asked by 28.12.2016 / 19:40
3
answers

Create TextView's dynamically

I have TextView and would like instead of filling with a Arraylist , with all items in its setText , that it be created several times on the screen, with the respective items of this array, in each setText of each T...
asked by 19.12.2016 / 13:55
1
answer

How to add values in the JTextField via the button without deleting the previous value?

My problem is that I placed a button so that when it was clicked, I would add the value 1 to JTextField . But when I click again, it replaces the value, and what I wanted was for it to add another type 1 , I click once on t...
asked by 01.01.2017 / 21:39