This commit is contained in:
2024-08-07 09:16:27 -04:00
parent fdfadd5c7e
commit 5f971cf684
5200 changed files with 731717 additions and 0 deletions

BIN
java/PROTO/EDITCO~1.CLA Normal file

Binary file not shown.

13
java/PROTO/EDITCO~1.JAV Normal file
View File

@@ -0,0 +1,13 @@
import java.awt.*;
public class EditControl extends TextField
{
public String getText()
{
return paramString();
}
}

BIN
java/PROTO/IMAGE/BLANK.GIF Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 B

BIN
java/PROTO/IMAGE/DASH.GIF Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 B

BIN
java/PROTO/IMAGE/EIGHT.GIF Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 B

BIN
java/PROTO/IMAGE/FIVE.GIF Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 B

BIN
java/PROTO/IMAGE/FOUR.GIF Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 B

BIN
java/PROTO/IMAGE/LED.GIF Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 631 B

BIN
java/PROTO/IMAGE/NINE.GIF Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 B

BIN
java/PROTO/IMAGE/ONE.GIF Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

BIN
java/PROTO/IMAGE/SEVEN.GIF Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 B

BIN
java/PROTO/IMAGE/SIX.GIF Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 B

BIN
java/PROTO/IMAGE/THREE.GIF Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 B

BIN
java/PROTO/IMAGE/TWO.GIF Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 B

BIN
java/PROTO/IMAGE/ZERO.GIF Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 B

28
java/PROTO/INDEX~1.HTM Normal file
View File

@@ -0,0 +1,28 @@
<html>
<head>
<title>proto</title>
</head>
<body>
<hr>
<TITLE>Sean Kessler's Home Page</TITLE>
<META NAME="GENERATOR" CONTENT="Mozilla/3.01Gold (Win95; U) [Netscape]">
<SCRIPT LANGUAGE="JavaScript">
var leave=true;
function Leave()
{
/*if (leave)
open("ftp://127.0.0.1");*/
}
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#FFFFFF" ONUNLOAD="Leave()">
<applet code=IPLed.class id=IPLed width=420 height=200 >
<param name=address value="128.128.128.128">
</applet>
</html>

BIN
java/PROTO/IPLED~1.CLA Normal file

Binary file not shown.

39
java/PROTO/IPLED~1.JAV Normal file
View File

@@ -0,0 +1,39 @@
import java.awt.*;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Color;
import java.util.Date;
import java.awt.Frame;
import java.awt.image.*;
import java.net.*;
public class IPLed extends java.applet.Applet implements Runnable
{
Thread mThread;
public void init()
{
repaint();
}
public void run()
{
InetAddress inetAddress;
try{inetAddress=InetAddress.getLocalHost();}
catch(UnknownHostException exception){showStatus("unknown host.");return;}
showStatus(inetAddress.toString());
repaint();
}
public void start()
{
if(mThread==null){mThread=new Thread(this);mThread.start();}
}
public void stop()
{
if(null!=mThread){mThread.stop();mThread=null;}
}
public void paint(Graphics graphics)
{
}
}

BIN
java/PROTO/JFOO~1.CLA Normal file

Binary file not shown.

98
java/PROTO/JFOO~1.JAV Normal file
View File

