Posts by Gleison • 665 points
18 posts
-
2
votes1
answer529
views -
0
votes1
answer93
viewsA: Capture image from gstreamer Pipeline
I checked what the VideoComponent did in the previous example and implemented what it uses: import java.awt.image.BufferedImage; import java.awt.image.DataBufferInt; import java.io.File; import…
-
2
votes1
answer93
viewsQ: Capture image from gstreamer Pipeline
I have an IP camera that uses protocol RTSP to transmit images, the code below uses the gstreamer to connect, grab these images and show on swing (works just right). I want to get the camera frames…
-
12
votes2
answers669
viewsQ: JAAS or Spring Security on page control
I’m doing an Eclipse project with JSF 2.2, JPA 2.1, Hibernate 5, Primefaces 5.3, CDI (Weld 1.1). I want to implement the security part of the application and I’m in doubt between JAAS and Spring…
-
3
votes2
answers129
viewsQ: Evolve a basic class in Java
Hello, I have the following situation, I have an Animal object and I want to evolve it into a Puppy: public class Animal { private boolean alive = true; public boolean isAlive() { return alive; }…
-
2
votes1
answer151
viewsQ: Versioning . jar in Java with Netbeans
I wish that mine .jar had a version number and release date inside it, so I could inform it on the about screen for example. So far no mystery, but the point is that every build in Netbeans I wanted…
-
4
votes1
answer1304
views -
0
votes2
answers2692
viewsA: Change project dependency folder (lib)
To achieve the desired result I had to make two adjustments. first In the archive meuProjeto\nbproject\build-impl.xml I adjusted the line: <globmapper from="*" to="lib/*"/> To: <globmapper…
-
3
votes2
answers2692
viewsQ: Change project dependency folder (lib)
When compiling my project on Netbeans the files are generated in this way: ./dist ./dist/meuProjeto.jar ./dist/readme.txt ./dist/lib ./dist/lib/dependencia1.jar ./dist/lib/dependencia2.jar And I…
-
1
votes1
answer1253
viewsA: Thread Control in Java
Use the ExecutorService, it’s a class for threads pool. You instantiate how many threads will run simultaneously, then add your Runnable in it and hopes to end. import…
-
1
votes1
answer914
viewsA: Print Enum field in Jasperreports
I figured it out, you can force the guy field in his statement in .jrxml and from that you will have access to the methods of Enum. <field name="tipo"…
-
2
votes1
answer914
viewsQ: Print Enum field in Jasperreports
I created a Enum which has a description field for each of its items. In my report on Jaspersoft Studio i want to print this description field and not the name() of Enum. I created a field in the…
-
3
votes1
answer62
viewsA: Exception in Java Uithreadingviolationexception
The Victor gave me the tip in the comments and I went after the link that he passed on to me, after delving into research I managed to understand the problem with this other link. Below example of…
-
2
votes1
answer62
viewsQ: Exception in Java Uithreadingviolationexception
I did a project with the LookAndFeel Substance, in it I have a thread which periodically updates a JProgressBar, the problem is that in function JProgressBar.setValue(1) and…
-
2
votes1
answer177
viewsQ: Identify an Object property in Java+JPA and change it
I’m creating a class to get a database record and write to another database. I’m using JPA and bumped into a problem. I’m doing a generic insertion and I have to clean up the ID of the table to be…
-
8
votes3
answers1408
viewsQ: Working with JPA+Hibernate cache
I doubt how I should work with the objects EntityManagerFactory and EntityManager. Currently I urge a EntityManagerFactory for the whole system, since I have only one bank, I create only one and use…
-
2
votes1
answer2941
views -
4
votes1
answer1560
viewsQ: Fetch of children with JPA+Hibernate not working
I have two classes, Terminal (who is the father) and Portaria (son). I’m using JPA and it’s working, but there’s a bug I can’t fix. I upload a list of Terminal and when testing the t.getPortarias()…