import javax.swing.*; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import java.awt.*; class LoginDialog extends JDialog implements ActionListener { JLabel labelName; JLabel labelPass; JTextField textName; JPasswordField passField; JButton okButton; JButton cancelButton; JDialog dialog; public LoginDialog() { JPanel panelOne = new JPanel(); labelName = new JLabel("Name")
![Java、Swing、Twitter4jを使ってあなただけのTwitterアプリを作成しよう](https://cdn-ak-scissors.b.st-hatena.com/image/square/6317cbcf3d7eff7354e1d8809e4dedbcfdcab012/height=288;version=1;width=512/https%3A%2F%2Fcodezine.jp%2Fstatic%2Fimages%2Farticle%2F4409%2F4409_arena.png)