Home Forum
 

Applet in Java

From source code,code examples

Jump to: navigation, search
Applet Servlet Communication

This code demonstrates Servlet to Applet Communication. The Applet receives the server time through a servlet

A Drawing Applet

to use the mouse to draw lines with different colors .... see the screenshot!! its cool

Another Snow Applet

Snowflakes.

AdditionApplet

An Addition Program

Button Menu

This applet can be used as a navigation menu with-in a frameset. Just set up your frames put the applet in one frame and then change the targetwindow page value to the name of the frame you want to open it up in.

Birdbrain

Remake of the popular Robots game, eg. Daleks, with a bird theme. Worth a look for graphics techniques etc. Careful, it's a simple but adictive game. The zip file contains: source, html, and all graphics.

Background Play

It Plays Background Music on web pages.

Bouncing Ball Applet 1.3

Bouncing Ball Applet is a Java applet. It uses JavaScript's live connection feature to establish a connection to the Java applet. You can change the background and ball's color dynamically from the JavaScript's part. Apart from this, the applet does nothing special.

Basic Applet Calculator

Basic Applet Calculator

JPAN

Pan around a large image like QTVR

TimeWait

waits X seconds then jump to another website

Trailing Marble Mouse Trails

This cool applet shows you how to get several copies of an image (in this case marbles) to follow and snake-behind the user's mouse cursor!

Text Mouse Trails

Trails a headline (text/words) behind the users's mouse as a mouse trail!

JVMU

Loads an animation file (.LCD or VMI/VMS pair) created with the DREAM ANIMATOR and www.booyaka.com, and displays it in mini or normal size. (has javascript control options).

grafic-button at applet

You can create grafic-buttons at applets, with

WebCam Image Refresh Applet

This code was written to display an image an constantly refresh it without reloading the entire page. This works great with webcam software that constantly uploads a picture to your server. All you have to do is put this applet into your page with the name of the image in the <PARAM NAME = "IMAGE" VALUE = "myPic.jpg"> Tag, and it will constantly refresh the image without forcing an entire page reload. This example includes a test image, test page, the class file, and the source code java file.

KISS ME

Pointless, but aren't all these. It lets you kiss a picture... Need I say more?

Dice-Generator

This Applet includes a Class for an Animation of a Dice. It shows, that Chance to get a special Number is 16,6666 % on the basis of a Diagramm.

Fraktals-Generrator

This Applet paints fraktal curves like Koch's curve and so on.

revisit website

A java Applet which makes the brower revisit a website again and again :-) .....U know what this can b used for .....making money .....haha....

Clock Applet

the code displays the clock showing the time in seconds,min,hours and the background of the window according to the user choice

Client/Server Chat Applet

A client/server chat applet designed for intranet users who want to chat

Complete Java Swing Applet: Improve your vocabulary

Example available: http://www.rgsoftware.com/java/vocabularybuilder/vocabulary.asp

Cyclic Cellular Automaton

Gives a great introduction to cellular automaton. Originally a simple, standard cyclic CA, but now has lots of new features, such as being able to decide which neighbors get checked during cycles and also uses a "cyclic difference."

changing background color menu

Cool, you can change backgroud betwen a couple of colors from an applet menu!!... bote for me! thanks

click here

detect mouse click positi?n and draw a String each time, in that positi?n with a random color and a clear button

CursorXY

I wrote this because when coding up a Java application (or anything using XY coordinates) I got tired of writing in the code, compile, run and to find out it needed to be just 2 pixels to the left or right for that matter. This applet has a "mapping" area in it to map the XY coordinates according to what you input in the X: and Y: boxes. The layout consists of a Heading (70 pixels) and the left and right edge (60 pixels) so if you building something that is 800x600, you would go into the HTML file and set the Applets width and height to 860x670, this would give you the mapping area of 800x600. You can set background, button text, and image of cursor through the HTML. Hope someone besides me finds it useful! =)

Color Wheel

Modify a color with 3 JSliders and get the RGB and Hex value of that color.

