Questions tagged as 'java'

0
answers

Android - How to notify UI updates from a CursorLoader without ContentProvider?

How to notify UI updates using Loader without ContentProvider ? I am using a% custom% to show a list using CursorAdapter through RecyclerView (Storing data in pure SQLite, without being Room). But I do not know how...
asked by 27.05.2018 / 02:12
2
answers

Calculate difference between dates

I need to calculate the difference between the date of registration and the current date, if it is greater than 6 months, return Boolean. I am registering the bank on the date of registration as follows: public static final String DATE_FORMAT_...
asked by 15.11.2015 / 16:08
0
answers

p: selectOneMenu does not correctly filter the dataList

I have a column with the filter p: selectOneMenu. I use it to filter a column that has rows that can have one or more attributes. So I use the p: dataList component of Primefaces to show this list. But the filter only takes the first item of the...
asked by 27.05.2018 / 23:28
0
answers

Calling a jFrame of another class in a click event in java [duplicate]

I have a JFrame with two buttons, and a second class that has a JFrame with other features ... I wanted to make the second window open by clicking one of the buttons in the first window, but I can not make the call inside of the first class cl...
asked by 06.06.2018 / 17:06
0
answers

Design change for UTF8

When changing the project to UTF8 every time a request is made without ajax, for example: <h:commandButton value="Salvar" styleClass="espacoBotao" action="#{tratamentoBean.editarTratamento(loginBean.usuario.siape)}"/> If I save the da...
asked by 21.05.2018 / 19:41
0
answers

java.lang.OutOfMemoryError: Java heap space (even with increased memory)

My code has this error. But I've already tried: Increase memory in VM settings:    # custom IntelliJ IDEA VM options       -Xms512m   -Xmx1024m   -XX: ReservedCodeCacheSize = 480m   -XX: + UseConcMarkSweepGC   -XX: SoftRefLRUPolicyMSPerM...
asked by 18.05.2018 / 14:18
1
answer

"Location is not set" JavaFX

I have recently studied javafx and got stuck writing a very simple code to open a .fxml file, follow the code and the error respectively, I searched the internet and tried the proposed solution on the American stackoverflow, and still the proble...
asked by 20.05.2018 / 05:33
0
answers

AlertDialog with ListView in FireBase

Hello, I'm new to Android Programming. I'm trying to put a custom AlertDialog on an activity in this AlertDialog I want to put a listView that calls items present in my FireBase database. But when I click to open the Error AlertDialog and to. He...
asked by 19.05.2018 / 23:53
0
answers

Metodo main and JUnit does not run on the console

I'm using Hibernate version 2.1 JPA version 5, and when I run both the main method and JUnit, nothing appears on the console not even some error. The client class and address contains your ids. Neither System appears on the console.     Syste...
asked by 26.05.2018 / 19:02
0
answers

Problem with GWT and ClassCastException

Hello, I'm having a problem casting cast from an object in GWT. I have a public <T> T getInstance(Class<T> clazz, String code,String packageName) method which, upon receiving a class, a code and a package name, generates...
asked by 26.05.2018 / 12:10