So I want to print the values of my JLabel, JTextField, and JTable within the JPanel and not the JPanel itself.
What I always search always result in printing the whole Panel which includes buttons that is unnecessary: image
I did find something quite useful that prints just the JTable.
it outputs the following image:
Here is my current code which just outputs the JTable:
try {
jTable3.print(JTable.PrintMode.NORMAL);
}
catch (java.awt.print.PrinterException e)
{
JOptionPane.showMessageDialog(null, e);
}
My question is how can I print the values of my JLabel, JTextField and JTable within the JPanel? I'm also open to other suggestions.
Thank you very much