Docsity

Displaying a Text File in an Applet: A Step-by-Step Guide, Slides of Java Programming

Partial preview of the text

Download Displaying a Text File in an Applet: A Step-by-Step Guide and more Slides Java Programming in PDF only on Docsity!

Steps to Display a Text file in an Applet

Table of Contents

  • Initial Conditions
  • Source code screenshots
  • Creating a Jar File
  • Adding a text file in the Jar file
  • Uploading the files on Ftp Server
  • Viewing Applet on the website
  • Errors and Solutions

Source Code Screenshot

Source Code (Cont’d)

Creating a Jar file

Creating a Jar file (Cont’d)

Creating a Jar file (Cont’d)

Creating a Jar file (Cont’d)

Jar File Created

Screenshot of Data File

Adding a Text File to a Jar File

Adding a Text file to a Jar file

View of Jar file after adding the Text File – “data.txt”

Creating HTML File

  • HTML File is required to view the applet on the website
  • Name the HTML file with a convenient name
  • Save the file, in my case it is on the Desktop
  • The next slide will show the contents of the HTML file