@@ -0,0 +1,98 @@
import java.awt.*;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Color;
import java.util.Date;
import java.awt.Frame;
import java.awt.image.*;
public class JFoo extends java.applet.Applet implements Runnable
{
Font mFont=new Font("TimesRoman",Font.BOLD,36);
Date mDate;
Thread mThread;
Color mColor=new Color(255,0,0);
Color mBlack=new Color(192,192,192);
final int smImageCount=12;
Image[] mLedImages=new Image[smImageCount];
String mStrParam;
public void init()
{
mLedImages[0]=getImage(getCodeBase(),"image/zero.gif");
mLedImages[1]=getImage(getCodeBase(),"image/one.gif");
mLedImages[2]=getImage(getCodeBase(),"image/two.gif");
mLedImages[3]=getImage(getCodeBase(),"image/three.gif");
mLedImages[4]=getImage(getCodeBase(),"image/four.gif");
mLedImages[5]=getImage(getCodeBase(),"image/five.gif");
mLedImages[6]=getImage(getCodeBase(),"image/six.gif");
mLedImages[7]=getImage(getCodeBase(),"image/seven.gif");
mLedImages[8]=getImage(getCodeBase(),"image/eight.gif");
mLedImages[9]=getImage(getCodeBase(),"image/nine.gif");
mLedImages[10]=getImage(getCodeBase(),"image/dash.gif");
mLedImages[11]=getImage(getCodeBase(),"image/blank.gif");
mStrParam=new String(getParameter("address"));
if(null==mStrParam)mStrParam="255.255.255.255";
MediaTracker mediaTracker=new MediaTracker(this);
for(int imageIndex=0;imageIndex<smImageCount;imageIndex++)mediaTracker.addImage(mLedImages[imageIndex],imageIndex);
try(mediaTracker.waitForAll());
catch(InterruptedException ie){;}
repaint();
}
public void run()
{
repaint();
}
public void start()
{
if(mThread==null){mThread=new Thread(this);mThread.start();}
}
public void stop()
{
if(null!=mThread){mThread.stop();mThread=null;}
}
public void paint(Graphics graphics)
{
drawLEDString(mStrParam,graphics);
}
public void drawLEDString(String strLED,Graphics graphics)
{
int strLength=strLED.length();
int imageWidth;
int imageHeight;
Point ptLoc;
ptLoc=new Point(4,4);
imageWidth=mLedImages[0].getWidth(this);
imageHeight=mLedImages[0].getHeight(this);
for(int strIndex=0;strIndex<strLength;strIndex++)
{
char strChar=strLED.charAt(strIndex);
if('0'==strChar)graphics.drawImage(mLedImages[0],ptLoc.x,ptLoc.y,this);
else if('1'==strChar)graphics.drawImage(mLedImages[1],ptLoc.x,ptLoc.y,this);
else if('2'==strChar)graphics.drawImage(mLedImages[2],ptLoc.x,ptLoc.y,this);
else if('3'==strChar)graphics.drawImage(mLedImages[3],ptLoc.x,ptLoc.y,this);
else if('4'==strChar)graphics.drawImage(mLedImages[4],ptLoc.x,ptLoc.y,this);
else if('5'==strChar)graphics.drawImage(mLedImages[5],ptLoc.x,ptLoc.y,this);
else if('6'==strChar)graphics.drawImage(mLedImages[6],ptLoc.x,ptLoc.y,this);
else if('7'==strChar)graphics.drawImage(mLedImages[7],ptLoc.x,ptLoc.y,this);
else if('8'==strChar)graphics.drawImage(mLedImages[8],ptLoc.x,ptLoc.y,this);
else if('9'==strChar)graphics.drawImage(mLedImages[9],ptLoc.x,ptLoc.y,this);
else if('.'==strChar)graphics.drawImage(mLedImages[10],ptLoc.x,ptLoc.y,this);
else graphics.drawImage(mLedImages[11],ptLoc.x,ptLoc.y,this);
ptLoc.x+=imageWidth;
}
graphics.setColor(new Color(48,64,0));
graphics.drawLine(3,3,ptLoc.x,3);
graphics.drawLine(3,3,3,imageHeight+4);
graphics.setColor(new Color(175,192,224));
graphics.drawLine(3,imageHeight+4,ptLoc.x,imageHeight+4);
graphics.drawLine(ptLoc.x,3,ptLoc.x,imageHeight+4);
graphics.setColor(new Color(96,143,208));
graphics.drawRect(2,2,(ptLoc.x+1)-2,imageHeight+3);
graphics.setColor(new Color(175,192,224));
graphics.drawLine(1,1,ptLoc.x+2,1);
}
}

135
java/PROTO/PROTO.MAK Normal file
View File

