0
Write an applet that contains one button. Initialize the label on the button to “Start”. Toggle the button label between these two values each time the button is pressed. Write an applet that contains one button. Initialize the label on the button to “Start”. Toggle the button label between these two values each time the button is pressed.

import java.applet.Applet; import java.awt.Button; import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import...

Continue Reading »

0
Write an applet that displays “SubhanaAllah and Subbakhair Fajir Time” if the current time is between 5 a.m. and 7 a.m., “Its Zuhr Prayer time” if the current time is between 12 p.m and 3 p.m., and “SubhanaAllah its Mugrib Prayer Time” if the current time is between 5p.m. and 7 p.m. Write an applet that displays “SubhanaAllah and Subbakhair Fajir Time” if the current time is between 5 a.m. and 7 a.m., “Its Zuhr Prayer time” if the current time is between 12 p.m and 3 p.m., and “SubhanaAllah its Mugrib Prayer Time” if the current time is between 5p.m. and 7 p.m.

import java.applet.*; import java.awt.*; import java.util.Calendar; import java.util.GregorianCalendar; public class main_class extends App...

Continue Reading »
 
Top