print button in java swing.?

Create a button, and add it to the JPanel or whatever is holding everything. Add an item that contains an Action routine to the button. In the Action routine, do the printing.
 
Create a button, and add it to the JPanel or whatever is holding everything. Add an item that contains an Action routine to the button. In the Action routine, do the printing.
 
Back
Top