Mercurial > repos > rliterman > csp2
comparison 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 |
comparison
equal
deleted
inserted
replaced
67:0e9998148a16 | 68:5028fdace37b |
---|---|
1 package tax; | |
2 | |
3 import javax.swing.JButton; | |
4 import javax.swing.JFrame; | |
5 import javax.swing.JOptionPane; | |
6 | |
7 public class TaxApp { | |
8 | |
9 public static void main(final String[] args) { | |
10 final JFrame parent = new JFrame(); | |
11 JButton button = new JButton(); | |
12 | |
13 button.setText("Button text"); | |
14 parent.add(button); | |
15 parent.pack(); | |
16 parent.setVisible(true); | |
17 | |
18 button.addActionListener(new java.awt.event.ActionListener() { | |
19 @Override | |
20 public void actionPerformed(java.awt.event.ActionEvent evt) { | |
21 String name = JOptionPane.showInputDialog(parent, | |
22 "Prompt", null); | |
23 } | |
24 }); | |
25 } | |
26 | |
27 } |