Let's get started with a GUI application!
- Login to your Repl.It account.
- Click on:
Languages
- In the
GUI Development
section choose: Java Swing: A Java GUI widget toolkit
- Click the
pencil
icon next to your repl name.
- In the
Default name:
input box type: SimpleButtons
- Delete all the lines of code provided as an example.
- Copy the
SimpleButtons.java
Template (Java) code (below)
- Paste that code into your new SimpleButtons class in the editor
- Change the
@author put-your-username-here
SimpleButtons.java
Template (Java)
SimpleButtons
Class Output