Questions tagged as 'swing'

1
answer

JButton ActionPerformed does not open the Frame before ending all events

I have the following problem: When I click on the JButton I want to open a Waiting Frame that prompts the user to wait for a while and in the meantime the program will process the query methods that take some time. However, by clicking on Jbu...
asked by 22.02.2018 / 13:27
0
answers

Popular Jtable with DB data without using DefaultTableModel [duplicate]

I'm doing an entire project in layers and read somewhere that using DefaultTableModel is not very recommended. I am trying to receive values registered in the DB and fill a jTable with those values. Below are the defined classes. DAO Layer...
asked by 21.02.2018 / 16:38
1
answer

How to create a folder browser in java swing?

I want to create a window and it has a button, when the user clicks that button, that "windows folder browser" will appear for the user to select a folder of his machine and the address of the folder is saved in a variable. It is possible? I do...
asked by 18.11.2017 / 00:56
1
answer

Why does the size of the JFrame exceed the size of its ContentPane, even if it has a defined size?

I noticed a strange behavior between containers in the swing. To exemplify the test, I created a JFrame and a JPanel , and set the panel to contentPane of JFrame . Set the preferred and maximum size of the JPanel t...
asked by 10.05.2017 / 20:00
0
answers

How to use a thread that has died again?

I'm making an application that plays sound effects for an RPG game. The goal is for the application to be able to play multiple sounds simultaneously (a song together with an explosion effect, for example). Each time the user clicks on the bu...
asked by 21.12.2017 / 18:48
1
answer

RowFilter.regexFilter does not filter columns of type Date in JTable

I have JTable with a TableModel custom, and I'm trying to run a search field using JTextField . However, columns of type Date and my class Cadastrante are not searched. In my TableModel , I overwritten...
asked by 08.04.2016 / 15:27
1
answer

How to create a dynamic JTable?

I have a JTable in my form, I wanted the size (number of rows and columns) of the table to be according to the number that the user type, how to do in java?     
asked by 04.06.2016 / 02:36
1
answer

Call JButon from one JFrame to another

I'm a beginner in this area, and I have a little problem, if you can help me, thank you. I have two Frames one is main (P) and the other (B) I call through a button. In the main screen I have two buttons register and access, when I run the ma...
asked by 27.10.2017 / 21:43
1
answer

Manage or customize the user session in Spring-managed JavaSE application

I would like to know how to manage or customize the user session in the JavaSE application (GUI / Desktop / SWING / thinClient) managed by SpringSecurity ??! For example, how could I configure TimeOut in a JavaSE application ??! Here's the 'appl...
asked by 10.11.2017 / 03:40
0
answers

Help with Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string:

I'm finalizing a code in java but I came across the above error and I can not solve it. When I mark the checkbox the fields are formatted, when I uncheck I get the exception above. Can anyone tell me where I'm going wrong: I'll leave the clas...
asked by 10.09.2017 / 01:39