Commit b6279dca authored by SAPONE Alann's avatar SAPONE Alann

new dialog package for help section

parent 6c77a529
package org.cnrs.lam.dis.etc.ui.swing.help;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
public class ContributionDialog extends JDialog implements ActionListener {
private static final long serialVersionUID = 690722433853815375L;
private JLabel text = new JLabel();
private JButton okButton = new JButton("OK");
public ContributionDialog(JFrame parent) {
super(parent, "Contributions", true);
JPanel messagePane = new JPanel();
text.setText("Text");
messagePane.add(text);
messagePane.add(okButton);
getContentPane().add(messagePane);
okButton.addActionListener(this);
pack();
setLocationRelativeTo(parent);
setDefaultCloseOperation(JDialog.HIDE_ON_CLOSE);
}
public void actionPerformed(ActionEvent e) {
setVisible(false);
dispose();
}
}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment