My JTable does not save the information when there is focus on the cell.
In order to effectively save the information I need to manually focus and then click the "Register" button.
How can I make this process automatic, every time I...
I need to do something like this:
AtthispointIhaveatablelikeImage1,butIwantedtocreateatablelikeImage2.HowcanIcreatesomethinglikethis?Anyideas?ThemostsimilarexampleIsawwas: link
[EDIT]
To create the multi-lines I used this class "Attr...
I have a table and in a Jpanel on it I created a textFields and combobox with the intention of using them as a filter. The method:
tableRowSorter.setRowFilter(RowFilter.regexFilter("(?i)" + busca));
Does he expect a string as a filter?
If t...
I have an (abstract table model) table and would like to center the column headings.
I've tried the following:
DefaultTableCellRenderer centralizado = new DefaultTableCellRenderer();
centralizado.setHorizontalAlignment(SwingConstant...
I'm trying to change the background color of header of JTable .
With this code I was able to:
public Principal() throws UnsupportedLookAndFeelException {
initComponents();
jTable.getTableHeader().setDefaultRend...
What I'm doing is a little longer, so I'll shorten the problem with a more objective example:
I have a registration form and created a modal Jdialog with the fields that I want to search. When I search in JDialog I would like to filter the in...
I have a JFrame , where inside it has a JTable and a JButton (Change) that calls another JFrame. In this other JFrame, a change of data is performed according to the row selected in the table and saved in the DB when clicking...
I would like to know how to set the color of the background of multiple rows in the table. In the code below it simply directs the background in just one line, that is, in the last element of the vector. The idea is to pass a list of strings, an...
My problem is this:
I have JTable with several populated columns with data pulled from my database. Some of these columns are time values, for example, 0834 is pulled from the database and I would like it to be displayed 08:34...
I'm starting to create an interface in Java, an example I'm trying to do is to have a form with textField nome and email , and clicking the Enviar button will% for my textField , but I am not able to manipulate my ta...