Garbiula
23-04-03, 12:29 PM
any idea macam mana nak cari template / applet yang sesuai untuk assignment nih....
------------------------------------------------------------------------------
Exercise 2
2.1 Create an applet that inputs your name, matric number, country and subject interest. In a text area, create multiple lines of output to display the information in the format shown in the sample output. Append punctuation spaces and new line symbols as needed. Include a button with the text "Display List" that appends information from the text fields. Name your applet class as "StudentList" and write a simple HTML file to run your applet.
Test Data
Name: Mawarny
Matric No: 008855
Country: Malaysia
Subject Interest: Operating System
Sample Output:
Mawarny (008855)
Malaysia
Operating System
Optional: Add code to clear the text fields when the text is added to the text area.
2.2 Create an applet that prompts for your name and phone number. Add a button with the caption" Add to List" that appends one line containing the name and the phone number to a text area. Use tab to separate the two fields. Clear all the text fields so that another name can be entered. Include the current date as a title. Name your class as "PhoneList".
Sample Output:
Dr Zaiml Nizam 03-32219973
Ahmad 03-26154000
Zanariah 019-2091999
2.3 Create an applet to input a class schedule. The text fields should include student name, course code, days, hours and the venue. A button called "Add Class" will add a line of text to a text area with the class infonnation. Clear all the text fields except for the student name. Use the constructor methods to set up the titles. Name your class as "ClassSchedule".
Sample OutDut:
Course Days Time Venue
INF04075 Tues 10:00-12:50 T.Lab A
INFOXXX Mon 08:00-11:00 SUN lab
2.4 Modify question 2.3 to change the foreground color of the labels when the mouse enters the label (you can use any color constant). Return to the startup colors when the mouse exits the label.
---------------------------------------------------------------------------------
sapa terel java... please respond.... tolonggggggg!!!!!
------------------------------------------------------------------------------
Exercise 2
2.1 Create an applet that inputs your name, matric number, country and subject interest. In a text area, create multiple lines of output to display the information in the format shown in the sample output. Append punctuation spaces and new line symbols as needed. Include a button with the text "Display List" that appends information from the text fields. Name your applet class as "StudentList" and write a simple HTML file to run your applet.
Test Data
Name: Mawarny
Matric No: 008855
Country: Malaysia
Subject Interest: Operating System
Sample Output:
Mawarny (008855)
Malaysia
Operating System
Optional: Add code to clear the text fields when the text is added to the text area.
2.2 Create an applet that prompts for your name and phone number. Add a button with the caption" Add to List" that appends one line containing the name and the phone number to a text area. Use tab to separate the two fields. Clear all the text fields so that another name can be entered. Include the current date as a title. Name your class as "PhoneList".
Sample Output:
Dr Zaiml Nizam 03-32219973
Ahmad 03-26154000
Zanariah 019-2091999
2.3 Create an applet to input a class schedule. The text fields should include student name, course code, days, hours and the venue. A button called "Add Class" will add a line of text to a text area with the class infonnation. Clear all the text fields except for the student name. Use the constructor methods to set up the titles. Name your class as "ClassSchedule".
Sample OutDut:
Course Days Time Venue
INF04075 Tues 10:00-12:50 T.Lab A
INFOXXX Mon 08:00-11:00 SUN lab
2.4 Modify question 2.3 to change the foreground color of the labels when the mouse enters the label (you can use any color constant). Return to the startup colors when the mouse exits the label.
---------------------------------------------------------------------------------
sapa terel java... please respond.... tolonggggggg!!!!!