How can I add a scrollbar to my JFrame so that it can contain more than one page?

Sandip Chitale

f = new JFrame();
sp = new JScrollPane();

// now add you components to sp
// For example -
sp.setViewportView(new JTree());

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact