Windows Form Application.
Do you mind if I do it in Java?
Yeah , you can do it in Java.
Very nice work toast and james. Toast, I like that your project works on events besides a normal button click event
Thanks, it's not that hard to do lol.
I wrote mine in java.. I also made a custom coded from scratch swing GUI and a JNLP file, so if you wanna learn any of that read through my code =).
Ageulator.java
[code]
import javax.swing.JFrame;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.SwingUtilities;
import javax.swing.JOptionPane;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.util.Calendar;
// The main frame, all the gui elements go on here
class MainFrame extends JFrame implements ActionListener {
Calendar m_calendar = Calendar.getInstance();
JComboBox m_birthMonth = new JComboBox();
JComboBox m_birthDay = new JComboBox();
JComboBox m_birthYear = new JComboBox();
// Create and show the main frame
public MainFrame() {
// Close the application when we exit
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setResizable(true);
this.setTitle("Ageulator");
// Create all the components on the main frame
this.createGUI();
// Remove any extra space between components
this.pack();
// Start application in the center of the screen
this.setLocationRelativeTo(null);
this.setVisible(true);
}
// Create all the components and put them on the main frame
private void createGUI() {
// Simple GUI layout manager
this.setLayout(new BorderLayout());
m_birthMonth.addItem("--");
// Allow the user to select months 1-12
for (int i = 1; i