are the menuBar JMenuBar menuBar = new JMenuBar(); f.setJMenuBar(menuBar); // create the scrollable desktop instance and add it to the JFrame JScrollDesktopPane scrollableDesktop = new JScrollDesktopPane(menuBar); f.getContentPane().add(scrollableDesktop); f.setVisible(true); // add a frame to the scrollable desktop JPanel frameContents = new JPanel(); frameContents.add( new JLabel("Hello and welcome to JScrollDesktopPane.")); scrollableDesktop.add(frameContents); JScrollDesktopPane has been tested under Java 2 JDK versions 1.3.1-b24 on Linux and jdk1.3.0_02 on Windows and Intel Solaris. As of March 14, 2003 it has also been tested on JDK 1.4.1 for Windows.
@author
Tom Tessier
@version 1.0 12-Aug-2001