Questions tagged as 'swing'

1
answer

Redirect output from System.out.println to JTextArea

I'm having trouble making this redirect, let's explain. I have a class called Engine.java , this class is responsible for doing my processing and it has all System.out.prints of the process, the problem is that now I created a windo...
asked by 16.02.2016 / 20:46
2
answers

JTextArea gets append but does not display text

I'm having trouble using a JTextArea. I need every time something happens on my system, an info is added in real time. However, it does not appear anything. I've tried to use setText() and append() , but neither worked. However,...
asked by 11.07.2014 / 18:28
1
answer

The code generated by the GUI builder of netbeans affects application performance?

Netbeans has a user interface creation tool using swing a>, which greatly facilitates the development of desktop applications, however, the tool seems to create numerous lines of code even for something simple many times. Example: Thi...
asked by 28.01.2016 / 10:46
1
answer

JTable getValueAt () behaving differently than expected

I have a JFrame where there is a JTable that displays some data. When the user selects some records and clicks a certain button, these selected records must be deleted. When only one record is selected, everything works perfectly, but problem...
asked by 19.11.2016 / 02:22
2
answers

How to create JButton in "square" format?

Is it possible to create JButton in a "square" format, without the rounded corners when they are already in JFrame ? Does anyone have an example? I do not use any specific laf, but the netbeans default. The JButtons is nothin...
asked by 07.09.2015 / 16:20
1
answer

How do I get an image of the computer inside a java application?

I have a registration and in this register I would like the user to choose an image to represent him. Otherwise, a default image would appear. That is, in a certain part of the registry would have a button that when clicked open the Windows m...
asked by 26.06.2015 / 06:25
2
answers

How to close a JDialog after finishing executing a Thread?

I have a configuration window that opens on the first run of the application I'm developing. After typing the directories that the application will run the user clicks save, some tests are run and finally a Thread runs. I would like to have t...
asked by 15.04.2014 / 18:51
1
answer

JComboBox does not allow item exchange

I have a JComboBox that allows to select only the first item clicked, in case I want to change the selection it does not allow. No jPanel has two other combos that are identical with what has the behavior explained, but they wor...
asked by 09.01.2014 / 15:05
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

Convert String from a JTextField to Calendar

How to perform input conversion through Swing's JTextField via JDBC? public class DadosPessoais { private Calendar dataNascimento; public Calendar getDataNascimento() { return dataNascimento; } public void setDataNasc...
asked by 12.06.2016 / 03:30