Questions tagged as 'java'

1
answer

Thymeleaf does not display date in HTML5 component

Hello! I'm starting to study thymeleaf next to Spring MVC and I came across a problem I can not solve. I have a date field with the type="date" component of HTML5 in a form, which works 100% when registering. However, when I use the fo...
asked by 02.08.2017 / 20:26
1
answer

Failed to update field of all records with path of files using JDBC

I'm migrating pdf files stored in the database to file systems. In the code as it can be seen below, I use an algorithm that generates the names of the files and saves them in a directory generated through the date of inclusion of the document....
asked by 12.08.2017 / 16:50
0
answers

JavaMail How to change the email sender address?

I'm using a very basic code for sending e-mail, and I'm noticing that the sender's address differs from the sender's address, and instead the e-mail account address. I'm making use of the staff as below but it does not work InternetAddress...
asked by 15.08.2017 / 02:06
1
answer

JavaFX MDI window: how to make a AnchorPane responsive to AnchorPane Pai

I want to know how do I make my internal AnchorPane responsive example: I have a main screen and on this main screen has a configuration button. When I click this button, it opens another AnchorPane inside the main AnchorPane. The problem is...
asked by 15.08.2017 / 18:15
0
answers

Recursive numeric sequence in Java

I need to make a numerical sequence in recursive mode that, after reaching n number (5, in the example), starts to do the inverse sequence. Example:    1234554321 I've already done what the normal sequence does, now there's one that re...
asked by 15.08.2017 / 21:00
1
answer

Reporting one object at a time with Jaspersoft Studio

I have a system of single notes in jsf and primefaces. I was able to generate a set report of several notes at the same time by searching through two input parameters, start date and end date. But what I want is to generate a note without having...
asked by 15.08.2017 / 17:10
3
answers

Allow only integers in a column of JTable

Below I have a Jtable template. There is only one column that is editable for number (seconds). How do I validate to accept only integers, and in case the user types something else, except integer, return ZERO? public class Tabela_Fluxo...
asked by 21.08.2017 / 21:49
0
answers

How to fill several input fields with data coming from the database?

I have a problem with my system, I have already registered several devices on my system, but each device has a list of ports. How do I dynamically generate inputs according to the number of ports registered in the database?    Example:...
asked by 28.07.2017 / 17:21
1
answer

How do I check the blanks?

It is a math media program, I need help to check if the user leaves it blank and click the average button. package suamedia.project.com.suamedia; import android.os.Bundle; import android.support.v7.app.AlertDialog; import android.support.v7.a...
asked by 28.07.2017 / 23:01
1
answer

How can I end and resume writing a file using a single PrintWriter?

I'm working with a small project that performs the reading of the data of a spreadsheet, in order to facilitate the capture of the exceptions, I have a class called the Log Generator. This class has a PrintWriter object that writes the Throwa...
asked by 27.07.2017 / 17:00