Component Commands
Prev | Chapter 16. BeanShell Commands | Next

## Component Commands

- `JFrame frame(`Component frame`)`;

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

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

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

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

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

- `Font setFont(`Component comp, int ptsize`)`;

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

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