ciao a tutti, ho un problema nell'inserire una scrollbar in una label per ora ho creato un jpanel per mettere lo sfondo principale del frame... a questo jpanel panel ho aggiunto un'altro jpanel panelT per il testo nel quale ho messo uno scrollbar con all'interno una label...
il risultato è questo:
Allegato 26015
sfondo bianco della scrollpane che non riesco a rendere trasparente e barra di scorrimento verticale non funzionante... qualcuno saprebbe spiegarmi dove ho sbagliato ?
Scusate forse la domanda stupida e grazie mille 
codice:
public class Frame1 {
private JFrame frame1;
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
Frame1 window = new Frame1();
window.frame1.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the application.
*/
public Frame1() {
initialize();
}
/**
* Initialize the contents of the frame.
*/
private void initialize() {
frame1 = new JFrame();
frame1.setResizable(false);
ImagePanel panel = new ImagePanel(new ImageIcon("Immagini\\SfondoFrame.png").getImage());
frame1.getContentPane().add(panel);
panel.setLayout(null);
JPanel panelT = new JPanel();
panelT.setBounds(101, 176, 1074, 485);
panelT.setBorder(null);
panelT.setOpaque(false);
panel.add(panelT);
JLabel lblTesto = new JLabel("<HTML>"testo"</HTML>");
lblTesto.setFont(new Font("Segoe UI", Font.PLAIN, 15));
lblTesto.setBounds(101, 176, 1074, 485);
lblTesto.setOpaque(false);
JScrollPane scrollPane = new JScrollPane(lblTesto,ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,
ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
scrollPane.setEnabled(false);
scrollPane.setBounds(96, 176, 1074, 485);
scrollPane.getViewport().setOpaque(false);
scrollPane.setBorder(null);
panelT.add(scrollPane);
frame1.setBounds(0, 0, 1285, 745 );
frame1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
}