Questions tagged as 'java'

0
answers

Display data saved in Sqlite

How to show in a Text view the data stored in the Sqlite database by pressing the button, because with the current code when I press the button I get EnsayoNull. This is the code: package com.example.mand.crudsqliteandroid;...
asked by 17.07.2018 / 22:39
0
answers

De-serialize JSON

I'm working with an API that gives me a response in JSON format and I do not know how to deserialize the answer to get the values I need, I'm trying with the Gson library but I do not understand it, the answer I get in the following: [ {...
asked by 12.07.2018 / 05:25
0
answers

JasperSoft iReport, tabs

I have a list of data as follows: | Name | Last name | Hours | Month | The data I want to put in different tabs according to the month, I tried putting the condition in the break but it does not work and it would not be optimal to have to...
asked by 18.07.2018 / 20:34
0
answers

Why can not I install Glassfish in NetBeans 8.2?

I get the following error when trying to install the glassfish server in netbeans: What will it be?     
asked by 11.07.2018 / 18:42
0
answers

How and where to put the onAction of a button inside a tableView?

I have a button inside a tableview, this button should allow me to remove the information from the list. The information comes from a database, that is, it is not "burned" information, the problem I have is that I do not know where in my c...
asked by 11.07.2018 / 17:56
1
answer

It does not show Alert when it is inside a CompletableFuture (JAVA)

I have the following code snippet: Alert alert; String resultado; resultado = "incompleto"; CompletableFuture <String> futureSupplyAsync = CompletableFuture.supplyAsync(() -> { Future <String> future = executor.submit(new M...
asked by 11.07.2018 / 20:14
2
answers

Why does not my excel document come out the same as the JFrame?

This is the Jframe and this is the excel What can I do to make Excel the same Jframe? this is my code import java.awt.BorderLayout; import java.awt.Color; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; im...
asked by 11.07.2018 / 17:34
0
answers

Remove project IDE STS

How can I remove the projects that I have in the STS IDE to start working on a new one but that I will not lose the project. Every time I create a new project I have to create a new WorkSpace? What is the proper way to name the WorkSpace?...
asked by 10.07.2018 / 21:47
0
answers

How to improve unit test with junit? Help

I have the following method in my controller that sends a call to a prop class to manage the file download ArchivoUtils.generaArchivo(response, factList); @RequestMapping(value="view/obtieneArchivo") public void obtieneArchivo(...
asked by 10.07.2018 / 02:52
0
answers

Modify button for a JTable without a database connection

I need a modify button in my program that when selecting a row in my JTable I can modify the selected row with what I have written in my JTextFields it is not necessary to be connected to a database, I would just like to know what I should write...
asked by 10.07.2018 / 03:23