If I create a button in a Applet, Named "Save" for example. How do I save the applet that is shown to the user. How Do I save the Data in the APplet, I cannot figure this out, I've been given the option to use printwriter, But I have no idea even how to start to use the print writer function. I need some help, Can anyone give me examples of how a save button would work?

I know code would be something that this for the button, Have no idea how to save though, Would I use action performed, Another Method, need some help, never have done this before. Thanks

private int button = new button "Save";



ActionPeformed method ?????