Questions tagged as 'java'

1
answer

Jtable, add multi-lines [cell span] + Format table

I need to do something like this: AtthispointIhaveatablelikeImage1,butIwantedtocreateatablelikeImage2.HowcanIcreatesomethinglikethis?Anyideas?ThemostsimilarexampleIsawwas: link [EDIT] To create the multi-lines I used this class "Attr...
asked by 30.07.2014 / 10:38
1
answer

Creating automatic tables by Hibernate

Good afternoon, I'm trying to create the tables automatically, being that I think I should be missing something. Can anyone help me? this is my line of code Cargo.java package br.com.teste; import java.io.Serializable; import j...
asked by 11.08.2014 / 21:28
1
answer

Problem with Spring Security - page not found

When the user accesses a page that he does not have authorization, he is directed to the page of AcessoNegado.xhtml . However it has the following image: Thispageislocatedhere:\GestaoADM\src\main\webapp\AcessoNegado.xhtml And the set...
asked by 30.06.2015 / 17:04
1
answer

timer.swing delay

I'm doing a little game that flashes some orderly images in the frame, my goal is for them to blink in order, but they are blinking all together: public class Logica { List<Integer> seqAlea = new ArrayList<Integer>(); List...
asked by 22.11.2015 / 22:06
3
answers

JPA + Wildfly + Hibernate

Is there a way to dynamically change the connection to the database by changing the standalone.xml file of Wildfly 8 (or 10) ? Currently I have a HibernateSessionFactory class that creates a m EntityManagerFactory with the connection param...
asked by 03.01.2018 / 11:07
1
answer

Difficulty in using DatePicker

I'm studying things for a project here and I'm trying to use DatePicker, I could implement it normally, but I want to use two in the same activity, putting a start date and an end date, I put two buttons that use the same DatePickerFragment.java...
asked by 01.06.2018 / 23:01
2
answers

How to hide menu items using spring security?

I'm using spring security to control access to my web application. I already managed to implement the control that each type of user will have in relation to the urls, now I would hide the items for the ordinary user that will be restricted to o...
asked by 04.06.2018 / 20:48
1
answer

Self-Signed Certificate Security

I'm doing a Java Client-Server system that will manage computers in a room, the scenario is as follows: A computer, the server, waits for connections, when an action is taken (Screen Lock) this command is then sent to all connected clients....
asked by 10.11.2017 / 01:30
3
answers

Error NoClassDefFoundError

When I try to open the program it does not find the nativehook class, but it is in the classpath Error: C:\Users\Paulo\Desktop>java -jar AutoClick.jar Exception in thread "main" java.lang.NoClassDefFoundError: org/jnativehook/keyboar...
asked by 03.03.2015 / 17:57
2
answers

Java error report in PDF

I have a java program for generating PDF reports. The problem is that every time I send the PDF via Email, it opens the PDF on the screen. Where can I change so that it does not open on the screen when sending via Email? follow my code: public...
asked by 19.02.2015 / 17:06