Java applet
Applications
Applets
Java
Widgets
Import java.io.*
Import java.applet.*;
Import java.awt.*;
Import java.awt.event.*;
Import java.io.*;
Import java.applet.*;
Import java.awt.*;
Import java.awt.event.*;
Label
Button
Textfield
All of these
Transient
Package
Interface
Gotoxy
Import java.io.*
Import java.applet.*;
Import java.awt.*;
Import java.awt.event.*;
Public
Import
Implement
Package
Public
Void
Class
Static
Import java.io.*;
Import java.applet.*;
Import java.awt.*;
Import java.awt.event.*;
Transient
Package
Interface
Gotoxy
G.Drawrect();
G.drawRect();
G.drawingRect();
G.draw_RECT();
(String, int x, int y)
(String, int y, int x)
(int x, int y, String)
(int x, String, int y)
Public
Import
Implement
Package
SetColor()
Graphics
Color
Paint
Public
Void
Class
Static
”Welcome to Java!”
140
50
None of these
G.Drawrect();
G.drawRect();
G.drawingRect();
G.draw_RECT();
Start()
Stop()
Destroy()
Wait()
(String, int x, int y)
(String, int y, int x)
(int x, int y, String)
(int x, String, int y)
Start()
Init()
Draw()
Paint()
SetColor()
Graphics
Color
Paint
”Welcome to Java!”
140
50
None of these
It avoids confusion in displaying strings in applet.
You would not need to change and recompile the applet every time you changed the messages.
You would not need to change your html code every time you changed the messages.
It makes your program a lot easier to manage than usual.
Start()
Stop()
Destroy()
Wait()
Start()
Init()
Draw()
Paint()
Paint
Color
Draw
Graphics
(int x, int y, int width, int height, int start angle, int size of angle)
(int x, int y, int width, int height, int size of angle, int end angle)
(int x, int y, int height, int width, int size of angle 1, int size of angle 2)
(int width, int height ,int x, int y, int size of angle 1, int size of angle 2)
It avoids confusion in displaying strings in applet.
You would not need to change and recompile the applet every time you changed the messages.
You would not need to change your html code every time you changed the messages.
It makes your program a lot easier to manage than usual.
You can specify whole numbers only
You can declare four parameters only
You can declare negative numbers
You can declare decimal values.
Paint
Color
Draw
Graphics
GetColor()
ChangeColor()
SetColor()
InventColor()
(int x, int y, int width, int height, int start angle, int size of angle)
(int x, int y, int width, int height, int size of angle, int end angle)
(int x, int y, int height, int width, int size of angle 1, int size of angle 2)
(int width, int height ,int x, int y, int size of angle 1, int size of angle 2)
DrawLinear()
DrawBorder()
DrawLine()
FillLine()
You can specify whole numbers only
You can declare four parameters only
You can declare negative numbers
You can declare decimal values.
SetBackground()
SetForeground()
SetFont()
SetAlignment()
GetColor()
ChangeColor()
SetColor()
InventColor()
It provides a single line of text only.
You cannot change the font style.
You cannot change the font size.
You cannot include background image
DrawLinear()
DrawBorder()
DrawLine()
FillLine()
Label sample = new Label();
Label sample = new Label(“text of label”);
Label sample = new Label(“text of label”, Label.setText());
Label sample = new Label(“text of label”, Label.RIGHT);
SetBackground()
SetForeground()
SetFont()
SetAlignment()
ActionEvent
ActionListener
ActionPerformed
ActionImplement
It provides a single line of text only.
You cannot change the font style.
You cannot change the font size.
You cannot include background image
AddActionListener
ActionPerformed
ActionEvent
ActionListener
Label sample = new Label();
Label sample = new Label(“text of label”);
Label sample = new Label(“text of label”, Label.setText());
Label sample = new Label(“text of label”, Label.RIGHT);
Text class
Textlabel
Textarea
Textfield
Graphics
String
Draw
Applet
ActionEvent
ActionListener
ActionPerformed
ActionImplement
GetValue
SetText
FillText
SetValue
Quiz Review Timeline +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.