EasyExamNotes.com
  • Home
  • Subject Chart
  • Video Lectures
  • RGPV Solved
  • UGC NET
  • GATE CSIT 2021

Java program Applet image display

Java program
APPLET IMAGE DISPLAY:
import java.awt.*;
import java.applet.*;
   
public class AppletDisplayImage extends Applet {
 Image picture;
 public void init() {
picture = getImage (getDocumentBase(), http://nebula.wsimg.com/a418036bd85efa32bdb96f5dbb77e203?AccessKeyId=F7C1E0F1DEF38C4D96C2&disposition=0&alloworigin=1 );
setBackground(Color.yellow);
 }
 public void paint(Graphics g) {
g.drawImage(picture, 40,40, this);
 }
 
 }
OUTPUT:

Java Programs

  • Java Scanner progam
  • Java program to display message
  • Java program use of Scanner class, nextInt()
  • Java program use of If Else
  • Java Nested Method
  • Java program use of Switch case, break statement
  • Java Program to use Nested Switch case
  • Java program to enter marks
  • Java program to enter marks, calculate sum, percentage, division etc.
  • Java program While loop, input.nextInt()
  • Java program arithmetic operators
  • Java program main function with object
  • Java program method overloaing
  • Java program to show use of If, For, Scanner
  • Java program type casting
  • Java program use of continue
  • Java program use of String
  • Java program File handling create operation
  • Javaprogram Graphic Applets
  • Java program Applet image display
  • Java program Applet digital clock
  • Java program Applet mouse event handling

JAVA

  • JAVA and its Support Systems
  • JAVA environment
  • JAVA program structure
  • Tokens
  • Java statements
  • Java virtual machine
  • C++ Versus JAVA
  • Constants and Variables in Java
  • Data types JAVA
  • Constructor in JAVA
  • Array in Java
  • Applet
  • Applets Vs Applications
  • Writing applets
  • Applets life cycle
  • Applet digital clock
  • Creating an Executable Applet
  • Graphics in Applet
  • Applet image display
  • Applet mouse event handling
  • JDBC
  • Establish Database Connection
  • Execute an SQL Statement
  • Defining a class
  • Process the result
  • CLOSE THE DATABASE CONNECTION
  • File handling

Please Subscribe

EasyExamNotes.com © 2022