File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Simple: Turning A Program Into An Applet

 
Jason Newman
Ranch Hand
Posts: 53
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is my first attempt to turn some of my programs into applets for my class portfolio project for WebDesign. I'm going to take some programs and turn them into applets to be used and what not. I've never done this before, and all help will be greatly appreciated. Also here is the code and exejars for my programs.

Addition: http://www.mediafire.com/file/s2yv22754u5240k/Addition.jar



Tic-Tac-Toe with AI(Code only, I couldn't get this into a jar)



Color Chooser http://www.mediafire.com/file/447zy7c9tqrwd1p/Color%20Slider.jar


Thank you!
 
Lester Burnham
Rancher
Posts: 1337
 
Jason Newman
Ranch Hand
Posts: 53
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


How do I 'use' it?
 
Lester Burnham
Rancher
Posts: 1337
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd start by reading the comments at the top of the class. It gives an example of how to use it.
Other than that, it's an applet - are you familiar with how to deploy applets in general?
 
Jason Newman
Ranch Hand
Posts: 53
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I feel stupid, but no I don't. Not at all. Not even a little.
 
Lester Burnham
Rancher
Posts: 1337
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In that case, check out http://download.oracle.com/javase/tutorial/uiswing/components/applet.html. You need a Java class that extends javax.swing.JApplet, and an HTML file that contains an APPLET tag that points to this class. That page has an example of both; start by getting that up and running.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic