Questions tagged as 'java'

3
answers

validate data entry to jTable in java netbeans

How to know when nothing is entered from the database into the table? I do my query and the result is entered into the table, but when nothing is entered, it means that the searched name is not in the database. At that time I want to send a mess...
asked by 27.12.2016 / 17:37
1
answer

Inject different types of the same class

I'm doing an exercise with @Inject of package javax.inject and I have no problem for example when in a class I think something like this public class Persona { @Inject private Rol rol; } but when I try to do the follo...
asked by 28.12.2016 / 01:01
1
answer

Problem when running a chat in java

I am doing a java chat that goes from one point to another and I have an error when executing both. When I execute them one by one there is no error, but when I do it simultaneously it throws a'NullPonterException 'exception and when I want to c...
asked by 31.01.2017 / 15:34
1
answer

Error java.io.EOFException when reading from file

When you called the PasarAVector() method I get the title error. This is the code of my program: package poo_archivos1; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.FileInputStream; import java.io.Fil...
asked by 15.12.2016 / 22:51
1
answer

android.content.ActivityNotFoundException: No Activity found to handle Intent

I am learning to program on android and I get an error: the error in the debugger:    E / AndroidRuntime: FATAL EXCEPTION: main                     Process: com.android.octa.appprueba3, PID: 4131                     Theme: themes: {}      ...
asked by 01.02.2017 / 21:25
2
answers

Process from xls to xlsx change date format

I have a problem converting xls files to xlsx and it is that when reading the cells where the dates have the data type in the xls cell, it appears as 13/04/2016 (The data type in the document says custom) but when I generate the new document in...
asked by 15.12.2016 / 21:27
1
answer

SQL statement with INNER JOIN to pull a column of two tables in Java

I need help with a SQL statement. I have never worked with INNER JOIN and I can not do it correctly. As you can see in the previous image, what I'm looking for is this: Save the id_invitacion of the table invitacion...
asked by 05.12.2016 / 04:40
1
answer

MySQL statement to correctly update an existing record from Java

I try to update a user's data but, I receive the SQL Syntax error.    com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an   error in your SQL syntax; check the manual that corresponds to your   MySQL server version for the...
asked by 01.12.2016 / 06:44
1
answer

Get the id of my ArrayList and put it in a TexView

I would like to get the id of the selected item in a Spinner ArrayAdapter adapter=new ArrayAdapter(c,android.R.layout.simple_list_item_1,spacecrafts); sp.setAdapter(adapter); sp.setOnItemSelectedListener(new AdapterView.OnIt...
asked by 04.12.2016 / 18:39
1
answer

button return Toolbar to the previous activity "without Reloading the Activity again

I have this code in the AndroidManifest.xml but when I press the Go back button, I recharge the activity and since I have a query it is generated again, making the process a little delayed. AndroidManifest.xml code: <uses-permission a...
asked by 27.11.2016 / 17:01