Component Commands
Prev | Chapter 16. BeanShell Commands | Next

## Component Commands

- `JFrame frame(` |  | frame`)`;
  |  | frame`)`;

  Displays the component in a top-level `JFrame`, centered and packed. Returns the `JFrame` object.

- `Object load(` |  | filename`)`;
  |  | filename`)`;

  Loads and returns a serialized Java object from `filename`.

- `void save(` |  | component,
  |  | component,
  |  | filename`)`;

  Saves `component` in serialized form to `filename`.

- `Font setFont(` |  | comp,
  |  | comp,
  |  | ptsize`)`;

  Set the font size of `component` to `ptsize` and returns the new font.

Prev | Up | Next
File Management Commands | Home | Resource Management Commands