Questions tagged as 'java'

1
answer

Error executing oracle procedure

I have this procedure: CREATE OR REPLACE PROCEDURE buscaturma(cod in INTEGER) AS nomeT varchar2(20); BEGIN dbms_output.put_line('inicio'); IF (cod=0)then dbms_output.put_line('ZERO'); ELSE SELECT DS_TURMA into nomeT...
asked by 23.01.2018 / 14:30
1
answer

Display a confirmation when trying to close a JInternalFrame

I am creating a program using JInternalFrame , but I would like to request a confirmation if the user clicks the close button "Closable". For this, I'm trying to overwrite the internalFrameClosed and internalFrameClosing m...
asked by 26.12.2017 / 15:35
1
answer

Doubt referring to using add in LinkedList, java

I have LinkedList<CasosPossiveis> casos = new LinkedList<>(); and CasosPossiveis objeto = new CasosPossiveis(); . Within for , after this declaration, I make a: casos.add(objeto); , after modifying the object...
asked by 25.11.2017 / 16:13
1
answer

Selectonemenu Field (Primefaces) does not save on the bank

I come to ask for your help again, because I need to finish my CBT. I have dialog that has multiple fields, one of them is <p:selectOneMenu> . When I pre-select all the fields and save, the fields are all saved, except the...
asked by 28.11.2017 / 05:44
1
answer

ProgressDialog closing before Second Activity opens

I have an Activity called Login_Activity, when the user logs in, I want a ProgressDialog to appear, until the other Activity is fully loaded, because since I'm going to put some things to execute in the onCreate method of the second Activity, th...
asked by 30.11.2017 / 19:05
1
answer

When I make a request in my API Rest with Spring boot, it is coming with one more item

I have already debugged and the result is a correct list, but when I make the request in the Postman, there is one more item. Looks like an accountant. Can someone tell me what this is and how to pull it off? Thisismycontroller.importjavax.s...
asked by 30.11.2017 / 02:34
1
answer

java: how to access an object through a string

I have a grid with several rows and columns and each cell has a Label. Each Label is named by the column and line (example: a1, a2, b1, b2, etc ), how can I access these Labels through String ? Example: private Label a15; S...
asked by 30.11.2017 / 19:37
1
answer

How to cascate relationship?

I have a class mapped with hibernate, however, when saving an object the whole object is cascaded to the child table (which is expected). The problem is that equal objects are saved instead of just relating the child object to the parent object....
asked by 18.12.2017 / 17:43
1
answer

How to remove the project name in the Java Servlet Url

I have a question and I have already searched the entire internet and I did not find, how the hell did I get the name of the url project in java? ex: http://localhost:8084/MeuProjeto/login for http://localhost:8084/login Thank you!...
asked by 20.11.2017 / 22:42
2
answers

Select on the bank using "like"

I'm trying to make a select in the mysql database, but I'd like to use like , which should get the value of a java variable. How can I make this interaction? public void returInfoClient(userClient) { Connection mConn = (new Connecti...
asked by 21.11.2017 / 11:45