Questions tagged as 'java'

1
answer

JSON with value - App List Null

I'm creating an App, where it will display some information from an external database using a JSON file so that I can display this information in the App. But when I run the code, the list in my app returns null and void. I would like to know wh...
asked by 03.12.2016 / 20:34
1
answer

How to Call Other Class Values

I am creating a vehicle control, and in it I have a Fuel register that has description and value, and another cadastre of Supplies. In my supply register has a autoComplete of Fuel. The problem starts here, when I select the fuel I need t...
asked by 16.11.2016 / 13:39
1
answer

Dynamically update a primefaces table

Hello, I'm creating a java master with Primefaces. I have the following problem: I have a screen in xhtml and the same loads the data, so far so good. The problem is when someone on another computer is accessing at the same time, you will not be...
asked by 06.11.2016 / 04:13
1
answer

can not be cast to java.util.Map

The method below that I created in the model layer, is returning the error "can not be cast to java.util.Map" public List<NotaFiscalProduto> listaItens (boolean entSaid, Date dtinicio, Date dtfim){ Criteria r = this.session.createC...
asked by 14.11.2016 / 12:19
1
answer

Creating Function PostgreSQL

I have a problem creating a function . I'm pulling its parameters from my java application, the problem occurs when pulling the parameters ( variavel1 , and variavel2 ) because they are coming from the application as text. An error...
asked by 12.12.2016 / 17:40
1
answer

How do I create a showOptionDialog method that defaults to "no"?

I want confirmation messages from my system to behave with the default value of "no". I did this by doing this: private void jButtonActionPerformed(java.awt.event.ActionEvent evt) { Object[] options...
asked by 14.10.2017 / 03:37
1
answer

Manual configuration of Spring Data

I'm trying to use SpringData in a JFace / SWT project. Because the CrudRepository auto-deployment feature is fantastic and very advantageous. For this, I include here in the classpath the necessary SpringData things: Spring Data Commons, Spri...
asked by 15.10.2017 / 14:19
2
answers

Doubt with the use of the Optional

I'm trying to use this optional class to get the data with null, but it returns error. In the main class, I use the for with this method. Profession and composition of people. for(Pessoa p : pessoas) { Optional<Profissao> tem...
asked by 18.11.2016 / 14:21
1
answer

Break loop in java

My Java project is a headlamp control with Arduino. So far so good. However I did a function in which the leds gets automatic in a loop after a RadionButton is selected. My problem is that when I select RadionButton my JFrame...
asked by 18.11.2016 / 07:39
1
answer

Is it possible to open windows generated from netbeans in Window Builder?

I've migrated some projects in
asked by 17.11.2016 / 18:16