Questions tagged as 'java'

1
answer

Validate Delete button, when you have not selected anything java and mysql

It works to me when deleting data from the B.D but when I do not select anything, I must leave the message that indicates that I select a row and I also get Exception. This is my Code. int fila =tbproductos.getSelectedRow(); String valor =(St...
asked by 20.07.2018 / 00:43
0
answers

Copy files to their respective folders and subfolders

I have this java code in which I create a graphical interface that copies from one folder to another, now what I need is that when I copy a specific folder, you enter the files in their respective subfolders. How can I do it? I leave what I achi...
asked by 17.07.2018 / 11:51
1
answer

Combobox dependent on another combobox in jtable

I have the following situation, in a table I have the department column and another city, the intention is that when you select a department that would be in column 0, the city combobox will automatically load in the next column in the active ro...
asked by 21.07.2018 / 23:58
0
answers

Servlet: request.getReader () null in the GET method

I have a Servlet that reads the Form with getReader () but for some reason it returns null. HTML: body> <form action="Controlador"> Hotel: <!--<input type = "submit" value = "Submit" />-->...
asked by 21.07.2018 / 17:10
0
answers

Store binaries in an Array - Java

I am working on this binary converter to decimals and vice versa and I need that each binary number is saved in a position of an array , the same for decimals, some idea this is the code. package numerosBinariosYDecimales; import java.util.Sc...
asked by 24.07.2018 / 17:05
2
answers

shell unix is not running from java

Hi, I have the following code that connects to my Linux server (AIX 6.1) and executes a command: import com.jcraft.jsch.ChannelExec; import com.jcraft.jsch.JSch; import com.jcraft.jsch.JSchException; import com.jcraft.jsch.Session; import java.i...
asked by 24.07.2018 / 18:16
0
answers

How to integrate a Presenter to an empty Activity?

I am implementing a Presenter at a Activity empty, that is, my Activity_main is completely empty without any element or widget, it asks me: How do I integrate this Presenter in my Activity so that I throw a JSON in that Activity em...
asked by 24.07.2018 / 17:23
0
answers

Error in TextView.measure: JNI DETECTED ERROR IN APPLICATION

The complete error is:    JNI DETECTED ERROR IN APPLICATION: thread   Thread [1, tid = 15011, Runnable, Thread * = 0xa7d85400, peer = 0x7593a268, "main"]   using JNI after critical get in call to DeleteGlobalRef Occurs in a recursive meth...
asked by 15.07.2018 / 12:00
0
answers

Change high low status in a Java TXT

public void darDeBaja(Alumno obj) throws Exception { archivo.seek(0); String linea; long lineaArchivo = 0; boolean encontro = false; while((linea = archivo.readLine()) != null && !encontro) { String[] campo...
asked by 13.07.2018 / 21:58
0
answers

For what they are and how to run files ProjectSettings.json, VSWorkspacestate.json and slnx.sqlite

I have a concern, send me on a Java project. A folder with name VS and with files ProjectSettings.json, VSWorkspacestate.json and slnx.sqlite. But I do not know how to add them to a Netbeans project to run the project.     
asked by 16.07.2018 / 16:47