Important: Use custom search function to get better results from our thousands of pages

Use " " for compulsory search eg:"electronics seminar" , use -" " for filter something eg: "electronics seminar" -"/tag/" (used for exclude results from tag pages)


Ask More Info Of  A Seminar Ask More Info Of A Project Post Reply  Follow us on Twitter
06-04-2011, 01:22 PM
Post: #1
PROGRAM TO DISPLAY A MOVING BANNER USING APPLET

Code:
import java.awt.*;
import java.applet.*;
//<applet code=Movingb width=100 height=100></applet>
public class Movingb extends Applet implements Runnable
{
String s="MOVING BANNER";
Thread t=null;
boolean flag;
public void init()
{
setBackground(Color.red);
setForeground(Color.blue);
}
public void start()
{
t=new Thread(this);
flag=false;
t.start();
}
public void run()
{
char ch;
for(; ;)
try
{
repaint();
Thread.sleep(1000);
ch=s.charAt(0);
s=s.substring(1,s.length());
s=s+ch;
if(flag==true)
break;
}
catch(InterruptedException ie)
{
}
}
public void stop()
{
flag=true;
t=null;
}
public void paint(Graphics g)
{
g.drawString(s,200,200);
}
}
OUTPUT

Please Use Search http://projects-seminars.net/search.php wisely To Get More Information About A Seminar Or Project Topic
24-04-2016, 12:11 AM
Post: #2
RE: PROGRAM TO DISPLAY A MOVING BANNER USING APPLET
how that text will scroll by this code, give explanation.
char ch;
for(; Wink
try
{
repaint();
Thread.sleep(1000);
ch=s.charAt(0);
s=s.substring(1,s.length());
s=s+ch;
25-04-2016, 02:28 PM
Post: #3
RE: PROGRAM TO DISPLAY A MOVING BANNER USING APPLET
PROGRAM TO DISPLAY A MOVING BANNER import java.awt.*;
import java.applet.*;

publicclass simpleBanner extends Applet implements Runnable
{
String msg=" A Simple Moving Banner. ";
Thread t=null;
int state;
boolean stopflag;

publicvoid init()
{
setBackground(Color.yellow);
setForeground(Color.red);
}

publicvoid start()
{
t = new Thread(this);
stopflag=false;
t.start();
}

publicvoid run()
{
char ch;
for(;Wink{
try{
repaint();
Thread.sleep(250);
ch=msg.charAt(0);
msg=msg.substring(1,msg.length());
msg=msg+ch;
if(stopflag)
break;
}catch(InterruptedException e) {}
}
}

publicvoid stop()
{
stopflag=true;
t=null;
}

publicvoid paint(Graphics g)
{
g.drawString(msg,50,30);
showStatus("Simple Banner");
}

}USING APPLET

http://projects-seminars.net/Thread-prog...#pid243259

http://projects-seminars.net/Thread-prog...ing-applet
Rating PROGRAM TO DISPLAY A MOVING BANNER USING APPLET Options
Share PROGRAM TO DISPLAY A MOVING BANNER USING APPLET To Your Friends :- Seminar Topics Bookmark
Post Reply 

Marked Categories : moving banner using applet, moving banner applet program, moving string in java using applet, applet to display moving banner, moving an image using applet, applet programming for banner, moving banner applet program java, java application to display moving banner, move a string using applet, program in java to display banner in applet, send info banner program, moving banner applet, code for moving banner applet, moving banner program in java, moving an image program using applet, code for image moving banner in applet, banner applet program, program for moving banner in java applet, code for banner using applet, program code for banner in applet with output,

[-]
Quick Reply
Message
Type your reply to this message here.


Image Verification
Image Verification
(case insensitive)
Please enter the text within the image on the left in to the text box below. This process is used to prevent automated posts.

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Program in “C” to implement DFA. seminar class 3 7,111 05-04-2016 04:47 PM
Last Post: dhanabhagya
  PROGRAM TO DRAW A HUMAN FACE USING APPLET project topics 3 168,959 22-02-2015 11:12 AM
Last Post: Guest
  Program to Encrypt and decrypt a text data using RSA algorithm smart paper boy 7 17,763 05-02-2015 10:08 AM
Last Post: Guest
  To write a program in C# to perform conversion of dollars to rupees smart paper boy 1 9,155 02-05-2013 10:40 AM
Last Post: Guest
  PROGRAM TO DISPLAY MARK LIST OF N STUDENTS project topics 1 51,334 11-03-2013 02:20 PM
Last Post: Guest
  Study the working of RS flip-flop using NAND gates and NOR gates and compare them seminar class 1 22,301 07-12-2012 12:17 PM
Last Post: seminar tips
  Study the construction of basic gates using NAND gates and NOR gates seminar class 2 18,763 07-12-2012 12:17 PM
Last Post: seminar tips
  To predict secondary structures of human cox2 using SOPMA tool smart paper boy 1 2,874 03-12-2012 11:24 AM
Last Post: Guest
  VHDL program for Booth’s Multiplier smart paper boy 2 7,283 09-04-2012 10:34 AM
Last Post: seminar paper
  My Banner Java source code smart paper boy 0 1,284 30-08-2011 12:33 PM
Last Post: smart paper boy
This Page May Contain What is PROGRAM TO DISPLAY A MOVING BANNER USING APPLET And Latest Information/News About PROGRAM TO DISPLAY A MOVING BANNER USING APPLET,If Not ...Use Search to get more info about PROGRAM TO DISPLAY A MOVING BANNER USING APPLET Or Ask Here

Options: