There are a number of ways you could go about this. One might be to launch
a JOptionPane to get the users choice in scrollbar policy. Another might be
to add a submenu to the "Scroll Bars" menu item and list the three choices
for scrollbar policy, perhaps as JRadioButtonMenuItems. In
actionPerformed you could call a method that makes the desired/selected changes, perhaps
sending along a member variable flag to indicate the selection. And to
facilitate the changes you could move the declaration for the JScrollPane
into class scope, ie, make
scrolledText a member variable instead of
a local variable. In
java this might look like:
[ April 12, 2005: Message edited by: Craig Wood ]