Version 1.0
This commit is contained in:
parent
5cf5d2d938
commit
544ae7ce43
149 changed files with 39001 additions and 0 deletions
111
src/morse/MissingCode.java
Normal file
111
src/morse/MissingCode.java
Normal file
|
@ -0,0 +1,111 @@
|
|||
/*
|
||||
* This is a programm for Morse.
|
||||
*
|
||||
* Marcel Michael Kapfer
|
||||
*
|
||||
* GPL v3.0
|
||||
*
|
||||
* 2014
|
||||
*
|
||||
* Version: 1.0.0
|
||||
*
|
||||
*/
|
||||
|
||||
package morse;
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.FlowLayout;
|
||||
|
||||
import javax.swing.JButton;
|
||||
import javax.swing.JDialog;
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.border.EmptyBorder;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.ActionEvent;
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.border.TitledBorder;
|
||||
|
||||
public class MissingCode extends JDialog {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
private final JPanel contentPanel = new JPanel();
|
||||
|
||||
/**
|
||||
* Launch the application.
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
try {
|
||||
MissingCode dialog = new MissingCode();
|
||||
dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
|
||||
dialog.setVisible(true);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create the dialog.
|
||||
*/
|
||||
public MissingCode() {
|
||||
setUndecorated(true);
|
||||
setResizable(false);
|
||||
setBounds(100, 100, 450, 263);
|
||||
getContentPane().setLayout(new BorderLayout());
|
||||
contentPanel.setBorder(new EmptyBorder(0, 0, 0, 0));
|
||||
getContentPane().add(contentPanel, BorderLayout.CENTER);
|
||||
contentPanel.setLayout(null);
|
||||
|
||||
JPanel panel = new JPanel();
|
||||
panel.setBorder(new TitledBorder(null, "Missing Code", TitledBorder.LEADING, TitledBorder.TOP, null, null));
|
||||
panel.setBounds(5, 17, 436, 199);
|
||||
contentPanel.add(panel);
|
||||
panel.setLayout(null);
|
||||
|
||||
JLabel lblIntro = new JLabel("If you found out that a code is missing,");
|
||||
lblIntro.setBounds(5, 17, 419, 15);
|
||||
panel.add(lblIntro);
|
||||
|
||||
JLabel lblAddress = new JLabel("marcelmichaelkapfer@yahoo.co.nz");
|
||||
lblAddress.setBounds(5, 71, 419, 15);
|
||||
panel.add(lblAddress);
|
||||
|
||||
JLabel lblTitleIntro = new JLabel("with the title");
|
||||
lblTitleIntro.setBounds(5, 98, 92, 15);
|
||||
panel.add(lblTitleIntro);
|
||||
|
||||
JLabel lblTitle = new JLabel("Missing Code in Morse Version [your program version]");
|
||||
lblTitle.setBounds(5, 125, 419, 15);
|
||||
panel.add(lblTitle);
|
||||
|
||||
JLabel lblThanks = new JLabel("Thank you very much");
|
||||
lblThanks.setBounds(5, 179, 148, 15);
|
||||
panel.add(lblThanks);
|
||||
|
||||
JLabel lblIntroTwo = new JLabel("please write me a mail to");
|
||||
lblIntroTwo.setBounds(5, 44, 179, 15);
|
||||
panel.add(lblIntroTwo);
|
||||
|
||||
JLabel lblMissingCode = new JLabel("and tell me which code is missing.");
|
||||
lblMissingCode.setBounds(5, 152, 316, 15);
|
||||
panel.add(lblMissingCode);
|
||||
{
|
||||
JPanel buttonPane = new JPanel();
|
||||
buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
|
||||
getContentPane().add(buttonPane, BorderLayout.SOUTH);
|
||||
{
|
||||
JButton cancelButton = new JButton("Cancel");
|
||||
cancelButton.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
setVisible(false);
|
||||
dispose();
|
||||
}
|
||||
});
|
||||
cancelButton.setActionCommand("Cancel");
|
||||
buttonPane.add(cancelButton);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in a new issue