Questions tagged as 'jtable'

1
answer

Color jTable lines ready [closed]

I have a code and need to make some improvements, but I can not insert them correctly, I'm a beginner and I have some difficulties. The software has: a class BeansClient with get and set; a class BeansTabela; AbstractTableModel construc...
asked by 23.02.2017 / 13:30
1
answer

Leave only one column of the editable JTable

I have my data model that I did for testing as the code below shows: public class ModeloDados { private String nome; private String sobreNome; private String telefone; public ModeloDados(String nome, String sN, String fn){...
asked by 21.07.2016 / 15:00
1
answer

ScrollBar in a JTable

I added a JTable that updates the data as the client is typing in a JTextField field. However, when the client search returns multiple rows, I would like JTable to have a scroll so that the client can see all the results....
asked by 23.04.2016 / 19:07
1
answer

Mark / Unmark a line in JTable by changing its color

Good morning everyone! I'm new here in the forum, I apologize if I opened this topic in the wrong place. Hi, I'm trying to create a Java Swing with the JTable component. I've tried a few things, and nothing that gives me a light! I would l...
asked by 12.01.2016 / 13:11
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
0
answers

Perform jTable search

I'm doing a search on my jTable , but when I search, jTable only displays content similar to my search. IwouldliketodoasearchonjTablewithoutinhibitingallremainingcontent,myideawouldbeforjTabletoperformasortorderbasedonthesearchy...
asked by 02.09.2018 / 19:11
1
answer

How to change the text color of a column of a JTable

I have a form for payment of installments, and this form has a table where I show both the installments paid and those that still had to be paid. TopopularthisJTable,ImakeaqueryinthedatabaseandIbringthenecessaryinformation.publicvoidpreenche...
asked by 27.06.2016 / 20:43
0
answers

I can not display custom JTable inside the [duplicate] frame

I created a custom table model but it does not load in my frame. Could someone help me? public class PessoaJTable extends JTable{ /** * */ private static final long serialVersionUID = 3182466937648479844L; private PessoaTableModel tabl...
asked by 13.07.2018 / 01:21
0
answers

How to select an entire row in JTable [duplicate]

Hello, I'm a beginner in programming and I was studying Java. The idea was to create a program, which to add in JTable the name of a product, value and quantity. Get the total value of the purchase (quantity * value). But I can not select a wh...
asked by 19.06.2018 / 09:26
1
answer

Return database search data in JTable

I'm developing an interface that should return a JTable of the values of a mysql table. I developed the following method: public class Teste extends javax.swing.JFrame { private JTable table; DefaultTableModel modelo = new Defa...
asked by 27.05.2018 / 00:45