Questions tagged as 'java'

0
answers

Primefaces p: selectBooleanButton Ignoring Converter

I'm trying to make a p:selectBooleanButton be used to select the status of a registration form. The value of the attribute in the model is Enum with two values that can be translated as True or False . However, after w...
asked by 07.03.2018 / 12:42
0
answers

How to change the contents of an inherited class variable?

I am developing a system of transactions for methodological purposes. I have the following classe mãe called Conta : public class Conta { private double _saldo = 0; private String _nome; private int _idade; pri...
asked by 28.02.2018 / 16:39
1
answer

API Restful java gets wrong JSON POST date

I have a Rest API in java that is getting the wrong date. JavaScript sends the following JSON: { "pessdtcad": "2018-02-24", "dataNascimento": "1984-05-18", "nome": "GUSTAVO DE FREITAS", "sexo": "M", } And the backend shows the dates one day...
asked by 27.02.2018 / 16:28
0
answers

Problems with consumption Rest Java swing?

I have a java swing application where I get a list of data from a webservice.  When I perform that by netbeans it does right, now when I generate the jar to send to the client, the application simply does not make the request, it hangs. Here's t...
asked by 27.02.2018 / 19:10
0
answers

select with relationship in thymeleaf

Good afternoon! I need help from the members of the Forum, as follows. I am developing an application with Java and SpringBoot and I need to implement a view where you will have a select that will bring the information of the Mysql database,...
asked by 27.02.2018 / 19:38
0
answers

error: can not find symbol variable toolbar and section_format

I'm learning to program for Android and created an app from scratch on an empty screen. Then I decided to put my Activity in a template with tabs, where the first tab would be this screen I already made and the second one I would still program....
asked by 26.02.2018 / 17:46
0
answers

Netbeans with error when starting Tomcat. "Error: Could not locate or load the main class Files \ Tomcat"

I've had this problem for days. On two other machines with the same operating system, the same installation procedure was performed and no error occurred. I will be attaching print with the error. I have already researched the internet and tried...
asked by 10.03.2018 / 19:25
1
answer

static modifier in an attribute

I'm wondering if the static modifier needs to be in the same package as the other classes in my project. Example: I have a class named User within the Users packet and another class named Constants within the Metodos package. The problem is t...
asked by 10.03.2018 / 20:18
1
answer

ArrayIndexOutOfBoundsException when trying to populate a JTable from a query

I'm running a query in the database to pass the information to a JTable . However, when performing a query, the following error appears: Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 1 >= 1 at j...
asked by 10.03.2018 / 22:20
1
answer

Form creation

My problem is this: I have a class for example client it via own name, surname and cpf and a list of objects of class address. The address class is only going to have the street and city field. My question is the following how do I create a form...
asked by 03.03.2018 / 06:52