Questions tagged as 'swing'

0
answers

Constructing a java table from a vector as a parameter

Hello! I'm having trouble building a table. It is as follows, the user defines a series of variables that are stored in a vector. I would like the variables stored in this array to be the name of the columns in the table. The problem does not in...
asked by 14.07.2016 / 20:42
0
answers

Identify empty columns of a jTable and paint the entire line of Red

I'm importing a file into Excel and playing inside a jTable, so that's fine. What happens is that user has inserted spreadsheet with empty fields. I would like to leave the entire sheet in red and request that it be changed. This is the code...
asked by 22.07.2016 / 15:13
2
answers

Call another class (Java)

How do I call a "class" of type jFrame for example from my main class? My jFrame has its own main that gives the setVisible true for it to appear, however I wanted to access this main from my main class, so I can setVisible through the main one...
asked by 05.06.2016 / 05:53
1
answer

No query executed factory registered for 'sql' language

In my project there are some reports and graphs, using DynamicReports that work correctly on IDE Netbeans without any error. However, through the command line running the java -jar MinhaAplicação.jar jar this Exception...
asked by 30.05.2016 / 19:01
0
answers

Login and password verification

I need help checking for a login and password. If the login and password that I type in JTextField are the same as the one I have in the bank, I can not allow the registration, what I'm looking for is not a validation, but just a routi...
asked by 02.05.2016 / 02:20
0
answers

Get textarea data from a JTable

I know that using DefaultTableModel is not the best way to do the tables, but I have not yet mastered AbstractTableModel , I have a table that is edited as JTextArea, but when I type it does not come in the variable of cell of the t...
asked by 29.04.2016 / 19:50
1
answer

Assign selected item to Jcombobox

I have a problem where my jComboBox values are not being returned but the values in the database are correct. I have a Vehicle Master jframe, which when triggered by the search button, calls the pesquisaVeiculo methods and calls a jDia...
asked by 26.04.2016 / 13:15
0
answers

JPA Hibernate two entities with same name, always saving in the same entity

I have jCombobox where all entidades students are loaded. It happens to have two entities with the same name (two students Rodrigo Silva for example). Both are loaded into combo . With gravar data in banco , i...
asked by 11.04.2016 / 12:27
0
answers

How to make a simple timer using TimeUnit.sleep

I am a beginner in Java and was trying to do a mathematical game whose theme was to add the random numbers of the buttons (of course the person would have the help of numbers 1, 2 and 5) until reaching a value equal to the random number g...
asked by 08.04.2016 / 20:31
1
answer

Unexpected result when triggering the same calculator button

I created a calculator by netbeans, which is working if only one operation is done. But if the user clicks on = (equal button) the result adds the first value entered. Example:  I typed 1 + 2  I pressed =  I get 3 But if I...
asked by 09.04.2016 / 14:19