Add scroll in window

Asked

Viewed 104 times

-1

I created a window that was Width 360 x Height 800. Only 800 height can not be seen on the monitor.

How do I add a scroll in the window?

1 answer

0


Make a JPanel scrolling using JSCrollPane in this way:

JPanel container = new JPanel();
JScrollPane scrPane = new JScrollPane(container);
add(scrPane);

Details

  • @diegofm why don’t you add the answer? I don’t understand.

  • Scrollpane even. Solved Thanks!!

  • @Junior Need, run along and we’ll help you any way we can. Hugs.

  • @diegofm Got it! You signaled as wide?!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.