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

Invalid characters from a MaskFormatter

So, guys, I have a window where I need to pass a validation of null fields of several JTextField and a JFormattedTextField , where the latter has a mask for phone numbers "(##)####-####" . The fact is that even though I do not...
asked by 26.04.2016 / 20:30
0
answers

Add JComponents to a JDialog / JFrame

So I have three JLabel and JTextField to add in one panel, and two JButton and one JTable to add in another panel, so that one is underneath the other. I create a more generic panel ( pnlPrincipal ) to set its p...
asked by 13.04.2016 / 01:54
2
answers

Select empty data

My code returns all users, verifying that they have paid the last month, however I connect two tables, one of all the clients with the registered payment table, I want it to print in jTable even if it does not have left join seems...
asked by 27.04.2016 / 18:21
0
answers

Is it possible to create fields in JasperReports report without setting them in advance?

Hello, I have a jTable where the user defines which fields will appear in it, so I would need several JasperReports reports, one for each possible combination (chosen through jRadioButtons ). Is there a way to "send" the report fie...
asked by 08.04.2016 / 04:36
0
answers

Implement action for save button

I'm new to programming and built the image GUI from an example from the college book, but the save button has no functionality. And I ask you to implement the button to save some code that will save the data entered in a table. //mainclassim...
asked by 07.03.2016 / 04:30
0
answers

How to use JProgressBar with reads of files in excel

I have a method that receives a file of type Excel, and a Jtable. This method reads the file and throws the data contained within it into the jTable. import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; im...
asked by 10.03.2016 / 18:24
0
answers

SwingWorker does not enter the PropertyChangeListener

I created a swingworker to display a JDialog while the code is still waiting for the user to put their finger on the fingerprint reader Everything worked fine, visible as visible inside the PropertyChangeListener and the digital picking metho...
asked by 14.01.2016 / 13:36
1
answer

How to change the size of a JFilechooser?

Hello, I would like to know if anyone knows any way to increase the size of a JFileChooser like this: I would like it to fill up all the space left over on the screen, to make it easier to locate the files. Thank you in advance, Good Night...
asked by 01.12.2015 / 23:47
1
answer

how to style the selected JTextPane text?

What I want is to get the selected text from JTextPane and edit it, for example: change font color, size, and family. The problem is that once I change the selected text once, it does not change anymore. My code is that, it's just changing the c...
asked by 17.10.2015 / 08:20