Questions tagged as 'java'

1
answer

Notification remains in the status bar even after the click

I have an app where I get daily notifications, however when I click this notification, it still stays in my status bar . I'm using the NotificationCompat class to create these notifications , in which whenever another is thrown, it even ove...
asked by 14.03.2017 / 02:40
1
answer

Equivalent to GOTO in Java

Well folks, I'd like to know how a goto in java does? or some way to get back to a certain point in the code, people say that it's dangerous to use this type of command in java ... why?     
asked by 26.03.2017 / 06:11
1
answer

Change the size of the TAB spacing in JTextPane

I want to change the tab tab of jTextPane because it has many spaces, for example: Currently it looks like this: Uma casa azul // após TAB Uma casa azul And what I want would be like this: Uma casa azul // após TA...
asked by 20.10.2016 / 14:42
3
answers

How to erase database data in android studio?

I have an application where the user logs in the first time, I save Token and NIU , so the next time he accesses the application, he already goes directly to Webview using this token e NIU who are in the bank. However,...
asked by 21.02.2017 / 14:00
2
answers

Check if the installation source is from the play store

Hello, I was thinking of making a PRO version (without advertisement) of my Android App, but I'd like to know how the font verification works, whether it was installed by the play store or You did not buy the app . Can anyone explain how t...
asked by 10.11.2016 / 01:46
2
answers

How to release CORS for a given address?

I'm not able to release CORS to link , I'm using Spring Security . I encounter the following error:    XMLHttpRequest can not load link . Response to preflight request does not pass access control check: In 'Access-Control...
asked by 01.11.2016 / 13:07
2
answers

JSF panelGrid does not work

The code below should show a simple screen split between names and input areas, but panelGrid is not working, what's wrong? When running, nothing appears. <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http:...
asked by 06.11.2016 / 05:32
1
answer

Save and load objects within a list

Hello, can anyone tell me why it is only loading the value, and the key is blank / null? Code that I use to save and load: public static List<Pair<String, String>> cash_player = new ArrayList<>(); public st...
asked by 07.11.2016 / 14:26
3
answers

JDBC Connection with MySQL

I'm learning to develop java and I'm trying to get ahead in my studies to understand how to make a connection to the database, but there's a problem I can not identify. Below the error written in the log:    com.mysql.jdbc.exceptions.jdbc4...
asked by 28.01.2016 / 12:24
1
answer

How to make hibernate read a table in a MySQL database and write to another table in PostgreSQL?

I need to query a database in MySQL and get a table from there to write to a PostgreSQL database through Hibernate / JPA. I configured persistence.xml as follows: <?xml version="1.0" encoding="UTF-8"?> <persistence xmlns="ht...
asked by 12.02.2016 / 22:14