Questions tagged as 'swing'

2
answers

Update JTable using DefaultTableModel

I understand that the use of DefaultTableModel is almost abominable, but I used this template and now I have no time to change to a TableModel (which I have not learned yet), is there any way to update a table of a class in View , after a method...
asked by 14.06.2016 / 18:34
1
answer

Can I use Css within a Swing application?

Is it possible to style a java application made in Swing using css or javascript?     
asked by 19.12.2016 / 17:42
1
answer

Search in JTable does not return as expected

I have a bug that I do not understand. The idea is simple, I should type a value in a field and it returns me in the table, this happens, however when I click on the value found in the search it selects me the first value inside the table impo...
asked by 13.09.2017 / 04:03
1
answer

How do I clean a JTable?

I'm using JPA to populate my table which is located at Jframe . Through JPA, I make a selection in my bank to find all names that have part of the name I wrote, for example, if the entry is "m", all people with a name beginning with "m"...
asked by 20.06.2017 / 19:48
1
answer

How to run an application in multiple threads?

I'm developing an application with interface made by Swing. The purpose of the application is to simulate a computer network in which I will monitor using the InetAddress implementation. Well, I created my interface, where the user regist...
asked by 25.08.2016 / 15:15
1
answer

How to display query result in a JtextArea within a JtextArea

How do I display data from a query in a database within a JtextArea? I have done all my Listing method (which is in the class CarroDAO), and I want it to show the data inside the textArea (which is in the Screen class) follow the code: DA...
asked by 02.11.2017 / 18:20
1
answer

Error converting value to JTable [closed]

I'm having an error passing value formatted to JTable , if anyone can help, thank you very much. This error only happens when I format the number, I would like to know how I can correct it. Code: private void calcularButtonActi...
asked by 23.08.2017 / 20:19
1
answer

Jtable only accept float type numbers in your cell [closed]

I am using this code to accept only numbers in the jtable cell, but I would like to know how to accept . as well. Can someone help me? I'm using java language on the netbeans platform. TableColumn col = tabela.getColumnModel().getCol...
asked by 30.06.2017 / 16:16
1
answer

Error when setting template in JTable

So I was developing a frame that received a table from the database, I used the same scope of the function several times and it worked perfectly, I just modified what was necessary to generate the table the way I wanted it in that case and starte...
asked by 06.12.2016 / 20:34
1
answer

Format measurement field with JFormattedTextField [duplicate]

I'm trying to create a field to take measurements, I wanted to apply a mask so that it would look like this: Thefieldalreadystartswith0.00,thenifyouentervalueitwillkeeptheformatting.AndwhenIputthevaluesbackinthefield,itdidnotlosetheformatt...
asked by 07.08.2017 / 01:36