Posts by DiegoAugusto • 8,694 points
325 posts
-
1
votes1
answer915
viewsQ: Progressbar using Javafx
I have a method that reads multiple files and generates a report for each file read. How do I take the time of each service and show on ProgressBar? I have to use Thread or Task? I tried to do it…
-
4
votes1
answer127
viewsQ: Help with logic
I have a method that reads several tags from a file . xml and returns a list filled by the data read. Problem: Each xml file has several batches and within the batch has several tabs, for example, I…
-
0
votes1
answer288
viewsQ: Application for when I pass a List per parameter to a Sub report
I am trying to pass a List by parameter to my Sub Report, but when it arrives in a certain part the application to and the report is not generated. Never get out of it: I’m passing the list that…
-
4
votes1
answer738
viewsQ: Pass List to a sub report and call it in main report
Guys I have a method that generates a pdf report in a certain directory, now arose the need to use a sub report, but I’m having difficulty understanding how to pass a List as the data source for…
-
0
votes1
answer208
viewsQ: How do I send a data source list to a sub report and call that sub report in my main report
Good morning guys, I’m having a little problem. I’m trying to pass a lista as data source for my sub report. I already have the main report which is also filled in by a list. My question is this,…
-
3
votes1
answer4217
viewsQ: Calling Subreport in Main Report
Guys, I have 2 reports, the sub report and the main report, but when I give a preview I can only view the main one, as I do to display the sub report as well? I’m using Jaspersoft Studio. I have a…
jasper-reportsasked DiegoAugusto 8,694 -
7
votes1
answer1357
viewsQ: Problem placing multiple data from a list in a report
Good morning guys, this is a somewhat complicated question to explain, so I will do my best to make the question clear. I have a list <UnimedLote>. In this list I have several data, among…
-
4
votes2
answers12276
viewsQ: What is the space limit of each database in mysql
I see that some SGBD's has a space limit set for each Database. As in the case of the Express version of SQL Server that provides 10GB for each Base. I would like to know if MySql has some limit,…
mysqlasked DiegoAugusto 8,694 -
0
votes1
answer125
viewsA: Is it possible to instantiate an object more than once in a class?
I added the listaLote.add(contato) within the last FOR and my problem was solved
javaanswered DiegoAugusto 8,694 -
15
votes1
answer27206
viewsA: Database connection - Mysql and Java
I will try to give a brief of how to start a database application using JDBC: The first step is to create the connection class, we can create it as follows: public class Conexao { private static…
-
7
votes2
answers4016
viewsQ: Pays to migrate from Swing to Javafx?
Currently most of my applications are made with Swing. I’ve done 2 small projects web with JSF+Primefaces+Hibernate. My question is this:: It pays to quit Swing and study Javafx, or it’s better to…
-
3
votes3
answers7481
viewsQ: Compare Two dates and time
Good morning guys, I’m trying to compare two dates but I’m not succeeding. I have 2 dates: dataAtual and dataPedido. What I want to do is that if the dateAtual is equal to datePedido and if the…
-
2
votes1
answer889
viewsA: How to Save Image in Database with JSF2
Since Voce didn’t post the code, see if this can help you: @ManagedBean(name = "fileUploadMB") @RequestScoped public class fileUploadMB { public static byte[] arquivo; public static String…
-
0
votes1
answer125
viewsQ: Is it possible to instantiate an object more than once in a class?
I have a problem. I have 3 For’s, one inside the other, Inside the second For I make the instance of my object and soon after I pass the data of an xml file I read to that object and in the end I…
javaasked DiegoAugusto 8,694 -
0
votes1
answer1988
viewsQ: List returns only last element
Eae guys, after a lot of work I managed to get several xml tags to play in an Excel report. But when I populate the list with my object and step into the report only the last element is listed. I’ve…
-
0
votes1
answer48
viewsQ: Error trying to run JSF application
Guys I’m starting to study Jboss, Maven, etc. However when I run a page I created for tests this error appears: Could not find backup for factory javax.faces.context.FacesContextFactory In my…
-
2
votes1
answer4632
viewsQ: Read A tag that sits inside another in an . xml file with DOM API
Take data from a tag and right after take data from a daughter tag. For example, I have 2 tags that repeat across the entire document, and I need to take data from both: <teste:dadosLote>…
-
1
votes0
answers70
viewsQ: Help with logic of a system that writes data to Excel columns
Guys I have an application and I can pass the data to excel, the problem came up now because I have to make a loop and I’m not finding the best way to do it. I have several lots, for example,…
-
0
votes5
answers294
viewsA: Problem with calculator program
I may be wrong but I did not find any value being passed to enter the switch. I did it that way and it worked: int main (void) { float A, B; int op; printf("Entre com a opcao: "); scanf("%d",…
canswered DiegoAugusto 8,694 -
1
votes1
answer190
viewsQ: Error while moving File . rar from one folder to another
Guys I have a method that takes the files I want . rar from one folder and saved in another, however when I open the file it is corrupted. try { //Origem File arquivoOrigem = new File(path);…
-
1
votes1
answer821
viewsQ: Zip more than 1 file
How can I zip more than one file? I’m only getting one. That’s my code: public static void compactarParaZip(String arqSaida, String arqEntrada) throws IOException { int cont; byte[] dados = new…
-
3
votes1
answer2606
viewsQ: Change the color of a jProgressBar
How can I change the color my Progressbar, it always turns a little orange weird, I tried to use this code but it didn’t work: UIManager.put("ProgressBar.background", Color.orange);…
-
3
votes4
answers14347
viewsQ: How to take a String value before a Special character
Hello, good morning. I have a little doubt, how can I get the value of a String before some special character. For example, Clinica Antonio S/S. I would like to take only the Clinica Antonio S,…
-
0
votes1
answer1060
viewsQ: Join several Arraylist in one collection
It is possible to join 3 Arraylist in a collection and then send as datasource for a report. Or have another way to do this? I have 3 Arraylist of 3 objects, I wanted the information of these lists…
-
1
votes1
answer129
viewsQ: Help with Arraylist
Only the last two elements of my Arraylist are sent as datasource in ireport. I have an Arraylist that stores read tag data in xml files. For example, I select three xml files with the same tags but…