JLabel not visible on Jpanel
问题 I'm working on a program in which I'd used a JTextArea , JButton , JLabel and JPanel . The logic I'd to implement is: user types a text in the given textArea and then click on the button . On button click I'd to retrieve the text from the textArea and create a label with the written text(as in textArea ) and show it on the panel . Everything I'd done previously is correct but the problem is with the label and panel . The label is not visible on the panel . The code snippets is: import java