Blog

How To Promote Your Blog Posts For Driving Crazy Traffic

Being bloggers, we work day and night to form quality substance, and a while later sit tight for people to come and read our substance. A basic way to deal with get development is...

5 Benefits Of A Blog Newsletter

An Email notice include associations with article from your blog, and this email is gotten by subscribed customers on their eMail address. This is the most slightest complex instance of what a blog email...

Program to make a basic triangle using Applet

import java.awt.*; import java.applet.*; /* <applet code="traingle.class" width=400 height=450></applet> */ public class traingle extends Applet { public void paint(Graphics g) { int x={150,300,225}; int y={150,150,25}; g.drawPolygon(x,y,3); } }

Write an applet which will demonstrate following methods- • setFont() • setColor • showStatus()...

/*Write an applet which will demonstrate following methods- • setFont() • setColor • showStatus() • setBackground()*/ import java.awt.*; import java.applet.*; /* <applet code="A.class" width=400 height=450></applet> */ public class A extends Applet { public void paint(Graphics g) {     //setBackground setBackground(Color.red); //showStatus showStatus("Runing ....."); //setFont Font b=new Font("TimesRoman",Font.BOLD,36); g.setFont(b); g.drawString("Hi People Here(timesromanplain)",10,25); } }

Write an applet to demonstrate drawPolygon() and drawPloyline() method

/*Write an applet to demonstrate drawPolygon() and drawPloyline() method.*/ import java.awt.*; import java.applet.*; /* <applet code="A.class" width=400 height=450></applet> */ public class A extends Applet { public void paint(Graphics g) { int a={10,100,100,10}; int b={10,10,60,60}; g.drawPolygon(a,b,4); int c={150,250,250,150}; int d={10,10,60,60}; g.setColor(Color.blue); g.drawPolyline(c,d,4); } }

Write an applet to demonstrate drawArc() and fillArc() method

/*Write an applet to demonstrate drawArc() and fillArc() method.*/ import java.awt.*; import java.applet.*; /* &lt;applet code=&quot;A.class&quot; width=400 height=450&gt;&lt;/applet&gt; */ public class A extends Applet { public void paint(Graphics g) { g.setColor(Color.magenta); g.fillArc(50,50,100,100,5,60); g.setColor(Color.black); g.drawArc(100,160,100,100,65,120); } }

Write an applet to demonstrate drawOval() and fillOval() method

/*Write an applet to demonstrate drawOval() and fillOval() method.*/ import java.awt.*; import java.applet.*; /* &lt;applet code=&quot;A class&quot; width=400 height=450&gt;&lt;/applet&gt; */ public class A extends Applet { public void paint(Graphics g) {     g.setColor(Color.yellow); g.fillOval(10,10,100,100); g.setColor(Color.red); g.drawOval(160,150,100,100); } }

Write an applet to demonstrate draw3DRect() and fill3DRect() method

/*Write an applet to demonstrate draw3DRect() and fill3DRect() method.*/ import java.applet.Applet; import java.awt.*; import java.awt.event.*; import java.awt.Color; import java.awt.Graphics; /* <applet code="A.class" width=400 height=450></applet> */ public class A extends Applet { public void paint(Graphics...

Write an applet to demonstrate drawRect() and fillRect() method

/*Write an applet to demonstrate drawRect() and fillRect() method.*/ import java.awt.*; import java.applet.*; /* <applet code="A.class" width=400 height=450></applet> */ public class ass5_8 extends Applet { public void paint(Graphics g) { int a={10,100,100,10}; int b={10,10,60,60}; g.drawPolygon(a,b,4); int c={110,200,200,110}; int d={10,10,60,60}; g.setColor(Color.blue); g.fillPolygon(c,d,4); } }

Write a java program to create two threads. One using runnable interface and other...

/*Write a java program to create two threads. One using runnable interface and other by extending thread. First thread will print all odd numbers and second will print all even numbers between 1 to 10.*/ class...