Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <pre><code>modelx.removeElementAt(newbiex.getSelectedRow()); </code></pre> <p>The TableModel doesn't have a method by this name so you must be creating a custom method. Make sure this method invokes <code>fireTableRowsDeleted(...)</code>. You can always look at the source code of the DefaultTableModel to see how this is done.</p> <pre><code>newbiex.repaint(); newbiex.revalidate(); newbiey.repaint(); ///table on another tab using modelx/// newbiey.revalidate();///table on another tab/// playerViewer.repaint(); playerViewer.revalidate(); </code></pre> <p>None of the above code is needed. If you fire the appropriate events from the model the table will automatically repaint itself.</p> <blockquote> <p>if I minimize the applet, then bring it up again, all the elements are now gone, but! the problem is that if I try to add new elements, they don't appear on ScrollPane even though the arraysize does grow when I add and shows my new elements when I println them. I've tried many things (you'll see with my repaints etc) but not sure what else i can do. thanks for any help :)</p> </blockquote> <p>I would say you have implemented your TableModel incorrectly. Try using the <code>DefaultTableModel</code>. It supports dynamic addition/removal of rows.</p> <p>Or you can check out <a href="http://tips4java.wordpress.com/2008/11/21/row-table-model/" rel="nofollow">Row Table Model</a>. You would only need to implement a couple of methods. The JButtonTableModel gives a simple example of how to do this.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload