Questions tagged as 'java'

0
answers

TimerTask calling method twice

I have a TimerTask that calls a method every 1 minute, but the method is called twice. This method checks for some factors and sends an e-mail, as the method is called twice, and the e-mail is sent twice. Does anyone know where the proble...
asked by 17.07.2015 / 14:53
0
answers

PDF generated from HTML, through itext (5.5.6), does not have the font size defined in CSS

I'm using itext 5.5.6 to generate a PDF file from an HTML document generated by thymeleaf. In this HTML, the styles are being reflected correctly in the browser. However, when generating the PDF, it displays all styles correctly except the fo...
asked by 26.08.2015 / 20:06
0
answers

error running JavaFX on Windows 7

Recently I made a simple application in MacOSX (lion) using JavaFX. But by playing some libs (jar) and implementing a few more snippets of code, the application stopped working in Windows 7. Running the aplicativo.jar displays the e...
asked by 07.08.2015 / 21:08
0
answers

Doubts on how to develop a Skill bar

Good afternoon, I'm having trouble finding anything on skill bar, usually I only find percentage skill bar, and like the example image below, I wanted to develop a field where the user can add their skills, as in Linkedln. If anyone knows how to...
asked by 07.08.2015 / 18:54
2
answers

Is there any API to create a similar Google Directory API service?

I find the Google Directory API very interesting to gather documentation and test environment in an easy, objective and well-organized way. I wonder if there are any similar plugins that can be added to a Java application to automatically gen...
asked by 07.08.2015 / 19:27
1
answer

Delete From Database without deleting related objects

I have a system on which to register Instructors and Students, each Instructor may have several Students under supervision and each Student may have only one Instructor or no Instructor. My problem is that when deleting an Instructor, student...
asked by 06.08.2015 / 22:01
0
answers

How to create all the possibilities of a scheme with a loop?

For example, have A, B, and C trade places with each other, and then define how many and how many exchanges. ABC, ACB, BAC, BCA, CAB, CBA, etc. I want to do this with the for loop and I prefer Javascript, but it is not necessary to be in it, it...
asked by 16.07.2015 / 16:30
1
answer

Error: 'boolean java.lang.String.equals (java.lang.Object)'

This is a program which, behind the calculator, stores files that it deems important. The message field of the error I believe is not his, but the Super SU or Android system, because every time in any program that has to have a deeper access it...
asked by 16.07.2015 / 15:21
2
answers

How to Capture a Keystroke with the Program Running in the Background

The code I have so far is this: public static void main(String[] args) { SystemTray tray = SystemTray.getSystemTray(); Image image = new BufferedImage(10, 10, 10); String tooltip = "Oi amiguinho"; PopupMenu menu = new Popu...
asked by 28.08.2015 / 21:18
0
answers

How to create shopping cart in JSF with Hibernate Postgres Glassfich and primefaces? [closed]

I need to create a shopping cart like in e-comerce but everything in the same page, and I do not even know where to start, I'm new to programming, In my project I use Primefaces , Postgressql , Hibernate , the project is JSF and has the...
asked by 04.09.2015 / 21:01