CMS-Applet

This is an Applet i created for my college's Computer Management Society, Which is now an AITP chapter. The applet reads data from a text file to show upcoming events and other different info. This can be used as a news scroller or whatever else you can think of. Everything can be configured from the text file. It supports images, urls, line breaks and text.

CalculatorAplettofWindows.java

It re-creates the windows calculator

Complete Java GUI Tutorial - Beginner to Expert!

Packed with OVER 25 FULLY COMMENTED CODE EXAMPLES this tutorial teaches you everything from how to make a button to advanced event handling. It assumes NO PREVIOUS JAVA KNOWLEDGE! I include a screenshot of all the programs so you know what it should look like. It's divided into two sections - The first to teach you everything about the objects such as buttons, labels, and text fields. The second to teach you how to handle all the events the objects make. In the first part, you will learn all about: Buttons, Labels, Text Fields, Text Areas, Check Boxes, Radio Buttons, Drop Down Lists, Panels, 3 different Layout Managers. In the second part, you'll learn about all the events that the above objects use, complete with working examples for everything I demonstrate. Please leave a comment and vote!

calculator applet

it can do simple mathematical calculations. the event handling is being used here.

celcius@converter

ths covert celcius into fahrenheit on just a click of a button

clo

Actually what i did was by using the applet , awt,Calendar packages thread& Math class through this iam implementing my concept.I had just designed a Analog as well as Digital CLOCK on the same Applet page.

CHATTING in SAME WINDOW

I have done a simple Messenger like (Application)program. Here two

Calculator

i want to tell some thing to Beginners about Java Applet .

Digit Reversed Applet

This applet enables the user to input digits and displays it's reverse on the status bar.

Digital Clock with Properties

This program is an applet.It is a DigitalClock program with some properties merged in it.You can right click on applet and click properties from popup menu to change font,foreground and backgroud colours.This will work on jdk1.3 and above.

Drawing & Mix up RGB

You will see how to mix up RGB color and moving of line.

efofex

simply enter the equation:

Estimating PI

This applet demonstrates estimation of pi by Monte Carlo Simulations. If we say #n1 is number of points in circle and #n2 is number of all points, p=4.#n1/#n2 is an estimator of pi. After thousands of iterations, p converges to 3.141...

Euro_Dollar_Drachmas_converter

This code converts euro or dollars or drachmas to the other two currencies.

Fahrenheit to Celsius

This is a Fahrenheit to Celsius converter, it is a good applet to find out how cool or hot is out there. Have fun coding!!!

Foreign Currency Converter

This is a Small applet I create to see how much money would be from my country the exchange for Dollars. It is very usefull if you rae from a foreign country. Have fun Coding!!!

Fly killer

Kill'em all... they're everywhere,.. KILL THE FLIES, have fun and vote for me!! ...and maybe you can tell me, why the other pictures don't appear?, please =D

Flag Applet

Flag Applet

FlinkApplet

Flink Applet for enhancement for Web pages.

FilesThreadApplet

This code give the user the basic idea of java Applet Events.

Fantasy Hangman Applet

This is one of the best Hangman Applets you could find on the web.uses wonderfull Graphics and sound effects.

graficos

it's a simple face, with a button that changes it form, it shows you how easy it's to draw things

GraphSketch

Display simple mathematical functions (trig, log, exponential, cubic, reciprocal). Alter the coefficients to see how the shapes vary.

GUI for java applets made easy

I program a lot of Graphical User Interfaces, witch can be time-consuming. I have written a kernal based GUI that is totaly Object orientated (and much faster). It takes advantage of message handling to makes it very easy to extend.

Greatest Common Divisor Applet

This applet Displays the Greatest Common Divisor of the 2 inputted integers.

Guess a Number Applet

It enables the user to guess a number between 1 to 1000 and stops the program if the user guessed the right number.......

Graphing Calculator