@@ -0,0 +1,135 @@
# Microsoft Developer Studio Generated NMAKE File, Format Version 4.20
# ** DO NOT EDIT **
# TARGTYPE "Java Virtual Machine Java Workspace" 0x0809
!IF "$(CFG)" == ""
CFG=proto - Java Virtual Machine Debug
!MESSAGE No configuration specified. Defaulting to proto - Java Virtual\
Machine Debug.
!ENDIF
!IF "$(CFG)" != "proto - Java Virtual Machine Release" && "$(CFG)" !=\
"proto - Java Virtual Machine Debug"
!MESSAGE Invalid configuration "$(CFG)" specified.
!MESSAGE You can specify a configuration when running NMAKE on this makefile
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "proto.mak" CFG="proto - Java Virtual Machine Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "proto - Java Virtual Machine Release" (based on\
"Java Virtual Machine Java Workspace")
!MESSAGE "proto - Java Virtual Machine Debug" (based on\
"Java Virtual Machine Java Workspace")
!MESSAGE
!ERROR An invalid configuration is specified.
!ENDIF
!IF "$(OS)" == "Windows_NT"
NULL=
!ELSE
NULL=nul
!ENDIF
################################################################################
# Begin Project
# PROP Target_Last_Scanned "proto - Java Virtual Machine Debug"
JAVA=jvc.exe
!IF "$(CFG)" == "proto - Java Virtual Machine Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir ""
# PROP BASE Intermediate_Dir ""
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir ""
# PROP Intermediate_Dir ""
# PROP Target_Dir ""
OUTDIR=.
INTDIR=.
ALL : "$(OUTDIR)\JFoo.class"
CLEAN :
-@erase "$(INTDIR)\JFoo.class"
# ADD BASE JAVA /O
# ADD JAVA /O
!ELSEIF "$(CFG)" == "proto - Java Virtual Machine Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir ""
# PROP BASE Intermediate_Dir ""
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir ""
# PROP Intermediate_Dir ""
# PROP Target_Dir ""
OUTDIR=.
INTDIR=.
ALL : "$(OUTDIR)\IPLed.class"
CLEAN :
-@erase "$(INTDIR)\IPLed.class"
# ADD BASE JAVA /g
# ADD JAVA /O
# SUBTRACT JAVA /g
!ENDIF
################################################################################
# Begin Target
# Name "proto - Java Virtual Machine Release"
# Name "proto - Java Virtual Machine Debug"
!IF "$(CFG)" == "proto - Java Virtual Machine Release"
!ELSEIF "$(CFG)" == "proto - Java Virtual Machine Debug"
!ENDIF
################################################################################
# Begin Source File
SOURCE=.\index.html
!IF "$(CFG)" == "proto - Java Virtual Machine Release"
!ELSEIF "$(CFG)" == "proto - Java Virtual Machine Debug"
!ENDIF
# End Source File
################################################################################
# Begin Source File
SOURCE=.\IPLed.java
!IF "$(CFG)" == "proto - Java Virtual Machine Release"
"$(INTDIR)\JFoo.class" : $(SOURCE) "$(INTDIR)"
!ELSEIF "$(CFG)" == "proto - Java Virtual Machine Debug"
"$(INTDIR)\IPLed.class" : $(SOURCE) "$(INTDIR)"
!ENDIF
# End Source File
# End Target
# End Project
################################################################################

BIN
java/PROTO/PROTO.MDP Normal file

Binary file not shown.

86
java/PROTO/SCRAPS.TXT Normal file
View File

@@ -0,0 +1,86 @@
public class IPLed extends java.applet.Applet implements Runnable
{
Thread mThread;
final int smImageCount=12;
Image[] mLedImages=new Image[smImageCount];
String mStrParam;
public void init()
{
mLedImages[0]=getImage(getCodeBase(),"image/zero.gif");
mLedImages[1]=getImage(getCodeBase(),"image/one.gif");
mLedImages[2]=getImage(getCodeBase(),"image/two.gif");
mLedImages[3]=getImage(getCodeBase(),"image/three.gif");
mLedImages[4]=getImage(getCodeBase(),"image/four.gif");
mLedImages[5]=getImage(getCodeBase(),"image/five.gif");
mLedImages[6]=getImage(getCodeBase(),"image/six.gif");
mLedImages[7]=getImage(getCodeBase(),"image/seven.gif");
mLedImages[8]=getImage(getCodeBase(),"image/eight.gif");
mLedImages[9]=getImage(getCodeBase(),"image/nine.gif");
mLedImages[10]=getImage(getCodeBase(),"image/dash.gif");
mLedImages[11]=getImage(getCodeBase(),"image/blank.gif");
mStrParam=new String(getParameter("address"));
if(null==mStrParam)mStrParam="255.255.255.255";
MediaTracker mediaTracker=new MediaTracker(this);
for(int imageIndex=0;imageIndex<smImageCount;imageIndex++)mediaTracker.addImage(mLedImages[imageIndex],imageIndex);
try(mediaTracker.waitForAll());
catch(InterruptedException ie){;}
repaint();
}
public void run()
{
repaint();
}
public void start()
{
if(mThread==null){mThread=new Thread(this);mThread.start();}
}
public void stop()
{
if(null!=mThread){mThread.stop();mThread=null;}
}
public void paint(Graphics graphics)
{
drawLEDString(mStrParam,graphics);
}
public void drawLEDString(String strLED,Graphics graphics)
{
int strLength=strLED.length();
int imageWidth;
int imageHeight;
Point ptLoc;
ptLoc=new Point(4,4);
imageWidth=mLedImages[0].getWidth(this);
imageHeight=mLedImages[0].getHeight(this);
for(int strIndex=0;strIndex<strLength;strIndex++)
{
char strChar=strLED.charAt(strIndex);
if('0'==strChar)graphics.drawImage(mLedImages[0],ptLoc.x,ptLoc.y,this);
else if('1'==strChar)graphics.drawImage(mLedImages[1],ptLoc.x,ptLoc.y,this);
else if('2'==strChar)graphics.drawImage(mLedImages[2],ptLoc.x,ptLoc.y,this);
else if('3'==strChar)graphics.drawImage(mLedImages[3],ptLoc.x,ptLoc.y,this);
else if('4'==strChar)graphics.drawImage(mLedImages[4],ptLoc.x,ptLoc.y,this);
else if('5'==strChar)graphics.drawImage(mLedImages[5],ptLoc.x,ptLoc.y,this);
else if('6'==strChar)graphics.drawImage(mLedImages[6],ptLoc.x,ptLoc.y,this);
else if('7'==strChar)graphics.drawImage(mLedImages[7],ptLoc.x,ptLoc.y,this);
else if('8'==strChar)graphics.drawImage(mLedImages[8],ptLoc.x,ptLoc.y,this);
else if('9'==strChar)graphics.drawImage(mLedImages[9],ptLoc.x,ptLoc.y,this);
else if('.'==strChar)graphics.drawImage(mLedImages[10],ptLoc.x,ptLoc.y,this);
else graphics.drawImage(mLedImages[11],ptLoc.x,ptLoc.y,this);
ptLoc.x+=imageWidth;
}
graphics.setColor(new Color(48,64,0));
graphics.drawLine(3,3,ptLoc.x,3);
graphics.drawLine(3,3,3,imageHeight+4);
graphics.setColor(new Color(175,192,224));
graphics.drawLine(3,imageHeight+4,ptLoc.x,imageHeight+4);
graphics.drawLine(ptLoc.x,3,ptLoc.x,imageHeight+4);
graphics.setColor(new Color(96,143,208));
graphics.drawRect(2,2,(ptLoc.x+1)-2,imageHeight+3);
graphics.setColor(new Color(175,192,224));
graphics.drawLine(1,1,ptLoc.x+2,1);
}
}

