hello, i was wondering if anyone out there would be able to help me with my java program, i just cant seem to get it to work! i know its a simple program, i want it to work without using the calendar class
public class javaCalendar extends JApplet { JPanel top; JPanel bottom; JButton view; TextField year; TextField year3; TextField selectedYear; int j, f; int monthIn1, monthIn2; String thisDay; int dayOne; int thisMonth; int thisYear; int yearTwo; int selectedMonth; Choice mnthChoice;
int numValue; int numValueAdd; int DayOfWeek; int c, d; int z; int m; int mnthDays;
//formula for working out start position, CHANGE TO BOOLEAN ACTION
public void init() {
setSize (new Dimension (1200,500)); Container container = getContentPane(); container.setLayout(new BorderLayout()); top = new JPanel(); //grid layout bottom = new JPanel(new GridLayout(7, 7, 2, 2)); //get month from user mnthChoice = new Choice(); mnthChoice.add("January"); mnthChoice.add ("February"); mnthChoice.add("March"); mnthChoice.add ("April"); mnthChoice.add ("May"); mnthChoice.add ("June"); mnthChoice.add ("July"); mnthChoice.add ("August"); mnthChoice.add ("September"); mnthChoice.add ("October"); mnthChoice.add ("November"); mnthChoice.add ("December"); top.add(mnthChoice); //assigns numbers to months monthIn1 = mnthChoice.getSelectedIndex(); //text field and view button
selectedYear = new TextField ("2007"); top.add(selectedYear);