annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/opt/bbmap-39.01-1/current/tax/TaxApp.java @ 68:5028fdace37b

planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author jpayne
date Tue, 18 Mar 2025 16:23:26 -0400
parents
children
rev   line source
jpayne@68 1 package tax;
jpayne@68 2
jpayne@68 3 import javax.swing.JButton;
jpayne@68 4 import javax.swing.JFrame;
jpayne@68 5 import javax.swing.JOptionPane;
jpayne@68 6
jpayne@68 7 public class TaxApp {
jpayne@68 8
jpayne@68 9 public static void main(final String[] args) {
jpayne@68 10 final JFrame parent = new JFrame();
jpayne@68 11 JButton button = new JButton();
jpayne@68 12
jpayne@68 13 button.setText("Button text");
jpayne@68 14 parent.add(button);
jpayne@68 15 parent.pack();
jpayne@68 16 parent.setVisible(true);
jpayne@68 17
jpayne@68 18 button.addActionListener(new java.awt.event.ActionListener() {
jpayne@68 19 @Override
jpayne@68 20 public void actionPerformed(java.awt.event.ActionEvent evt) {
jpayne@68 21 String name = JOptionPane.showInputDialog(parent,
jpayne@68 22 "Prompt", null);
jpayne@68 23 }
jpayne@68 24 });
jpayne@68 25 }
jpayne@68 26
jpayne@68 27 }