Hi! I'm having trouble adding JTextArea in front of/overlaying an image. When text is entered into the TextField, and the Update button is clicked, that text should appear in front of the background image. However, whenever I try to add it to the frame positioning it as BorderLayout.CENTER/TOP etc. the text is added above the image. When I have tried frame.add(textArea), the whole image won't display.
This is my code:
posted 1 year ago
To add to this, the line:
Has the text overlaying the image as I would like, however it isn't the user's input text from the JTextArea- how do I access this?