Avoir une image en fond sous un JScrollPane
Bonsoir,
J'ai un JTextarea opaque -> (textArea = new JTextArea(1,5))
J'ai associé à un JFrame une image en fond. -> (frame = new JFrame) et frame.setContentPane(new MyPanel())
nb: MyPanel est une méthode pour afficher une image
Quand j'associe le JFrame et le JTextarea, je vois l'image en fond.
-> (frame.add(textArea))
J'ai ajouté au JTextarea, un JScrollPane (opaque lui aussi)
-> (ascenseur = new JScrollPane(textArea))
Quand j'associe ce JTextarea (avec son jScrollPane) au JFrame, j'ai une fenetre blanche. (normal j'ai pas associé l'image au JFrame)
-> (frame.setContentPane(ascenseur)
Commen avoir le JFrame avec son image de fond + JTextArea (avec son JScrollPane) ?
merci pour les conseils