Questions tagged as 'java'

1
answer

Java - Swing - Timer with TimeUnit.sleep

I'm using Swing in NetBeans, creating a simple math game (I find it more viable than a calculator) whose goal is to add the random numbers of the buttons until it equals a number between 1 and 10000, which would be shown randomly. I used for...
asked by 22.03.2016 / 20:46
2
answers

Hibernate jumping id string

I generated a project by JHipster which uses Java , Spring and Hibernate in the backend, I created a class as follows: Liquibase: <changeSet id="20160504131602" author="jhipster"> <createTable ta...
asked by 06.05.2016 / 14:02
1
answer

Approvals, reproaches and media of the room-Java

I need to receive 30 notes and return the number of approvals, disapprovals and the average room. I've tried the following: public class notas { public static int aprovacoes; public static int reprovacoes; public static int recs; public stati...
asked by 13.05.2016 / 05:47
1
answer

problem with the date

In my application when I make a sales order, I should inform the date of the order and the date of issue, the date of the order I automatically pick up, the date of issue must be completed manually. After the inserts, I export the AVD databas...
asked by 13.05.2016 / 14:36
1
answer

ScrollBar in a JTable

I added a JTable that updates the data as the client is typing in a JTextField field. However, when the client search returns multiple rows, I would like JTable to have a scroll so that the client can see all the results....
asked by 23.04.2016 / 19:07
1
answer

Capturing exceptions in the execution of the swingworker

I'm using SwingWorker to execute a method that can throw exceptions. Even forcing, the exception is not caught by try-catch . How can I resolve this? try { (new SwingWorker < Void, Void > () { @Override protec...
asked by 23.04.2016 / 01:10
1
answer

Chess effect on an image using JavaFX

I'm creating a function using JavaFX so that it uses two images and the size of the pixels and returns a third image containing a chess effect from the other two images. Below is the code, public Image xadrez(Image img1, Image img2, int tam...
asked by 09.04.2016 / 22:18
1
answer

Google Drive api integration does not work. How do I fix it?

I want to integrate the google drive api into my app. it runs but does not connect, as if it did not receive the information that was sent. How do I solve this? The code is the google itself that makes available only that seems to be outdated an...
asked by 19.04.2016 / 00:07
1
answer

App Engine - issues with version

I'm trying to run a podcast with Google App Engine. But I get the following error:    Description Resource Path Location Type Java compiler level does not   match the version of the installed Java project   facet. Unknown Faceted Project P...
asked by 19.04.2016 / 03:45
1
answer

Error trying to make a post on a php page through Android Studio

Error 03 - 12 18: 44: 46.688 23858 - 23891 / com.natanielsoares.eceller E / AndroidRuntime: FATAL EXCEPTION: AsyncTask #3 Process: com.natanielsoares.eceller, PID: 23858...
asked by 12.03.2016 / 22:57