Questions tagged as 'swing'

1
answer

How do I populate a JTable?

I have a fairly simple java application that connects to a database, in the console I type the query I want to pass by parameter to the executeQuery. Now I need to pass all this to a graphical interface. Is there any way I can create just one wi...
asked by 10.06.2014 / 06:03
0
answers

How do I access one method of an ArrayList in another frame? [duplicate]

Class Person: public class Pessoa { private String nome; private int idade; public Pessoa(String nome, int idade) { this.nome = nome; this.idade = idade; } public String getNome() { return nome;...
asked by 02.04.2018 / 00:20
1
answer

Java Search Box

I'm creating a system in Java using NetBeans. I would like to create a search box that shows the results in a list (of variable size) under the box as the user enters the text to be searched. It would be something similar to the Google search bo...
asked by 27.12.2016 / 19:15
0
answers

Swing integrated with JavaFX is possible?

I wanted to know if it is possible to call a JavaFX screen through a Swing Screen Button. The code for the JavaFX screen I want to call is the following: public class EditorHTML extends Application { public static void main(String[] args)...
asked by 23.03.2018 / 20:56
1
answer

Execute actions from the selected item in JComboBox

I wanted to assign value to another class, whichever is selected in JComboBox . For example, if the "Active" item in a combo is selected I wanted to assign a value to a string of an external class if the user had put the combo item "Idle"...
asked by 13.03.2016 / 21:29
1
answer

Use the same jFormattedTextField for CPF and CNPJ mask

I would like to know if it is possible in a same JFormattedTextField , toggle mask for CPF and CNPJ. When I use the mask of JFormattedTextField the value is already static, and if you put it to the CPF, it will not fit the CNPJ a...
asked by 15.07.2016 / 15:26
0
answers

Problems with consumption Rest Java swing?

I have a java swing application where I get a list of data from a webservice.  When I perform that by netbeans it does right, now when I generate the jar to send to the client, the application simply does not make the request, it hangs. Here's t...
asked by 27.02.2018 / 19:10
1
answer

ArrayIndexOutOfBoundsException when trying to populate a JTable from a query

I'm running a query in the database to pass the information to a JTable . However, when performing a query, the following error appears: Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 1 >= 1 at j...
asked by 10.03.2018 / 22:20
1
answer

Java.Lang.NullPoinerException when trying to insert database data into a JComboBox [duplicate]

Today my team and I encountered a problem when trying to do something seemingly simple: display the surname of an official in a JComboBox. The problem is that at the time of opening the screen we receive a NullPointerException and the Combo is...
asked by 23.02.2018 / 20:27
1
answer

How do I populate a JTable?

I have a fairly simple java application that connects to a database, in the console I type the query I want to pass by parameter to the executeQuery. Now I need to pass all this to a graphical interface. Is there any way I can create just one wi...
asked by 10.06.2014 / 06:03