Package renamed to meet the java name conventions

This commit is contained in:
mmk2410 2015-01-02 19:39:44 +01:00
parent ee6b497301
commit f147ec1d72
7 changed files with 7 additions and 18 deletions

View file

@ -0,0 +1,124 @@
/*
* This is a programm for Morse.
*
* Marcel Michael Kapfer
*
* GPL v3.0
*
* 2014
*
* Version: 1.0.0
*
*/
package de.marcel_kapfer.c.morseconverter;
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 About extends JDialog {
/**
*
*/
private static final long serialVersionUID = 1L;
private final JPanel contentPanel = new JPanel();
/**
* Launch the application.
*/
public static void main(String[] args) {
try {
About dialog = new About();
dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
dialog.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
/**
* Create the dialog.
*/
public About() {
setResizable(false);
setUndecorated(true);
setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
setBounds(100, 100, 450, 223);
getContentPane().setLayout(new BorderLayout());
contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
getContentPane().add(contentPanel, BorderLayout.CENTER);
contentPanel.setLayout(null);
JPanel panel = new JPanel();
panel.setBorder(new TitledBorder(null, "About", TitledBorder.LEADING, TitledBorder.TOP, null, null));
panel.setBounds(5, 17, 436, 148);
contentPanel.add(panel);
panel.setLayout(null);
JLabel lblDeveloper = new JLabel("Marcel Kapfer");
lblDeveloper.setBounds(124, 17, 307, 15);
panel.add(lblDeveloper);
JLabel lblDev = new JLabel("Developer");
lblDev.setBounds(12, 17, 100, 15);
panel.add(lblDev);
JLabel lblWeb = new JLabel("Website");
lblWeb.setBounds(12, 44, 100, 15);
panel.add(lblWeb);
JLabel lblCont = new JLabel("Contact");
lblCont.setBounds(12, 71, 100, 15);
panel.add(lblCont);
JLabel lblVer = new JLabel("Version");
lblVer.setBounds(12, 98, 100, 15);
panel.add(lblVer);
JLabel lblLic = new JLabel("License");
lblLic.setBounds(12, 125, 100, 15);
panel.add(lblLic);
JLabel lblWebsite = new JLabel("marcel-kapfer.de/projects/morse");
lblWebsite.setBounds(124, 44, 307, 15);
panel.add(lblWebsite);
JLabel lblContact = new JLabel("marcelmichaelkapfer@yahoo.co.nz");
lblContact.setBounds(124, 71, 307, 15);
panel.add(lblContact);
JLabel lblVersion = new JLabel("1.0.0");
lblVersion.setBounds(124, 98, 307, 15);
panel.add(lblVersion);
JLabel lblLicense = new JLabel("GNU v3.0");
lblLicense.setBounds(124, 125, 307, 15);
panel.add(lblLicense);
{
JPanel buttonPane = new JPanel();
buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
getContentPane().add(buttonPane, BorderLayout.SOUTH);
{
JButton cancelButton = new JButton("Close");
cancelButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
setVisible(false);
dispose();
}
});
cancelButton.setActionCommand("Cancel");
buttonPane.add(cancelButton);
}
}
}
}

View file

@ -0,0 +1,111 @@
/*
* This is a programm for Morse.
*
* Marcel Michael Kapfer
*
* GPL v3.0
*
* 2014
*
* Version: 1.0.0
*
*/
package de.marcel_kapfer.c.morseconverter;
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 Bug extends JDialog {
/**
*
*/
private static final long serialVersionUID = 1L;
private final JPanel contentPanel = new JPanel();
/**
* Launch the application.
*/
public static void main(String[] args) {
try {
Bug dialog = new Bug();
dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
dialog.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
/**
* Create the dialog.
*/
public Bug() {
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, "Bug", 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 a bug, please write me a mail to");
lblIntro.setBounds(5, 17, 325, 15);
panel.add(lblIntro);
JLabel lblAddress = new JLabel("marcelmichaelkapfer@yahoo.co.nz");
lblAddress.setBounds(5, 44, 419, 15);
panel.add(lblAddress);
JLabel lblTitleIntro = new JLabel("with the title");
lblTitleIntro.setBounds(5, 71, 92, 15);
panel.add(lblTitleIntro);
JLabel lblTitle = new JLabel("Bug in Morse Version [your program version]");
lblTitle.setBounds(5, 98, 316, 15);
panel.add(lblTitle);
JLabel lblDescription = new JLabel("a short description of the bug");
lblDescription.setBounds(5, 125, 426, 15);
panel.add(lblDescription);
JLabel lblReproduce = new JLabel("and how to re-produce the bug.");
lblReproduce.setBounds(5, 152, 325, 15);
panel.add(lblReproduce);
JLabel lblThanks = new JLabel("Thank you very much");
lblThanks.setBounds(5, 179, 148, 15);
panel.add(lblThanks);
{
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);
}
}
}
}

View file

@ -0,0 +1,95 @@
/*
* This is a programm for Morse.
*
* Marcel Michael Kapfer
*
* GPL v3.0
*
* 2014
*
* Version: 1.0.0
*
*/
package de.marcel_kapfer.c.morseconverter;
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 javax.swing.JLabel;
import javax.swing.border.TitledBorder;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
public class HowTo extends JDialog {
/**
*
*/
private static final long serialVersionUID = 1L;
private final JPanel contentPanel = new JPanel();
/**
* Launch the application.
*/
public static void main(String[] args) {
try {
HowTo dialog = new HowTo();
dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
dialog.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
/**
* Create the dialog.
*/
public HowTo() {
setTitle("How to");
setUndecorated(true);
setBounds(100, 100, 474, 128);
getContentPane().setLayout(new BorderLayout());
contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
getContentPane().add(contentPanel, BorderLayout.CENTER);
contentPanel.setLayout(null);
{
JPanel jPanel = new JPanel();
jPanel.setBorder(new TitledBorder(null, "How to", TitledBorder.LEADING, TitledBorder.TOP, null, null));
jPanel.setBounds(5, 12, 462, 68);
contentPanel.add(jPanel);
jPanel.setLayout(null);
{
JLabel lblIntro = new JLabel("A detailed description about how to use this software is on:");
lblIntro.setBounds(5, 17, 448, 15);
jPanel.add(lblIntro);
}
{
JLabel lblHttpwwwmarcelkapferdeprojectsmorseindexhtmlhowto = new JLabel("http://www.marcel-kapfer.de/projects/morse/index.html#howto");
lblHttpwwwmarcelkapferdeprojectsmorseindexhtmlhowto.setBounds(5, 44, 448, 15);
jPanel.add(lblHttpwwwmarcelkapferdeprojectsmorseindexhtmlhowto);
}
}
{
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);
}
}
}
}

View file

@ -0,0 +1,111 @@
/*
* This is a programm for Morse.
*
* Marcel Michael Kapfer
*
* GPL v3.0
*
* 2014
*
* Version: 1.0.0
*
*/
package de.marcel_kapfer.c.morseconverter;
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);
}
}
}
}

File diff suppressed because it is too large Load diff