Questions tagged as 'java'

1
answer

Changing the contents of a panel in JFrame

In my application, I have a main screen with a menu. The contents of each menu screen should appear inside a main screen panel, I do not want to open a new screen for every thing. What I need then is to change the contents of the main screen...
asked by 25.10.2017 / 05:37
1
answer

JFrame does not update until button function terminates

When I click the button it calls a method, and until that method finishes the JFrame does not update the program is in the image below privatevoidjButtonBuscarActionPerformed(java.awt.event.ActionEventevt){jTextArea.setText(""); Atua...
asked by 19.10.2017 / 21:32
1
answer

Set a jDateChooser [closed]

I have a problem with doing insert there in the PostgreSQL database. The code is apparently ok but at the time of compiling the error. The error is related to the type of data that I try to insert into the database. The error it gives is...
asked by 19.10.2017 / 21:42
1
answer

Is it possible to create a hybrid application with AngularJS as the front, and java as a backend?

I'm new to front-line programming, especially at AngularJS. So I'm asking you if it's possible to create an app, either with ionic or phonegap, with the angular being front-end and the back-end java without any incompatibility or anything like t...
asked by 13.01.2018 / 23:29
2
answers

How to count the spaces of a String in java

Here is the example of the code you were doing: package manipulacaos; import java.util.Scanner; public class ManipulacaoS { public static void main(String[] args){ Scanner ler = new Scanner(System.in); String letra = "a";...
asked by 30.11.2017 / 13:20
1
answer

Treating null pointer exception

I'm getting a json object from the screen in my back end like this: { "pessoa": { "nome": "aa", "nomeSocial": "aa", "tipoPessoa": "F", "nomePai":"", "dataNascimento": "15/06/1983", "nomeMae":...
asked by 30.11.2017 / 12:43
1
answer

Callback methods annotated in a listener bean class must return void and take one argument: javax.persistence.PreUpdate

I'm having this error on my console ... Caused by: javax.persistence.PersistenceException: Callback methods annotated in a listener bean class must return void and take one argument: javax.persistence.PreUpdate - public void digifred.model.aud...
asked by 14.12.2017 / 19:26
1
answer

Doubt with decision making

My dear ones, I have the following code: public static void questionTwo(){ String back = ""; Scanner scan = new Scanner(System.in); System.out.println("Questao 02: "); while(!back.equalsIgnoreCase("N") && !back.equa...
asked by 30.09.2017 / 18:24
1
answer

Summarizing the result of several logical tests in a single result

Good afternoon, I have some strings that come from testing. Example: String teste2 = (nB < 0.0 && m1 <= j ? "OK" : "Não passa!"); String teste3 = (nB < 0.0 && m2 <= j ? "OK" : "Não passa!"...
asked by 01.10.2017 / 19:17
1
answer

Return of incorrect bank values when preeencher a JTable

I have a Class Registration, which is responsible for View. In it I have this code: public void listarTabela(){ DefaultTableModel val = (DefaultTableModel) jTable3.getModel(); val.getDataVector().removeAllElements(); UsuarioDAO usD...
asked by 01.10.2017 / 20:15