Member Avatar

I have a table that outputs certain rows.But they are from different groups and the different groups are stored in different vectors.At present i am adding all the rows using the following code : [CODE] m_vector.addAll(match1); m_vector.addAll(match2); .. m_vector.addAll(matchn); [/CODE] Here match 1 to match n are the different sections.I Want to insert rows in between these statements that act as separators of these sections. Now I want to add a separator between different sections (a group of rows) of my table. And I want to be able to put text in it too, to describe what the different sections …

Member Avatar
0
4
Member Avatar

Hi All! I have a table that there is a combo box inside the table. For example, the combo box consist of item codes. And then, whenever user choose item from combo box, the next column inside the table will show name of the item. Here is my example coding: [CODE] sql = "SELECT desc_bar FROM inv_item WHERE kode_bar = '" + cboBarang.getSelectedItem().toString() + "'"; stmt = Koneksi.getConnection().createStatement(); rs = stmt.executeQuery(sql); if (rs.last()){ tabel.setValueAt(rs.getString(1), 0, 1); } else { tabel.setValueAt("", 0, 1); } [/CODE] My question is how if there is many rows in a table. I tried to use …

Member Avatar
0
7
Member Avatar

Hello, I would like to be able to add 'n' columns programmatically and SET THEIR TITLE as I add them. I have 2 questions: 1. How can I change the title? (not by seting a model to my table but just 'changing a property' - if possible)? 2. Is there an easiest way of adding columns than what I did below? (e.g.: in C# I find very easy methods of adding columns at the end of a listView or after a column by index). [code] //'txt_n' is a textfield defining the number of columns I want to add when I …

Member Avatar
0
5

The End.