FileDocCategorySizeDatePackage
ViewFileFrame.javaAPI DocExample2518Thu Nov 08 00:22:32 GMT 2001com.ora.rmibook.chapter1

ViewFileFrame

public class ViewFileFrame extends ExitingFrame

Fields Summary
private FileTextField
_fileTextField
private JTextArea
_fileViewingArea
Constructors Summary
Methods Summary
protected voidbuildGUI()

        _fileTextField = new FileTextField(new ViewFileAction());
        _fileViewingArea = new JTextArea();
        JScrollPane scrollPaneAroundTextArea = new JScrollPane(_fileViewingArea);

        scrollPaneAroundTextArea.setBorder(BorderFactory.createLoweredBevelBorder());
        JPanel newContentPane = new JPanel(new BorderLayout());

        newContentPane.add(_fileTextField, BorderLayout.NORTH);
        newContentPane.add(scrollPaneAroundTextArea, BorderLayout.CENTER);
        setContentPane(newContentPane);
        setSize(250, 300);