Well, I would like to store all my JTextField in an array, but when I define the array, I get the following error: llegal forward reference . Below is the code where I define the array.
private JTextField campos[] = {campoNome, ca...
I need to save the state of my CheckBox, they are inside a Spinner, and every time I open the Spinner it clears the CheckBox.
AdmList.java
final String[] select_qualification = {
"Todos", "1", "2", "3", "4",...
I have an excel worksheet that I need to copy some data to another worksheet. This old spreadsheet is like a "base", I need to copy only the header and caption part (with the style of the cell, in addition to the text).
I'm using the HSSFW...
I have the following class Connects.java
package util;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Statement;
public class Conecta {
//Pode...
I'm trying to update an on-screen component with RequestContext of primefaces . However there are 2 situations where the first one is I click on a link and the page gives its refresh. The second situation is where I have a scheduler...
I would like to calculate the age by taking the date of birth from the database, using pojo .
I was looking at how to do a date calculation by looking at this question: Calculate age by day, month, and year
My date in the database...
I have a JFrame , where inside it has a JTable and a JButton (Change) that calls another JFrame. In this other JFrame, a change of data is performed according to the row selected in the table and saved in the DB when clicking...
I'm doing a Java program. In it I get a date of type java.util.Date , but I need it in java.sql.Date so I can insert it into the database. But on that date, I have hour, minute and second and I would like to insert with all this dat...
I have a screen where I register a movie, and I play for a ArrayList with a Movie class, which contains some attributes such as title, year, nothing else so far.
So I want it on my other screen where I have a comboBox called "Select Mo...