The JTable
doesn't appear in the form.
This is a portion of my code:
table = new JTable(tasks, names);
table.setBounds(10, 43, 408, 455);
contentPane.add(table);
JScrollPane scroll = new JScrollPane(table,JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
contentPane.add(scroll);
But when I removed the JScrollPane
, it appears.
EDIT: I used AbsoluteLayout
in Eclipse's drag and drop function.