Java Programming
CIS279
Tori Basford
tori@bly.net
Assignment(s):
Homework 2, Part a (JScrollPanes)
Exercise(s):
More about the String class:
The String class contains a variety of object methods that each String object can use.
More on File Handling:
The FileReader.fr() returns an integer value that is the character code.
More Swing Components:
JTextArea is like a JLabel, but it allows multiple lines. You can set the size of it by passing it ints for columns and rows when it is initialized (ie, JTextArea jta = new JTextArea(20,80)).
A JScrollPane is like a Panel, but you put one object in it. The JScrollPane will then allow you to scroll around if the object is bigger than the pane. The object is specified at initialization (ie JScrollPane jsp = new JScrollPane(jta);).