-1

I have to create the desktop application for larger screen size. But now I want to put the same application in smaller screen system.

How to set the scrollbar in JFrame?

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433

1 Answers1

3

Add the GUI to a JScrollPane before adding the scroll pane to the content-pane. See How to Use Scroll Panes for more details & working examples.

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
  • Note there are many other possibilities to reduce the size of the GUI, but we would need more details of what is in the GUI and how those controls relate to the work-flow as seen by the user. – Andrew Thompson Oct 18 '12 at 06:12