Trying to make a higscore chart for applet

hey im trying to make an highscore applet for a mathquiz applet and i need it to save the users score possibly as a cookie ryte now i am using:
PrintWriter out
= new PrintWriter (new BufferedWriter (new FileWriter ("file.txt")));
But this only works on the HSA console, Also if anyone knows how to make an exit button exit the internet explorer that would help to. Thanks alot

Sorry Sabre. Just trying to be a little realistic is
all.I fealt you were a little too dogmatic and negative about the problems the OP might encounter.
>
Setting aside the server-side (servlet) problems,
here are two questions I have about saving the high
scores as a cookie
1. (How) are you going to save the cookie? Normally,
web browsers receive cookie updates and store them
automatically. But since you'll be connecting through
java, that won't happen. If that doesn't happen, how
does the client know (aside from kludging the applet)
what cookie to send along with its request?This link shows exactly how to do it (without the need for WebServer involvement).
http://www.wildtangent.com/developer/howtos/JSCookiesHowTo/
>
2. A year or so ago I spent a good deal of time
trying to fix up URLs and URLConnections so that I
could save and return cookies, since this is not
default functionality. I found that it was EXTREMELY
difficult to both extract the cookie and to add it to
the request. Perhaps you or others have had better
luck with this.
Right. Applets don't commonly allow you accessto
the
local file system. You can either report thescores
to the server (assuming you can put a servletthere)
or you can sign your jar file.
You're never going to get this to work either.Why won't the OP get this to work either? One can
easily self sign an Applet jar file and then allthe
user has to do is to agree to allow the Applet to
write the file!Again, sorry. My thought was that the work involved
in learning and implementing either the servlet or
local file system solution is going to take at least
as much time as everything else combined. It is true
that my experience with jarsigner and self-created
certicates is limited, but the times I have gone
through the process, it's just taken me forever.When the signing process is understood this is easy - even doing it manually. If one understand how to use Apache Ant then this is trivial to automate. If you would like to see a sample Ant script then I will post one (actually I use two scripts).

