I've been going over this code for ages, and have no idea how to get my JProgressBar to actually appear on the GUI. When I run the app, the JLabel appears in the JPanel, but the JProgressBar does not, how do I fix this?
(note: the JProgressBar does work and updates, it just doesn't appear on the GUI)
jPanel9.setLayout(new BorderLayout());
jPanel9.add(new JLabel(theTask.getName() + theTask.getDes()), BorderLayout.NORTH);
JProgressBar progress = new JProgressBar(0, theTask.getMax());
progress.setStringPainted(true);
progress.setBorderPainted(true);
progress.setValue(theTask.getProgress());
progress.setString(theTask.getProgress() + "/" + progress.getMaximum());
progress.setPreferredSize(new Dimension(100,100));
progress.setVisible(true);
jPanel9.add(progress, BorderLayout.SOUTH);
jPanel9.revalidate();
jPanel9.repaint();
System.out.println(progress.getString());
System.out.println("Progress: " + theTask.getProgress());
System.out.println("Max: " + theTask.getMax());