Create the logo as shown in Java in an applet or frame. It should be as close as
ID: 3695428 • Letter: C
Question
Create the logo as shown in Java in an applet or frame. It should be as close as possible, including the Virus Logo. Draw the logo using ovals, lines, rectangles, and strings, changing colors and using draw or fill as necessary. Change to appropriate virus colors (like Blue and Cyan) and fonts for the text in the drawing. Everything should be drawn in paint() with your Graphics object. After creating one virus,usecopyArea() to copy the virus bugs to other areas of the Container.
Document your .java file with five lines at the top and five lines throughout explaining the purpose of the program. Take a picture of your output with <Alt><Ptr>, paste into Paint, and save as a .jpg. Submit both your .java program and .jpg files.please help me with questions and make sure u post the image of the output as same as the image I provided
COMPUTER VIRUSES How to Protect Your Computer From Getting InfectedExplanation / Answer
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
public class Loginform extends Frame implements ActionListener
{ Label l1=new Label("user name");
Label l2=new Label("password");
Label l3=new Label(" ");
TextField t1=new TextField();
TextField t2=new TextField();
Button b= new Button("Submit");
public Loginform()
{ add(l1);
add(t1);
add(l2);
add(t2);
add(b);
add(l3);
l1.setBounds(20,45,70,20);
t1.setBounds(180,45,200,20);
l2.setBounds(20,95,70,20);
t2.setBounds(180,95,200,20);
b.setBounds(310,145,70,20);
b.addActionListener(this);
t2.setEchoChar('*');
addWindowListener(new mwa());
}
public void actionPerformed(ActionEvent e)
{ l3.setText("Welcome "+t1.getText());}
public static void main(String s[])
{ Loginform l=new Loginform();
l.setSize(new Dimension(600,600));
l.setTitle("Login");
l.setVisible(true);
}
}
class mwa extends WindowAdapter
{ public mwa(){}
public void windowClosing(WindowEvent e)
{ System.exit(0);
}
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.