Similar Messages

  • I'm trying to make a "Submit" button for my existing UIPickerView. Help!

    Hi there! I’ve been tearing my hair out and searching the web high and low for an answer to a question I have about UIPickerView. I was hoping that perhaps you could help me out!
    I’m trying to make a “Submit” button for my existing UIPickerView.
    I’ve coded a 3 column UIPickerView into my app, and it works great. However I’d like to add a “Submit” button and connect it to my pickerview, so that once a user makes their selections and clicks “Submit,” the app searches an existing array for the user’s selected values.
    Any help would be appreciated! I hope I explained that okay, lol.
    Thanks,
    Brittany

    Check this one.
    http://support.apple.com/kb/HT2731

  • I'm trying to make a ring to for iPhone and about 20 sec into the playing of the song it fades out and goes silent. What am I doing wrong? Thanks

    I'm trying to make a ring to for iPhone and about 20 sec into the playing of the song it fades out and goes silent. What am I doing wrong? Thanks

    Im not sure what garage band is, but i can tell you the way apple recommends making ringtones. Highlight a song in iTunes, right click and select get info. Goto the options tab and youll see the time lengths (write down the ending time) for the start time type in where you want the ringtone to start, ringtones can only be 30 sec long so make the ending time 30 sec later. Exit it out of the info and while song highlighted goto the "advanced" tab at the top of iTunes where you will see an option that says "create aac version". after creating the aac version you will have a duplicate song in your iTunes, change the original back to the correct time length. Take the 30 sec aac version and drag it to your desktop, right click the icon and click "preferences" You will then be able to change the name of the file which will be somethign to the effect of "songnamehere.m4a" you just change the m4a to m4r. you now have a ringtone, drag the new file to iTunes where it will pop up in a new tab labled ringtones. If you cannot change the name of the file when it is on your desktop let me know and i will give you instuctions how to be able to change it. Once you get it figured out you can use any song you have on iTunes to make a ringtone.

  • I am trying to make a main menu for my project but I don't know where IDVD is located?

    I am trying to make a main menu but I read some info. and said I have to do it through IDVD and I tried it but can not find IDVD anywhere so I wanted to know if I have to purchase it or something and I also wanted to know how to create a main menu?

    depends on how old your Mac is ...
    newer machines do not come along with a pre-installed  iDVD (.. and iWeb ..) anymore; you have to purchase a boxed version of iLife11.
    if somehow iDVD is installed on your Mac, you should find it in your Apps-folder
    (or use Spotlight, search for iDVD) ...-

  • I am trying to make a numbers template for my Veterinary office.

    How do I make a range chart.  I want to have Numbers calculate a dose of anesthetic when I enter weight in pounds from weight ranges, i.e. 4 - 7 lbs = 0.12 mls, 7 - 9 lbs = 0.15 lbs, 9 - 11 lbs = .2 mls.  The other drug doses are based on mls/kg and I can calculate those from lbs or kgs.  Thanks for your help.

    I'll include a copy of my flow chart in Numbers and the columns of the dosing chart.  I want to be able to enter lbs in C2 for dogs and C3 for cats and have kgs and common drug doses displayed.  Then I'll print the sheet and use it to record anesthesia parameters and times and comments, too.  It then will be part of the permanent medical record. 
    The dose for DexDomitor for dogs is based on body surface area.  I could calculate Meter squared=10.1 X kg to the 2/3 power X 10 to the -4th power and then multiplying that time 0.375 would give MLs dose, too.  If that works, I need a formula for that math in Numbers.
    If I use MATCH or LOOKUP with a chart, where do I put the chart, on page or off page?  Can I link formulas together to recreate the chart?  i.e. 4 lbs is 0.12, 5 lbs is 0.12, etc, so that I can put all the formulas in the C2 cell? 
    Lbs
    Dose in MLs
    4-7
    0.12
    7-9
    0.15
    9-11
    0.20
    11-22
    0.29
    22-29
    0.38
    29-33
    0.44
    33-44
    0.51
    44-55
    0.60
    55-66
    0.69
    66-73
    0.75
    73-81
    0.81
    81-99
    0.90
    99-110
    0.99
    110-121
    1.06
    121-132
    1.13
    132-143
    1.19
    143-154
    1.26
    154-176
    1.35
    >176
    1.42

  • Trying to make a variable with for loop

    Trying to pick up a movieClip  instance from my library and set it on stage and make it clickable, (dropdown/dropup) menu). 
    Can anyone help with what I am doing wrong?
    var MenuItem1:Array = new Array("text1", "text2", "text3","text4");
    CreateM(MenuItem1.length);
    function CreateM(Menu1:Number):void
    for(var i:Number=0;i<MenuItem1.length; i++)
          var this["M1"+i]:TextField = new TextField();
          var this["M2"+i]:takki = new takki();
          this["M2"+i].y = this["M2"+i].y-(i*50)+(stage.stageHeight-this["M2"+i].height);
          this["M1"+i].text = MenuItem1[i];
          this["M1"+i].y = this["M1"+i].y-(i*20)+(stage.stageHeight-this["M1"+i].height);
          addChild(this["M2"+i]);
          addChild(this["M1"+i]);
          this["M2"+i].addEventListener(MouseEvent.MOUSE_OVER,clicking);
    function clicking(event:MouseEvent):void
    trace("I am clicking button"&&this["M2"]);

    Try something like this:
    var MenuItem1:Array = new Array("text1", "text2", "text3","text4");
    CreateM(MenuItem1.length);
    function CreateM(Menu1:Number):void
    for(var i:Number=0;i<Menu1; i++) { 
        this["M1"+i] = new TextField();
        this["M2"+i] = new takki();
        this["M2"+i].y = this["M2"+i].y-(i*50)+(stage.stageHeight-this["M2"+i].height);
        this["M1"+i].text = MenuItem1[i];
        this["M1"+i].y = this["M1"+i].y-(i*20)+(stage.stageHeight-this["M1"+i].height);
        addChild(this["M2"+i]);
        addChild(this["M1"+i]);
        this["M2"+i].addEventListener(MouseEvent.CLICK,clicking);
    function clicking(event:MouseEvent):void{
    trace("I am clicking button" && event.target.name);
    Be aware, that you have to work with the positioning, and that the TextFields are overlapping the takkis, so that the clicking is only possible in a minor fraction of the takkis.

  • Trying to make seperate sub pages for a website?

    I have a website that I would like to make sub pages for.
    Example www.marisaleigh.com/411
    Can I make sub pages in iweb? How can I do that?
    THANKS!
    Marisa

    You need to select some text or an object in order to make the enable hyperlink to become available.
    You can create a hyperlink to your payment page by adding some text (something like "Click here to order" or whatever), selecting the text and go to the link pane and select the Link to External page. Then put http://www.LASTARBABIES.com/payment into the URL window. Then you can format the link color and rollover color in the Format section of the link pane.
    The resulting link would look something like this: Click here to order". You can set the page to open in a new window or not.

  • Trying to make a better shortcut for moving mails to mailboxes - any ideas?

    Mail Act-On no longer works for me since upgrading to Yosemite, and the developer isn't sure if he can get it to (the problem seems to be that I also have the Japanese keyboard installed, but Act-On no longer works in that case, even when not using the Japanese keyboard). Anyway, there is a clunky sort of short-cut in Mail itself you can use to move messages: CMD+SHIFT+?.
    This opens up the Help > Search menu. If you search for the name of a mailbox you can then select the mailbox from the resulting search list and move or copy emails to the folder.
    It's clunky, because it takes more time, and oftentimes it doesn't indicate if you are moving or copying. But it's better than nothing. And quicker than going through the entire hierarchy of mailboxes to move it (I have a lot of mailboxes).
    I've been trying to create an easier short-cut than CMD+SHIFT+? because I use this all the time. But all my attempts to set a short-cut for the Mail app in the keyboard shortcut settings have failed. I wonder if it's because there is also a general search feature in Mail which interferes.
    Anybody know how to set a short-cut for Help > Search?
    Or even better, anybody know some tools for shortcuts to (1) move messages to mailboxes and (2) open mailboxes?
    Thanks,
    doug

    I found that the MsgFiler app available from the App store works very well for this.
    doug

  • New to Pshop, trying to make gradient drop shadow for webpage

    I am a newbie, just got Pshop and watching every tutorial I can find but can't seem to figure out how to make this graphic.  This is a background image for one of my websites (where I did not create the graphic).  Can anyone point me to a good tutorial or walk me through how to create this for a new site I am working on?  Thanks, Gary

    or... you could use CSS3 drop shadows on the containing element and skip the need for background images all together.
    otherwise I would defer to the list just provided... there seems to be some good tuts in there on how to do what you are looking for...
    the hickup you will run into is fading the shadow out at the bottom... this will require seperating the fx layer out and masking it off...
    or just masking the layer itself since the your background is the same color as the element.

  • Where is the "On My Mac" section? Tried to make a new folder for junk as a sub-folder in Trash. Didn't realize the location was set for "On My Mac" and now I can't find it.

    Want a junk folder that I can see. Also, I did see this question elsewhere with no answer: when an email is brown & says it's junk, there is no option for saying it's not junk and to not mark email from that sender as junk again.

    If the old ID is yours, and if your current ID was created by editing the details of this old ID (rather than being an entirely new ID), go to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iDevice, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • Im trying to make my logo bigger for my website but it just keeps coming out small whatever i do. He

    I just learnt to use Adobe Illustrator , the basics anyway. I am able to manipulate the size of the logo to almost scale in Illustrator. However, when I save the logo in JPEG/PNG for the web its always coming out smaller than i would like it to and i cant seem to get it to the size i want. Plz help me.

    Ricardo,
    You can set the exact pixel x pixel size in the Image Size window (the tab in the middle, after the Colors Table window).
    Normally, the W(idth) and H(eight) values are interlocked to ensure proportionate scaling, but they can be set individually if you untick onstrain proportions.
    The pixel x pixel size is the actual size of the image, and together with the resolution it determines the size on screen, in print, or whatever.
    Presuming your logo is vector artwork, you can set it to any scale before you Save for Web. If you choose the same size in points/pixels ((ruler) unit) as the final raster image, there should be no need to change the Image Size.

  • I am trying to make a free account for my ipad I am getting from my school. I followed the directions but that didnt help. How do I make a free account without credit/debit card information

    How do I make a free account without credit card information??????

    Check this one.
    http://support.apple.com/kb/HT2731

  • I am trying to make a Birthday card for my sons 2nd birthday, and It keeps saying both about the "default text" and now that it wont fit on the paper. but everything seems fine....HELP???

    please help!

    Are you using iPhoto '11 on a Mac?
    Try to print your Card (using the main menu bar "File > Print" or save the printed version to pdf.
    Then you can check, which text still is default. The default text will be missing from your print - see for example the screenshot below. Also you can check the measurements on your printed copy. In the print menu you can use the arrow buttons to step through the pages of your card.
    Regards
    Léonie

  • I'm trying to make a swatch book for our printery

    hi all,
    is it possible in Indesign to adjust the yellow value (or cyan, magenta and blacks) of lots of colours by increments of 5% at once?
    any suggestions on this matter is very welcome!
    greetings from Belgium,
    Tim

    Apologies my computer went mental!
    Ah ok.
    Here's a cool trick for you.
    Build a table that's 5x5
    Insert text that represents the percentage of the fill you require - set the text colour to None (so it doesn't show in the table)
    There's a "table heat map" script - that will give the cell the percentage fill related to the text that's in the cell.
    cs5 - Script to create heat map in InDesign 5.0 PC? - Graphic Design Stack Exchange
    Copy the text in the first link and paste to notepad (or equivalent (not MS Word) a plain text editor).
    And save it as "TableHeatMap.jsx"
    http://indesignsecrets.com/how-to-install-scripts-in-indesign.php

  • Need help to make a Pie Chart

    I am trying to draw a pie chart for the Uptime Report.
    I have the Following table definition.
    create table downtime_detail ( env_code number, down_start date, down_end date );
    insert into downtime_detail values (1,to_date('26-JAN-2008 02:00:00','DD-MON-YYYY HH24:MI:SS'),to_date('26-JAN-2008 03:00:00','DD-MON-YYYY HH24:MI:SS') );
    insert into downtime_detail values (2,to_date('26-JAN-2008 02:00:00','DD-MON-YYYY HH24:MI:SS'),to_date('26-JAN-2008 03:00:00','DD-MON-YYYY HH24:MI:SS') );
    insert into downtime_detail values (2,to_date('01-FEB-2008 02:00:00','DD-MON-YYYY HH24:MI:SS'),to_date('03-FEB-2008 03:00:00','DD-MON-YYYY HH24:MI:SS') );
    insert into downtime_detail values (2,to_date('15-FEB-2008 02:00:00','DD-MON-YYYY HH24:MI:SS'),to_date('15-FEB-2008 03:00:00','DD-MON-YYYY HH24:MI:SS') );
    insert into downtime_detail values (2,to_date('26-FEB-2008 02:00:00','DD-MON-YYYY HH24:MI:SS'),to_date('28-FEB-2008 03:00:00','DD-MON-YYYY HH24:MI:SS') );
    Now the Below Query returns me the values val1 and val2 on the basis of which I need to draw a Pie Chart.
    ==========================================================
    select round((DOWN/TOTAL)*100,2) val1 , round(100-((DOWN/TOTAL)*100),2) val2
    from
         (select sum((DOWN_END - DOWN_START)*24) DOWN from DOWNTIME_DETAIL where ENV_CODE=2 ) a ,
         (select ((sysdate - to_date('01-JAN-2008','DD-MON-YYYY')) * 24) TOTAL from dual ) b
    VAL1 VAL2
    3.64 96.36
    ==========================================================
    Can someone help me try do this ?
    Actually I tried but I couldnt put my custom query to get this Pie chart. Or if there is any other better approach please let me know.

    nikhilskamik,
    I believe all that you are missing in your sql is a NULL. Below is the help text for creating a Flash pie chart.
    Specify the SQL query that will populate your chart, for example:
    select null, ename, sal
    from emp
    Alternatively you can write a PL/SQL function return a SQL query, for example:
    begin
    return 'select null, ename, sal from emp';
    end;
    Your query should then read:
    select null,round((DOWN/TOTAL)*100,2) val1 , round(100-((DOWN/TOTAL)*100),2) val2
    from
    (select sum((DOWN_END - DOWN_START)*24) DOWN from DOWNTIME_DETAIL where ENV_CODE=2 ) a ,
    (select ((sysdate - to_date('01-JAN-2008','DD-MON-YYYY')) * 24) TOTAL from dual ) b
    Jeff

Maybe you are looking for

  • How to see photos in bridge

    Hi all, In general liking adapting to imac but.. I keep running into problems when using non-apple software, such as the excellent adobe photoshop. I find it quite frustrating that 'finder' and other apps (apart from iphoto and aperture) cannot 'see'

  • How to get Contract Account Number in Service Ticket

    Hi Experts, How to get Contract account number in Service Ticket, we are working in ISU environment. when i create the service ticket the contract account number is there in Business agreement number field in service tiket. Can anyone tell me how to

  • Connecting c2821 to dsl line

    Hi All , I have a Cisco 2821 IOS 12.4 with HWIC-1ADSL card on board . My intention is to connect that router directly to dsl line of my OTE Greek internet provider, moving the dsl cable actually connected into modem/router ZYXEL TW263R4. I have all t

  • Tether Fascinate to Netbook

    If you are trying to use your phone as a modem for your netbook, here's how I got it to work.  Make sure you have the right drivers.  After 2 days of searching, I finally got them.  From the Google search, type in 'Samsung fascinate drivers'. Click o

  • Information regarding BI Cube

    Hi Experts, I need some information about: We already configured SEM BCS 6.0, in this we use source data basis from bw 3.5 cube (XFIGL_C10). Now BI upgrading source cube from 3.5 version to 7.0, for this any effect occur in BCS. Thanks & Regards Madh