Questions tagged as 'jtable'

1
answer

How to clean JTable cell when starting typing?

How can I clear the cell in JTable when starting to type in a like cell in excel. For example, I position the cursor in a cell and when I start typing the cell goes into editing mode, at this moment I need a listener that when entering...
asked by 19.10.2015 / 16:47
1
answer

How to update JTable used data from a database? [closed]

I created in NetBeans a system of customer registration and movie registration (simulating a video store). I have 3 Java files: Rental (main), Client and Movie. In Client and Movie, I connect to the database, enter the values, everything cute. T...
asked by 13.05.2015 / 16:58
1
answer

Popular combobox within the jtable with database, how to proceed?

Currently I populate a normal combobox this way: this.CadperfilLinha.removeAllItems(); try { Class.forName(Auxiliar.AcessoBanco.getDriver()); Connection con = DriverManager.getConnection(Auxiliar.AcessoBanco.getUrl(), Auxiliar.AcessoBa...
asked by 08.01.2018 / 13:38
1
answer

Jtable currency format

I'm making a coin-shaped CellRender. I put 13 columns in a jtable, one has the recipes (Salary, 13th salary, Extra hour) .. and outas 12 with the months. every month the person will type this information and then I will add another jtable with t...
asked by 13.09.2017 / 16:59
1
answer

How to use a selection setback in custom renderer?

I'm trying to use a cell render, so when I display monetary data, it does formatting. However, when I apply rendering to a particular column, the focus in that column does not have the background of the rest of the row. To solve this, I thoug...
asked by 05.11.2016 / 15:36
1
answer

Delete only rows with checked checkbox in a JTable

How do I delete a row from a% w / o of the lines that are marked in a CheckBox that is in a table cell? I'm using JTable . The code I was able to create, just delete some of the selected records, there is always some left over. I cre...
asked by 01.11.2018 / 19:24
1
answer

How to trigger a method when finished editing a column of type Integer in JTable

I need to call a method that shows the user a message. This method must be called just as the user finishes editing a JTable column of type Integer and the user has not entered an integer. That is, the method should be called the moment th...
asked by 18.05.2018 / 22:04
1
answer

Copy JTable column to Clipboard?

Here I have a table template with 4 columns and several filled lines that I get in the database. I would like to create an Action button that copies columns 2 and 3 at once to the clipboard, so you can paste, for example, into an Excel or other...
asked by 29.01.2018 / 11:37
1
answer

Error when trying to implement JTextArea in JTable

I'm trying to use this JTextArea in some columns of my JTable , but it's giving something wrong. I know it's wrong, but I'm using DefaultTableModel . public class TextAreaCellRenderer extends JTextArea implements TableCellRe...
asked by 10.01.2018 / 12:48
1
answer

Add financial balance with Jtable

I'm trying to develop a Java sales control program, but I'm having a problem scheduling Jtable's balance. As you can see in the image below, the balance is being updated per line. However, since I declare the initial balance equal to 0, I nee...
asked by 20.05.2017 / 18:10