Process the result
The result of the SQL statement (SQL queries) are stored in a ResultSet object. To retrieve the data from the ResultSet we need to use … Read more
The result of the SQL statement (SQL queries) are stored in a ResultSet object. To retrieve the data from the ResultSet we need to use … Read more
To execute an SQL statement using JDBC in Java, you can follow these steps: Step 1: Create a Connection Establish a connection with the database … Read more
APPLET MOUSE EVENT: import java.awt.*; import java.awt.event.*; import java.applet.*; public class MouseApplet extends Applet implements MouseMotionListener{ public void init(){ addMouseMotionListener(this); setBackground(Color.WHITE); … Read more
APPLET DIGITAL CLOCK: import java.applet.*; import java.awt.*; import java.util.*; import java.text.*; public class AppletDigitalClock extends Applet implements Runnable { Thread th = … Read more
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 … Read more
APPLET GRAPHICS: import java.applet.Applet; import java.awt.*; public class Graphic extends Applet{ public void paint(Graphics g){ g.setColor(Color.yellow); g.fillRect(0,0,200,30); g.setColor(Color.black); g.drawString(“Namashkar”,50, 50); g.setColor(Color.red); g.drawLine(200,30,200,300); g.setColor(Color.green); g.drawOval(0,100,200,30); g.setColor(Color.gray); … Read more
CREATING AN EXECUTABLE APPLET: Executable applet is nothing but the .class file of applet, which is obtained by compiling the source code of the applet. … Read more
APPLETS LIFE CYCLE: Applet life cycle means the various states through which applet passes during its object creation and removal. Each state is a method. … Read more
WRITING APPLETS: An applet is a Java program written in a special format to have a graphical user interface, which allows a user to interact … Read more