Questions tagged as 'java'

2
answers

NullPointException in method not registering

Does anyone know how to solve this nullPointException? In the second method I'm using two comboBox Follows the CustomerID class package DAO; import Beans.ClienteBeans; import Utilitarios.Conexao; import Utilitarios.VerificacadoresEConrreto...
asked by 16.01.2017 / 23:35
1
answer

NetworkError: 400 Bad Request

When sending a post, I got the message in the NetworkError message: 400 Bad Request. In the Development Environment no error occurs, data is synchronized from device to Tomcat on my internal network successfully. I have published the syste...
asked by 16.01.2017 / 16:30
1
answer

How to send a message telling the user the start date is greater than the end date?

I spent the whole afternoon doing this code but it did not work well. What do I do to send a message to the user saying that the start time can not be greater than the end time? xml: <?xml version="1.0" encoding="utf-8"?> <Relative...
asked by 16.01.2017 / 01:10
1
answer

How to list files and folders on ftp server?

I'm not able to make the FTP server listing in the app using the Android emulator, I realize that in older versions of Android the listing usually happens. But from Android 4 I have problems for this, I also tested running the project on my m...
asked by 22.10.2016 / 02:05
1
answer

JPA in java web

I'm having a project in JAVA WEB and I'm having problems with hibernate. The error is as follows: Informações: HCANN000001: Hibernate Commons Annotations {4.0.2.Final} Informações: HHH000412: Hibernate Core {4.2.2.Final} Informações: HHH...
asked by 22.10.2016 / 23:21
3
answers

Programmatically change the background color of the Overflow Menu in the Toolbar

My application has an option that allows the user to switch between a layout of daytime colors and another layout of night colors. My problem is that I do not know how to programmatically change the text color and background color of the Ove...
asked by 24.10.2016 / 16:53
2
answers

Problems with a Linked List object in Java

I'm learning from the Caelum workbooks data structures, and I started to see Liagada Lists, I followed all the code that it offers, step by step and I understood the logic of the list chained, but what I did not understand was this line of code:...
asked by 24.10.2016 / 05:30
2
answers

Delete SharedPreferences created dynamically

In order not to have to redo requests that have already been brought from the server, I persist them using SharedPreferences ... Only they are created dynamically in my app. example: // essa key é unica para cada post // ex: MINHA_KEI_1, depoi...
asked by 05.11.2016 / 18:26
1
answer

Pass parameter with ajax

My application receives a directory in the first field of the form. Through this directory I will list the files in it. I have a method that will list the files according to the directory received by parameter. After the user informs the directo...
asked by 02.02.2017 / 14:00
1
answer

How to add MouseClicked to a JLabel?

I'm creating a program with MVC rules in Java and would like to know how to create an Event in a JLabel when I click on it with the mouse. For example, for buttons I do this: View class: void addLogarListener(ActionListener cal) {...
asked by 21.11.2016 / 14:23