How to add JScrolPane to a JLayeredPane?
I have this JFrame that contains a JTabbedPane and instead the JTabbedPane is a JLayeredPane and another JScrollPane containing a JTable.
I would like to add a JScrollPane to the JLayeredPane but my attempts seemed not to work. I have already tried added the JLayeredPane to a JPanel and initialized the size of the JPanel with setSize().
But on the other hand, if the JFrame only contains the JScrollPane containing the JLayeredPane, it work.
How could I solve this?