Signed Applet--please tell me something about the basics of it

Hi guys .
I am in the process of developing a GUI using an applet.The GUI involves reading a file given as input and parsing it for punctuaion errors.
This applet has to write to a file called "errors.txt" to report about errors.I came to know from a friend that applets do not have access permissions to write files to disk .This feature can be achieved using Signed Applets .If there is anyone who can tell me about the basics of Signed Applets then please help me as to how I can make changes in my program and elsewhere so that my program is able to do that.
My program is as follows(if youm need it):
import java.io.*;
import java.awt.*;
import java.applet.*;
public class textcopy extends Applet
public void init()
Choice ch=new Choice();
ch.addItem("Click Next to continue.");
ch.addItem("Framework Properties");
Label l1=new Label(" ");
Label nm=new Label("Please specify the errors that you want to be checked for in the file:");
Label a1=new Label("Write the pathname here:");
ta=new TextArea(1,20);
B=new Button("OK");
Checkbox b1=new Checkbox("Punctuation errors");
Checkbox b2=new Checkbox("Finding whether a key string is misspelt");
Label l2=new Label("Please select the key string from one of these:");
add(a1);
add(ta);
add(B);
add(l1);
add(nm);
add(b1);
add(b2);
add(l2);
add(ch);
TextArea ta;
Button B;String str="";
public boolean action(Event e,Object obj)
if(e.target instanceof Button)
repaint();
return true;
return false;
public void paint(Graphics g)
String s=ta.getText();
try{
FileReader fin=new FileReader(s);
PrintWriter fout=new PrintWriter(new BufferedWriter(new FileWriter("c:\\avichal\\java\\errors.txt")));
parse(fin,fout);
fin.close();
fout.close();
catch(IOException e)
Label avi=new Label("arsehole!!!");
add(avi);
//g.drawString("SOme Error",500,300);
//e.printStackTrace();
public static void parse(FileReader fin,PrintWriter fout)throws IOException
String str="Punctuation Errors:\n"; /*Heading*/
fout.println(str);
fout.println("========================================================");
int i=0,j=0,k=0,l=0;
j=fin.read();
do{
do{
i=j;
j=fin.read();
}while((!((char)i=='('&&(char)j=='R'))&&(j!=-1));
if(j==-1)break;
j=fin.read();
j=fin.read();
j=fin.read();
j=fin.read();
j=fin.read();
j=fin.read();
j=fin.read();
char refnum[]=new char[5];
l=0;
while((char)j!=')')
j=fin.read();
if((char)j!=')')
refnum[l++]=(char)j;
fout.write("REF. NUM: ");
for(int a=0;a<l;a++)fout.write(refnum[a]);fout.write(": ");
j=fin.read();
l=0;
do{
i=j;
j=fin.read();
if((char)i=='\n')
k++;
//'k' gives the line no. and finally the no. of lines and neglects the lines before first occurence of "Ref Num
if(((char)i==',')&&((char)j!=' '))
l++;
String st=l+". error at line number "+ (k+1) + ": There should be "+
"a space after comma(,) \n";
fout.println(st);
if(((char)i=='.')&&((char)j!=' '))
l++;
String st=l+". error at line number "+ (k+1) + ": There should be "+
"a space after period(.) \n";
fout.println(st);
if(((char)i=='.')&&((char)j=='.'))
l++;
String st=l+". error at line number "+ (k+1) + ": There should not be "+
"two periods(.) together \n";
fout.println(st);
if(((char)i==' ')&&((char)j=='.'))
l++;
String st=l+". error at line number "+ (k+1) + ": There should not be "+
"a space before a period(.) \n ";
fout.println(st);
}while((!((char)i=='-' && (char)j=='T')) && j!=-1);
fout.println(" ");
/*if(l==0)
fout.println("No errors!!!!");*/
if(j==-1)break;
}while(j!=-1);

You need to understand many concepts before you start work on .
Here is some useful links for you
1. http://mindprod.com/jgloss/signedapplets.html
2. http://java.sun.com/products/plugin/reference/codesamples/index.html examples of 1.4 plugin
3. http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/contents.html
4. http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/faq/basics.html
5. http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/rsa_signing.html

Similar Messages

  • Will not allow me to sign into messenger or FaceTime, something about the connection but everything checks to fine and the mac book works fine for the wife?

    Will not allow me to sign into messenger or FaceTime, saying something about connection, but everything is fine and the Mac book air works fine for the wife>

    Hi Alexrichard,
    I have an article for you that will help you troubleshoot this sign in issue:
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    http://support.apple.com/kb/TS3970
    Thanks for coming to the Apple Support Communities!
    Cheers,
    Braden

  • May someone tell me  something about the thread

    The ODP.NET document seems to have little words about the thread,or maybe it is the database who deals with the thread. i have some question aboue it.
    I define a variable in a package specification,
    CREATE OR REPLACE PACKAGE TSTpkg
    is
    counter NUMBER DEFAULT 0;
    END TSTpkg;
    then deal with it in a function
    FUNCTION addc RETURN NUMBER
    AS
    cnt NUMBER:=0;
    BEGIN
    LOOP
    EXIT WHEN admin.tstpkg.counter>100;
    tstpkg.counter:=admin.tstpkg.counter+1;
    cnt:=cnt+1;
    END LOOP;
    RETURN cnt;
    the cnt indicate the number the loop runs,in a single thread program,it will always return 100,for counter is default by 0.Then in C#, i wrote a methord to invoke the funciton"addc" and return the value the function"addc" returns.As far as I am concerned,the variable defined in the package specification should be seen as static element,so if two thread access it, there is just one counter,and the sum of the values return by the two methords invoked in two threads should be 100. But the result is each of the thread returns 100.
    How does the database treat the variable defined in the package specification on the earh?And shouldn't I see it as static one ?
    Who can tell me truth?3ks very much
    (PS: I am Chinese, please forgive me poor engilsh)

    Hi,
    Each database session gets it's own copy of plsql package variables, they're not shared between sessions.
    Cheers
    Greg

  • HT1918 Please tell us more about the issue

    I want to change my apple store to kuwait

    Settings > iTunes & App Stores > tap your Apple ID: > View Apple ID > Country/Region
    If you find that it is set to the correct region, log out of your iTunes Store account, restart your iPhone, and sign into your account again.
    Regards.
    Forum Tip: Since you're new here, you've probably not discovered the Search feature available on every Communities page, but next time, it might save you time (and everyone else from having to answer the same question multiple times) if you search a couple of ways for a topic, both in the relevant forums and in the Apple Knowledge Base, before you post a question.

  • Pls tell me something about Bank configuration

    Hi,
    Please tell me something about Bank configuration
    Thanks

    Hi,
    Please refer the following for Bank Configuration steps:
    Bank configuration:
    To set up Electronic Bank Statements (EBS)
    1. Create House Bank and Account ID (FI12)
    2. Setup EDI Partner Profile for FINSTA Message Type (WE20)
    3. Configure Global Settings for EBS (IMG)
    - Create Account Symbols
    - Assign Accounts to Account Symbols
    - Create Keys for Posting Rules
    - Define Posting Rules
    - Create Transaction Types
    - Assign External Transaction Types to Posting Rules
    - Assign Bank Accounts to Transaction Types
    4. Define Search String for EBS(Optional)
    - Search String Definition
    - Search String Use
    5. Define Program and Variant Selection
    Additional information is also available in the SAP Library under:
    Financial Accounting > Bank Accounting (FI-BL) > Electronic Bank Statement >
    Electronic Account Statement Customizing.
    Bank Reconcilliation Statement
    The following are the steps for BRS:
    Create Bank Master Data - This can be created through T.Code FI01 or you can also create the house bank through IMG/FA/Bank accounting/Bank account
    2. Define House Bank
    3. Set up Bank selection payment programe- IMG/FA/ARAP/BT/AUTOIP/PM/Bank selection for payment prg.
    a. setup all co codes for payment transaction - Customer and vendors
    b.setup paying co codes for payment transactions
    c.setup payment method per country
    d.setup payment method per co code for payment transaction
    e.setup bank determination for payment transaction
    Please go for Cheque mangement using T code FCHI (IMG/FA/ARAP/BT/OP/AutoOp/PaymentMedia/CheckManagement) and for void reasons FCHV. You can create Bank Reconcilliation statement by TC FF67 (SAP/AC/Treasury/CashManagement/Incomings/ManualBankStatement) . Don't forget to keep the opening Balance as zero. Use FBEA for post process.
    All the steps together will lead to (FF67) Bank reconciliation statement.
    Thanks,
    Prithwiraj.

  • I can't get the leapfrog connect to open.  It says something about the Testgen fonts.  Please help.

    I need help with the leapfrog connect application.  It won't open and it keeps saying something about the font Testgen.  Please help me if you can.

    Considering that the "Most recent updates" link on the Leapfrog Connect homepage is dated November 2009, I wouldn't hold out too much hope that your software is compatible with Lion, released in July 2011.

  • After updated to ios7. my iphone 4s get warm on my iphone and i go to app store to download something that i purchased from the app store...it didn't come out anything. please tell me why or the iphone updated wrong

    after updated to ios7. my iphone 4s get warm on my iphone and i go to app store to download something that i purchased from the app store...it didn't come out anything. please tell me why or the iphone updated wrong. please tell me why it happens like this. thank you

    after updated to ios7. my iphone 4s get warm on my iphone and i go to app store to download something that i purchased from the app store...it didn't come out anything. please tell me why or the iphone updated wrong. please tell me why it happens like this. thank you

  • My iPod classic has stop working and when ever i try to synch it there is a alert saying that do not disconnect it and there are some songs which when i try to play the iPod re-starts again so please tell me what is the issue

    my iPod classic has stop working and when ever i try to synch it there is a alert saying that do not disconnect it and there are some songs which when i try to play the iPod re-starts again so please tell me what is the issue and some sound is comming from the back pannel .
    so please do something about it and give me the solution
    thank you,
    Saajan jain

    To give you something, I need something too, like
    How old is the Ipod? (if it is still under warranty, then send it to Apple service shop)
    Are you running Windows iTunes or Mac iTunes?
    What do you see on the iPod screen?
    My guess is, your iPod classic is more than 2 years old and out of warranty, and the hardisk has gone kaput! and need to be replaced.
    Have a nice day!

  • The audio is played through the tv, but the picture plays the first still shot of the moment it is connected then says a message saying "we're sorry" then something about the network provider.

    The audio is played through the tv, but the picture plays the first still shot of the moment it is connected then says a message saying "we're sorry" then something about the network provider.

    Welcome to the Apple Community.
    Please provide a little more detail, such as what you are trying to do when this occurs and exactly what the message says.

  • Can we start Windows Phone 10 ? If yes, please tell me what is the software requirements.

    Dear Sir/Mam,
    Please give me a suggestion for...
    Can we start Windows Phone 10 ? If yes, please tell me what is the software requirements.  
    Thanks & Regards,
    SrinivaaS.

    For information on the Windows Phone 10 preview please see the Windows Insider forums on
    http://answers.microsoft.com/en-us/insider/forum .
    Information about developing for Windows Phone 10 will be available at the
    Build conference at the end of April.
    Announcing the first build of Windows 10 Technical Preview for Phones
    A first look at the Windows 10 universal app platform

  • Ipad3, using iPhoto, running the latest IOS6, I'm a photographer, please tell me why has the delete (X) been removed in iPhoto?

    Ipad3, using iPhoto, running the latest IOS6, I'm a photographer, please tell me why has the delete (X) been removed in iPhoto?

    Ralph, again thanks for the input, but I respectfully disagree.  I have been using iPhoto with the iPad3 since it was launched.  I have taken and imported at a minimum 6-7k pictures and have used the same methodology of editing and deleting photos (inside of iPhoto app), using the delete (X) on the task bar.  I'm an IT project manager as well as an certified software consultant, in other words, I have a better than average knowledge and understanding of apps and the functionality.  My only point is that something that was quite functional and very user friendly has now become far more difficult. It was only 9 bucks and a pretty good little piece of software, I'll just find something else that is less time consuming and will check back for iPhoto update and from time to time.  Again, thank you for your feedback. 

  • Tell me something about bending of iPhone 6Plus

    Tell me something about bending of iPhone 6Plus ?

    What's to tell?  If you put enough pressure/force on any smartphone, it will bend or break.  There isn't a smartphone in the world that won't suffer damage if enough pressure/force is used, and the iPhone 6 Plus is sturdier than the average, based upon Consumer Reports tests.
    Put it in a protective case to help minimize the risk.

  • Would someone tell me something about multithread and multiprocessor

    Hey, would you be so kind to tell me something about how to progrmme with using multithread in multiprocessro? and where can I find something about it? My problem is that
    Assume that you have to write a computer program that will receive as input a single array
    storing a large number of integers. The program has to compute the prefix sums of the
    number sequence.
    Given a sequence of numbers x1, x2, ..., xn, the prefix sums are the partial sums:
    s1 = x1
    s2 = x1 + x2
    sn = x1 + x2 + ... + xn
    �You have to be prepared to write a program for program should be able to use a variable, user-specified, number of processors. For
    example, the user should be able to run the program using any number of processors P
    between 1 and 16. The number of processors P can either be selected using a command
    line argument or the program can prompt the user.
    �Your program should be able to sum a variable, user-specified, number of integers. The
    integers in the input sequence should be randomly generated inside your program. (That
    is, the user will input n, and the program will then randomly generate n numbers.)
    �Your program should print out (either to the standard output or to a file) in ascending
    order the prefix sums computed: s1, s2, �, sn.
    Can someone give me some help? I have no idea about how to do it?
    thanks a lot of

    I think perhaps you are asking about how to create threads in Java? I'm not sure, but I'll give you some background anyway. Basically all that you need to know is documented in the class java.lang.Thread. If you want a class to run on a separate thread then you can do one of two things:
    (a) define a class that extends Thread.
    (b) define a class that implements Runnable.
    I prefer the latter, but it's up to you. So, for example, if I have some computationally expensive algorithm to execute I would define a class like this:
    public class ImExpensive implements Runnable {
    ����public void run() {
    ��������<insert code here>
    ����}
    Then when you want to run the algorithm you do this:
    ����ImExpensive o = new ImExpensive();
    ����new Thread(o).start();
    The second line in this case constructs a thread that the object 'o' can run on (the start() method causes the run() method in the ImExpensive class to execute).
    Now, as for running on multi-processors, I have never done this so I am not too sure. But all that you have to do is figure out a way of associating the thread that was created with a particular processor.
    Also, be careful when using threads. Everything will be OK if your computations are mutually exclusive (ie: they aren't interdependent). If they aren't then you might run into what is sometimes called "the racehorse problem". This is a phenomenon that occurs because you can't guarantee which threads are going to finish first or indeed the order of interleaved operations. It's difficult to describe but this tutorial may help you out.
    http://java.sun.com/docs/books/tutorial/essential/threads/
    Hope that helps. :)
    Ben

  • I am unable to play a downloaded HD movie from iTunes. SD movies play OK. An error popped up saying something about the display not suitable for HD movies but now all I get is a blank window. I have tried changing the display resolution to no avail.

    I have sownloaded an HD movie from iTunes store and when I attempted to play it on my Windows 7 PC a error message popped up saying something about the display not being compatible for HD movies. I have tried changing the display resolution several times but it didn't help. Now it just comes up with a blank screen when I attempt to play it. SD movies work fine. I have the latest version of iTunes installed.
    Can anyone help me resolve this problem?

    Apparently the display is required to be HDCP compatible to view HD movies in iTunes. My display isn't so this is my problem. I contacted Apple support and they have agreed to credit me for the HD movie and I have now downloaded the SD version.

  • Hi i have  an iphone 4 which is from canada nd i have seen one sim inside it which is a canadian sim ,iam staying in india so can i use that phone in india and please tell me what are the steps ihave to take for using that canadian phone in india

    hi i have  an iphone 4 which is from canada nd i have seen one sim inside it which is a canadian sim ,iam staying in india so can i use that phone in india and please tell me what are the steps ihave to take for using that canadian phone in india

    Only the carrier to whom the device is locked can authorize it's unlocking.  Contact the carrier to see if they offer unlocking and if you qualify.

Maybe you are looking for

  • How can I get a hidden back

    How can i get a hidden app back on my home screen of my iPhone It was purchased and then deleted by accident

  • Why doesn't "include/object/text from file" work?

    I want to include (link) text from other Word documents to a  main  Word document and I use "include/object/text from file" (Word function) It works fine when I do so in "H:", but doing exactly the same in the Sharepoint environement result in "nothi

  • SOAP error in XI

    Hi All, Scenario is Webservice -> SAP XI -> SAP ECC. When webservice is sending message XI, Its reaching to XI and failing in XI. Its giving following error in XI: N  *** ERROR => SsfVerify failed (see note 1055856). [ssoxxsgn.c   144] N   SsfVerify

  • How do i get around having to put my credit card details into itunes?

    When trying to set up an itunes account it requests credit card details. This is an issue as we have 50 ipads at a our work place. Does anyone know a work around or am I missing simple tick box? Tanks

  • How do I turn off the preview screen for my in box with my email?

    When I open up my email I don't want to see part of the message showing at the bottom of the screen. All I want to see are the new and old addressed messages. I had this turned off but for some reason it has come back and I can't remember how I got r