Calculator and Graphing capabilities in Applet. I hated the Windows Calculator and most of them where you had to do it piece by piece and this lets someone type in whole string of commands and it calculates it. View applet at www.BrianFolts.com/Graph

Game Of Chance

Learn to use, text field, button and Japplet's some features.

Guitar Tablature Player

This is Guitar Tablature Player applet written by me. Search for songs tabs on the internet and just copy and paste to my applet.You can change the tempo simultaneously. Guitar tab player recognizes first five string as E-B-G-D-A-E and second five strings is another part of the song. So you have to delete any spaces between rows. A moonlight sonata demo is ready for playing. Please download JMF (Java Media FrameWork) to hear sounds.

gamerec

it displays....3d rectangle....randomly....over the...applet area.....

How tall am I

This was one of my first applet, I create it to se how tall I was in cm, I got lot's of fun with this one. Have Fun Coding!!!

hungman

Play Hangman with user's secret words... funny and can be useful at training

Tetris1 (New Version)

To provide entertainment to the user.

Java Gantt

JavaGantt is a java based Histogram, Timeline, Gantt chart component. It is being developed as an LGPL component. Than the alternative standalone application. For intermediate screen shots see the homepage

Java Image Roll Over

This applet allows you to create a "rollover" image, where the image changes when the mouse moves over and out of it. The advantage of it being written in Java is that the effect functions in all browsers, as long as the browser supports Java.

Java-Asp chat

Provide a chat screen for my soccer team.

JGraph

JGraph is an dynamical graphing applet for making greatly customisable graphs on-the-fly.

JMS-LemonadeStand

Try to make money with out going in the minuses by changing the price, quality, and ammount of lemmons try to sell (Please vote if you like)

Java Email Client

This Java E-Mail Client system allows the user to send email using the SMTP protocol and retrive email using POP3 protocol. User are also able to save and print a copy of their Inbox message. The user also free to configure the SMTP or the POP3 server as well.. Have fun with my code.

Java Applet Animation

Moving Animated Applet

Java Basic 1

well i am still in my recap on java mode, so i designed this one as a practice. so i decided to post it up here for others who are either just beginning on java. this basically shows text basics. using textbox, and such. conversions, etc. just another good place for some beginners to start..

Java Open Example By Rod Lewis 2008 copyright

allows you to note pad a .class file also to change the appelet also add to a .mht or add pictures in html.

Library

Simple Library management system.

Looping Practice

Practice looping skills. Includes a music looping demo as well

Marque

This code will scroll a gif or jpeg from right to left across the screen i wrote this for my web site.

MAKING GAME APPLETS COMPENDIUM

This is the full collection of 7 articles on how to create game applets. It contains everything about applets: applet basics, playing sounds, displaying images, making animations, collsion detections and user inputs(kb & mouse). It contains 10 applet examples with full source and articles which explain everything in an easy way(I hope so). Any questions, suggestions or feedback? email me or write it below. Enjoy it!

Modified Horizontal Marqueue

Snake-shaped horizontal Marqueue w/ randomized color and speed.

Moph Applet

This is a really cool Text Morph Applet, download it and check it out. Reads text from a INI file.

mergesort animation

a animation of merge sort.

Multiplication Method Applet

It generates random single digit numbers to be answered by the user.

Multiplication Method Applet 2

It Works like "Multiplication Method Applet" but it gives random comments about the user's answer.

Multiplication Method Applet 3

It works like "Multiplication Method Applet" and "Multiplication Method Applet 2" but it has added features like monitoring the user's standing in aswering the questions.....

Metric Conversion

This coding is to convert from a different metric

Mouse Events app

to step into real world programming experience

Magical Plasma and Plasma Text Effect

Amazing Plasma Effect and Plasma text effect. you have seen the plasma effect but not the plasma text effect.Shows you different kind of plasma and plasma text effect.the code is purely written by me but for the html file i use the template definition used in 6tgscence.com site and i appreciate their good looking html files.

Marbles Game Applet

A fun exercise to get started with learning applets..one of the first pieces of code i wrote when i got started learning java.

