Questions tagged as 'java'

1
answer

How to disable / enable buttons in one JFrame depending on the option from another JFrame?

I currently have two buttons in a JFrame : one to save and the other to update. In other JFrame , I have to register and edit. When I click on the register, I want the save to be on and update off, and when to edit, vice versa. I...
asked by 17.10.2017 / 16:11
2
answers

How to get value from a RadioButon inside a RadioGroup to save in the bank

I wanted to know how I get the value of a RadioButton to save it to the sqlite bank. In the example below the instructor does as follows: public class FormularioHelper { private Aluno aluno; public FormularioHelper(FormularioActivity activit...
asked by 27.09.2017 / 23:05
2
answers

Button in Fragment android

I have a Fragment and this fragment has a FloatingActionButton . I call the onClickListener method: FloatingActionButton floatingActionButton = (FloatingActionButton) view.findViewById(R.id.fabAddEventos); floatingActionButton.setO...
asked by 27.09.2017 / 19:55
2
answers

Consume webservice of address queries of a given city

I'm developing a web project that needs to feed everyone with the addresses of the streets and neighborhoods of the city where I live, and after performing a certain service by the user, link it to an address. In order not to manually register a...
asked by 31.10.2017 / 20:46
2
answers

Recover and calculate programmatically generated EditText values

I'm creating an app to calculate an arithmetic mean of N values. There is an add button, when it is clicked it will generate EditText programmatically. And it will have a calculate button, when it is clicked, it should show the average...
asked by 01.11.2017 / 05:07
1
answer

BigDecimal - Error NumberFormatException

If an editText is not populated the APK stops working and returns the error: 10-31 15:06:54.340 4152-4152/com.wms.www.calccred E/AndroidRuntime: FATAL EXCEPTION: main Process: com.wms.www.calccred, PID: 4152 java.lang.NumberFormatException...
asked by 31.10.2017 / 17:44
3
answers

HTTP status 500 internal server error

I have a problem in my web application spring boot compiles and starts the server, however when starting localhost:8080/buscar the following error appears: Classcontroller:packagecom.web.app.Bresource;importjava.util.ArrayList;importj...
asked by 08.10.2017 / 09:42
2
answers

Hibernate is not mapping classes

Hibernate I'm using is not automatically generating tables My Persistence.xml file <?xml version="1.0" encoding="UTF-8"?> <persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/...
asked by 18.12.2017 / 18:22
1
answer

Convert String encoded to byte

I am the AES-GCM encryption user on my server, and decrypt it on my android client. However I'm having a conversion problem. We assume that: 1- Encrypted text generates value in bytes: [B@541fe858 2- This value is embedded in...
asked by 19.12.2017 / 18:55
1
answer

How to concatenate 2 Strings with Java in HTML [closed]

I'm using the following input with 2 preset values. <input type="text" class="read-only" value="${FORM.dataAgendamento + FORM.horaAgendamento}" readonly="readonly" size="40"/> If they are integers, it works perfectly, however for stri...
asked by 01.09.2017 / 00:44