99
java/PROTO/SCRAPS~1.JAV Normal file
View File

@@ -0,0 +1,99 @@
import java.awt.*;
//import java.applet.Applet;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Color;
import java.util.Date;
import java.awt.Frame;
public class JFoo extends java.applet.Applet implements Runnable
{
Font mFont=new Font("TimesRoman",Font.BOLD,36);
Date mDate;
Thread mThread;
Color mColor=new Color(255,0,0);
Color mBlack=new Color(192,192,192);
TextField mCtlPrincipal;
TextField mCtlInterest;
TextField mCtlTerm;
public void init()
{
add(new Label("Principal",Label.LEFT));
add(mCtlPrincipal=new TextField("$100,000.00"));
add(new Label("Interest",Label.LEFT));
add(mCtlInterest=new TextField("8.00%"));
add(new Label("Term",Label.LEFT));
add(mCtlTerm=new TextField("360"));
add(new Button("Calculate"));
repaint();
}
public void run()
{
repaint();
// repaint();
// while(true)
// {
// mDate=new Date();
// repaint();
// try{Thread.sleep(1000);}
// catch (InterruptedException e);{}
// }
}
public void start()
{
if(mThread==null){mThread=new Thread(this);mThread.start();}
}
public void stop()
{
if(null!=mThread){mThread.stop();mThread=null;}
}
public void paint(Graphics graphics)
{
setBackground(mBlack);
graphics.setFont(mFont);
graphics.setColor(mColor);
}
public boolean action(Event event,Object object)
{
if(event.id==Event.KEY_RELEASE)
{
}
return true;
}
}
public void run()
{
repaint();
// repaint();
// while(true)
// {
// mDate=new Date();
// repaint();
// try{Thread.sleep(1000);}
// catch (InterruptedException e);{}
// }
}
public String makeString(int num)
{
Integer someInt=new Integer(num);
String strString=new String(someInt.toString());
String strFiller=new String();
int strLength=strString.length();
for(int i=strLength;i<3;i++)strFiller+="0";
return strFiller+strString;
}
public void drawItem(int itemIndex,Point itemPoint,Graphics graphics)
{
graphics.drawImage(mLedImages[itemIndex],itemPoint.x,itemPoint.y,this);
}

26
java/PROTO/VJ265~1.HTM Normal file
View File

@@ -0,0 +1,26 @@
<html>
<! NOTE - this file was generated by Microsoft Developer Studio because no HTML file was specified.
DO NOT EDIT this file. It will be regenerated each time you launch your applet.
To create a permanent HTML file,
1. Create a new text file and save it
2. Insert the file into your project
3. Select "Settings..." from the "Build" menu
a. Choose the "Debug" tab
b. Set the "Category" to "Browser"
c. In the "Parameters" section, select "Use parameters from HTML page"
d. Specify the new HTML file name in the edit box for "HTML page"
>
<head>
<title>JFoo</title>
</head>
<body>
<hr>
<applet
code=JFoo
width=200
height=200>
</applet>
<hr>
</body>
</html>