Morse Code Translator

this code translatesa string into it's morse code counterpart

Mouse Listener

A simple applet program to demonstrate use of MouseMotionListener.

my frist game in java applets

hi..this is my first game in java..............

News Ticker version 1.0

This is a news ticker applet. It takes input parameters from the HTML source and displays short text messages formated by the input parameters. This applet can be used to display sports scores, stock updates, short messages, news updates, up coming events, and ect...

NewsSlider

NewsSlider is an news display which News and include a hyperlink.

Number's Power Recursive Method Applet

This applet enables the user to enter a base and exponent and display it's result.....

Normal Probability Calculator

This applet calculates the area (probability) beetween standart normal distribution and x-asis from a to b. Raimann Method has been used to calculate areas with high precision.

NetBean Based Calculator

This Code Demonstrate how to make calculator using NetBean IDE 6.0. The benefit of using it,Developer come to know how make .NET GUI programs using NetBean.

PMS Boucy

A small ball that bounces around in an applet. You can choose ball size, speed and fill.

Properties File Editor

Should allow editing of any given properties file through a swing GUI, the path to the properties file is given on the command line.

Paint shapes

paint lines, rectangles, ovals by inheriting paint method from each class. randomly draws the shapes.

Ping Pong

Understanding game programming

Particle Text

Particle Text is a text effect applet. It displays the specified text, using different configurable effects. You have to see it, the screenshot doesn't show the effects properly. The text is split up into its individual pixels, which are then scrambled and slowly moved into place. This creates a nice transition effect between the lines of text. In addition, the result may be blurred, or warped by two sine waves. See the html files included in the zip for info on the parameters/configuration.

Pizza Ordering Applet

This is a simple simulation of a Pizza Ordering applet. Demonstrates the use of Swing's JCheckBox, JRadioButtons.

Perfect Number Applet

This applet diaplays all the perfect numbers from 1 to 1000. A number is said to be perfect if its factor's sum including 1 but not the numbers itself is equals to the number.

Prime Number Applet

This Applet displays all Prime numbers from 1 to 10,000. A number is said to be prime if it is only divisible by the number itself and 1.

Palindromes Recursive Method Applet

It detects strings that are read desame even backward.

Print a string backward recursive method

It enables the user to input a string and prints it backward.

PrimerApplet FirstApplet

El primer applet para empezar a entender su programacion y muestra la frase "bienvenidos a java" en el navegador

Presentation on servlets

A presentation on servlets,briefing the installation of tomcat 4.1,steps for writing a simple servlet,steps for compling and executing a servlet.

Pc Animation

This java applet demonstrates starting of a windows 98 based pc. you can see it in web site http://www.geoticites.com/mhsatman without downloading any code. Source code is in zip file.

Play Fruits Applet

This code allows you to play fruits, but instead of fruits there are 3 slots with latin letters. When 1 and 2 or 2 and 3 slots are the same you win.

Pievar

This is my first java Applet Program

Product

calculate the product of three integer

Phone with gradiant color animation

You will see colorful screen saver animation on phone interface. It's the way to mix up the color RGB and moving of lines.

QualityPoints Applet

Inputs student average and displays it's equivalent point.

QualityPoints Applet (ex6.29)

Inputs student average and displays it's equivalent point.

Quicksort Animation

using Quicksort method to sort a randomly generated array. The applet animated the entire sorting process of this algorithm.

Random Horizontal Marquee Applet

Random Horizontal Marquee Applet scrolls the text messages.

Runnig Applets in Windows that JRE not Installed

Runnig Applets in Windows that JRE not Installed

Special effects in Java

This is a special effect in Java applet when u move your mouse over the applet screen...very handy code for learners..and very good use of codings..I have only used "=" guess what!!

special effects (using applets)

This is a code which helps u to implement special effects in applets using simple programming logic..Here u move the mouse over the applet screen...doing so will show some special effects using only with a character "=" ... very simple programming...thx.

Scroll Up Applet.

