Questions tagged as 'java'

1
answer

java.lang.NullPointerException in Hibernate Annotations

I'm now watching the annotations part with Hibernate. I show you what I have: Here is my configuration file called hibernate.cfg.xml: <?xml version='1.0' encoding='utf-8'?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/H...
asked by 23.04.2017 / 18:34
0
answers

Delete records from the base with angular

I have a problem, I can not delete the records in the database. In my project I have the following code: Controlador: $scope.typeKeyDelete = function(index){ $scope.loadTypeKeyFromList(index); $scope.typeKey.$delete(); $scope.typ...
asked by 07.04.2017 / 16:48
1
answer

JTable change object type row java netbeans

Good, I have a problem if I want for example that each column of a table can store a different type of object, for example in the first column a string and in the second a double, How can I do it? Thanks in advance.     
asked by 07.04.2017 / 07:17
0
answers

Print four JPanels of a JAVA SWING program on a single page using PrinterJob

Taking advantage of the fact that my JAVA SWING application, of which I want to make a report, (Print the data to have them in physical format) has a very accomplished and worked appearance that could be used by printing the JPanels that show th...
asked by 11.04.2017 / 12:52
1
answer

Unfortunately, the Agenda application stopped. I hope you can help me [closed]

I am programming in android studio, I put a Button and this will take me to another activity, the problem is that pressing the button I get an error: Unfortunately the Agenda application stopped. I hope you can help me.     
asked by 10.04.2017 / 23:34
1
answer

Difference between current date and later date, late minutes, tracking

I want to calculate the difference in minutes between one date and another, however when this difference is greater than 45, I want it to say that it goes "x minutes late", if they pass "and" minute (s) should show: " x + and late minutes " I cu...
asked by 10.04.2017 / 22:26
6
answers

What is the solution to all present, past and future NullPointerException errors?

I have my Java program and I get a NullPointerException and I have seen other questions but they are from people with other programs and it does not work for my program and I want to leave here the 2,000 lines of my program so that you solve the...
asked by 08.01.2017 / 18:54
1
answer

Apache Ant java.lang.NoClassDefFoundError

I am new in Ant , I am doing a program client-server with Eclipse , I am using external libraries: JMapViewer-1.14.1.jar , the server works correctly the client sends me an error. When executing from the Ubuntu...
asked by 11.04.2017 / 14:26
2
answers

restful with foreign keys

I'm doing the final project and I have a restful web service created in Netbeans that uses a remote database to a Glassfish server. We have to create two apps a desktop and the other Android in which you can manipulate / consult in this database...
asked by 04.04.2017 / 10:27
3
answers

Problem when using Scanner # nextLine (); inside a for

The question is that I want to enter a String that can contain space (ex: United States) and for that reason I use the nextLine, but also in that same method I enter data type Int. The problem is that being inside a for in the second entry, it g...
asked by 20.01.2016 / 01:32