Questions tagged as 'java'

1
answer

Servlet Doubt

Hello, I have a question with Servlet's. Imagine the picture: raiz / / formulario.jsp / Servlet / retornos / retorno.jsp The form sends the data to the Servlet by post or get! After this submission, using RequestDispatc...
asked by 14.08.2015 / 13:04
1
answer

Permutation between two vectors

I'm studying some algorithm techniques and I came across a problem that I'm stuck in, I need to do all the permutation possibilities between two vectors. For example: [1,2,3] and [5,6,7] You need to generate: [123] and [567] [125] an...
asked by 29.08.2015 / 22:41
1
answer

Access database in OpenShift

I deployed a project in OpenShift , I used a cartridge to create a Mysql database soon after the creation of the database this information appears:    MySQL 5.5 database added. Please make note of these credentials:       Root...
asked by 05.10.2015 / 22:35
1
answer

Using constructor and using set () for same attributes

I am studying JPA following the example of uaiContacts . His project is in GitHub. I took the example of the modelContact.java file: The Contact class is mapped: public class Contact { @Id @GeneratedValue private int...
asked by 28.08.2015 / 16:51
1
answer

How to access data from the innermost "level" of a JSON?

I needed a way to access the innermost "level" of JSON below: (name, value, last query and source) { "status": true, "valores": { "USD": { "nome": "Dólar", "valor": 2.333, "ultima_consulta":...
asked by 09.10.2015 / 18:59
1
answer

netbeans change the jdk from java

I've updated my java, and removed the previous version, now on boot netbeans gets a message that did not find version 1.7 and asks if I want to use the default version. Does anyone know where I change this setting so I will not be seeing thi...
asked by 18.09.2015 / 12:39
3
answers

Handle items from an Action Bar outside the scope of onCreateOptionsMenu ()

I have in my Action Bar an item to display progress (a ProgressBar) if a request is occurring. When the request occurs, I must show the ProgressBar and hide the other items, when the request ends, I must hide the ProgressBar and show the other i...
asked by 17.09.2015 / 21:07
2
answers

How to close a JFrame using keyboard events?

I have a JFrame that I want to close when I press the Esc key ... Well, I did this: public Cadastro() { addKeyListener(this); And then this: public void keyTyped(KeyEvent evt) { if(evt.getKeyCode() == KeyEvent.VK_ESCAPE){...
asked by 26.03.2015 / 21:08
1
answer

How to change the VM heap space in a Netbeans Platform project

I'm having the following problem: I have a Netbeans Platform Application project that during execution the application hangs once and nothing else responds (one minute execution is enough to crash, this possibly occurs because of large quer...
asked by 23.06.2015 / 17:35
2
answers

How to tell if a socket client has disconnected?

I have a server that has a List with all clients connected. The client connects and the connection is managed on a unique thread with infinite loop communication. The problem when I drop the client or close the connection, I do not...
asked by 15.08.2015 / 04:23