Scroll up Applet scroll the text which is in the tag of html, and hyperlink to that Corresponding page.

Selection Sort Recursive Method

This program performs selection sort in recursive form...

String Calculator

String Calculator enable you to enter your Infix code and showing the Postfix code and result.

SMS Sender

Sends sms to cellphone

SMS Sender II

This the second SMS Sender by me. This time it is in english, so anybody can understand this programm. New thing is that user can manualy enter mail server, in this case this programm will work in all countries.

SumaApplet PlusApplet

Aprende a sumar dos valores en un applet--->learn to plus two numbers in applet

Snake

School project, no one know what to do with these things after the projects finished. It is ya a snake that ssssslithers and rebounds of the walls when it hits it. Now, you can feed the snake or starve. Got a pretty good mark for it too.

SpaceInvaders Applet

This is a little spaceinvaders kind of game, it's not totally done yet (I still want to add more kinds of monsters stuff), but I think it's quite cool, it has a particle kind of system which is used for the shots and explosions. Well just see for yourself, use the arrow keys to move, space to fire, and 1 to 7 to change weapons.

Shape & color applet

This Java applet allows the user to choose from one of three different shapes and/or colors using buttons from within a web browser.

Square Array

An applet that has 16 textarea's in a plane, and three inputs in which you edit. The three you edit is the start input stop, and step. The start input is what textarea you start with, and stop input is the textarea in which you will stop. The step is the increment within the loop, and the code that will choose the color. Pretty cool for beginners if you want to learn arrays, actionperform event with more than one button, and the for loop. Vote if you like!!!!!

Square Animation

Try to make a forward-backward moving a blue colored ball. But I finally made a forward-backward moving blue colored square. Because, when I moved the ball's either forward or backward, screen started to get filled by so many blue colored balls. So I had to switch to a square to get rid of that problem

Scrolling Banner

This is a very simple banner program i used to study thread for first time.

smiley

Hi..............

Socket Programming in JAVA

This article discusses SIMPLE aspects of sockets!..

Single Sleeping Barber Problem applet

This is a small applet I created during the exams when I was studying operating systems. It demonstrates my solution to the sleeping barber problem (with one barber) using semaphores. No deadlocks should occur. An example can be found on http://barbershop.vankeer.eu/

Tetris1

To provide entertainment for the users.

TrigPractice

You can practice your ability to select the correct trigonometric expression (limited to sin, cos and tan)

Toss Coin Applet

It demonstrate toss-coin game. It generates random numbers that represents tail and head.

The Sieve of Erasthosthenes Applet

This applet detects and display prime numbers from 1 to 1,000 but in a different way of using a single subscripted array....

The Tortoise and the Hare Applet

It Demonstrate the most favorite race on fairy tale stories, "The tortoise and the hare".

Trusted Applet Caching

I will show you the example of how to create a simple trusted applet that will gain access to a local text file, which you will specify. (Please note that you will need to use JDK 1.3 or higher.)

TrafficLight

Open end see You!! :-)

Typing Speed

Check UR Typing Speed.I have modified the code a bit so that The textArea will be in focus as soon Generate button is clicked.Please rate my work before u leave.

Time Series Example, Random Walk and White Noise Processes Applet

This simple applet shows random walk and white noise processes in time series. It is a small code to understand random number generating, creating new awt components, working with threads.

Two Dimensional Transformation Applet

2DTransformation Applet

two- D Rotation of Rectangle

Rotation of 2D Rectangle

Universe.java

This java applet simulates in a representation a simple 1d universe bent around the 2d. The circle represents space over a time, and the dot is the singularity from the big bang assumtion.

UTM_chat system

Chat system, the program permits the communication of users in a LAN environment.

Web Banner

Web Banner

Walking Floppy Animation Applet

This is an applet of a walking floppy animation. Check it out. Obtain an animation image (.gif). Use Jasc Animation Shop software to open the .gif file and save each individual frame as .JPG in a folder. For this program, I have a series of .JPG images in the folder "Image".

Personal tools