i have added multiple component on JPanel & then i add JPanel on JFrame.
how to make window scrollable ?
so i can add more component at that frame or window .
Before adding your JPanel
, put in a JScrollPane
first:
JPanel panel = ...;
JScrollPane scroll = new JScrollPane(panel);
frame.add(scroll, ...);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With