PDA

View Full Version : Assignment java programming aku...


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!!!!!

chadtce
23-04-03, 12:40 PM
Serius... aku pun taktau... Walaupun aku ngajar JAVA. :)

hamdi
23-04-03, 01:17 PM
Garbiula, cuba buat dulu. apa2 masalah berkenaan NAK buat, tanya la kat sini. insyaAllah ada yg boleh membantu. kalau bagi problem statement, apa yg boleh kami buat. takkan nak buatkan semuanye, tak adil utk Garbiula pulak krn tak berpeluang utk belajar.

usaha la.

mnajem
23-04-03, 01:45 PM
soalan:

saya tak reti buat applet.
kalo cam soalan garb ni pakai SDK shj on command line possible ke?
atau kena pakai IDE spt Jbuilder,Visual Cafe?

hamdi
23-04-03, 02:12 PM
pakai sdk je dah cukup krn sdk dah datang sekali dgn appletviewer.

Garbiula
23-04-03, 02:23 PM
malas lah...tak pe lah..... aku jumpa member aku malam nih....
bosan pasal language 2 nih....

mnajem
23-04-03, 02:51 PM
jangan maleh maleh.

malam tadi aku berjava sekejap sekalipun tak belajar sangat java dulu(takat inheritance je ngan object reusing.applet viewing tak masuk pun)

pst:aku tak grad lagi ada orang approach,cam la aku power tu yang aku hangin sikit tu. :hehe:

C-Fumofufu
23-04-03, 07:47 PM
kalo nak gune applet dlaam html

JANGAN GUNE EMBED TAG!!!!!

pakai Object tag untuk kesenangan

kalo cekgu cakap nape

cakap ko nak move forward bagi fully HTML4.01 compliant

ngan ni pon OO gak ape





hek enen sape dok bising cakap suke blaja macam2? mende simple pon punye susah nak search google...

idrase
23-04-03, 08:32 PM
hishh aku udah lupe java daaa... maap laa :D
nak refresh balik maleh je rasanya kalo x de hal penting :D