import java.awt.*; import javax.swing.*; public class SimpleButtonExample extends JFrame { public SimpleButtonExample() { JButton button = new JButton("Click me!"); add(button); setSize(200, 100); setVisible(true); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); } public static void main(String[] args) { new SimpleButtonExample(); } }In this example, we import the java.awt and javax.swing packages which contain the necessary classes for creating a JFrame and JButton component. Inside the constructor of the SimpleButtonExample class, we create a JButton instance with a label "Click me!" using the JButton constructor. Then we add the button to the JFrame instance using the add() method. Lastly, we set the frame size, make it visible, and set the default close operation. When we compile and run this code, a small window will appear with a button that says "Click me!". Overall, the java.awt package library provides a wide range of useful classes for creating graphical user interfaces, and the JButton class with its setText() method is a simple way to create interactive buttons for user interaction.