How to make graphics in Applet not to repaint after I click "refresh"

Hi, pals
I have some interactive graphics inside an Applet. User can drag and
move the graphic objects. The problem is when user click "Refresh"
button of the web browser, those objects return to their original
positions. What I hope is to make those objects still lie on the new
position that user has moved them to after they click "refresh" or
"back" and "forward" button to return to the applet page.
do I need to write some thread control?
Think when you type new URL in the browser showing the applet and go to the new web page. The system will call
Applet.stop() and destory() to destroy the applet resource used by the
Applet webpage. When you go back to the applet page, the system will
call Applet.init() and start() to recreate it. All previous object
positions and states manipulated by user will return to original.
For example, there's a circle centered at (50,50), you move it to
center (100,100). Then you go to another webpage in the same web
browser frame. When you use "Back" button to return to the Applet, the
circle will be redraw at center (50,50). (why? because the browser call applet.init() and do all process as first time the applet download to your computer) What I hope is the circle still keeps
at its last center (100,100) . This seems impossible to me
since the applet has lost its memory about the center position
(100,100) last time when you go to another page and the system call
destory() to delete the applet.
Any suggestion?

I think you can disable page refreshing with javascript, but how, I do not know.
I wish this is helpfull.
Ahmad Elsafty

Similar Messages

  • Simple introduction/tutorial on how to make Cocoa-Applescript Applets?

    I'm looking for a simple tutorial on how to make Cocoa-Applescript Applets.  I'm pretty new to Applescript, but fairly good at it, and I was wondering how Cocoa-Applescript Applets worked.  I was curious as I've been wondering if it was possible to somehow display images in Applescript, and it apparently is the only/easiest way.  My problem is that I haven't been able to find any tutorials on using it, so I was wondering if you guys could point me in the right direction, that'd be great!
    thanks in advance

    The main difference is with how the Cocoa APIs are used - in addition to the AppleScript and AppleScriptObjC release notes, there are some examples and resources at Mac OS X Automation.  Note that in Yosemite, AppleScriptObjC is available to all scripts, not just applets and libraries.

  • How to make valuation type field not changeable  in delivery tab of PO

    Hai friends,
                    I am new to badis..please guide me to solve the issue...
    how to make valuation type field not changeable  in delivery tab of PO...
    The field shd be in display mode only ...actually...there  a badi has been used before
    to get valuation type from a ztable depending on material and plant...
    Now ..my requirement is that the user shd not change the default value brought from the ztable...

    Hi SRINIVAS,
    You can achieve this from BADI only if BADI is allows you to do this. You cannot achieve everything from a BADI. Check if there is any expoting field in the methods that can be ticked for making the field in display mode. If not then you cannot achieve this from BADI.
    The field you want to default to display is a standard or zfield. If z, then you can changethe attribute of the screen field to Output only.
    Regards,
    Manish

  • Help!!! How to make quicktime plugin do not display on top of the web page?

    Any one knows how to make quicktime plugin do not display on top of the web page??? I've tried to change the zIndex property using javascript, but it doesn't work.
    Because we have some widgets which are required to be moved to anywhere on the page, we use iframe to implement that, so it can display on top of quicktime plugin, but the plugin flickers sometimes when we do some operation on the widget which is on top of it.
    Anyone can helps me? Thanks in advance!!!
      Windows XP Pro  

    > Can you tell me how to set the script so that the
    lightbox image is
    > displayed
    > on mouseover instead of mouse click.
    Check the docs. Trent is usually very thorough in his
    instructions.
    Hint: I haven't studied it but it probably involves modifying
    one of DW's
    built-in Behaviors.
    Walt
    "ducati1" <[email protected]> wrote in
    message
    news:gkb906$qrd$[email protected]..
    > Wow that DW extension is just what I needed.
    > Thanks..
    > Can you tell me how to set the script so that the
    lightbox image is
    > displayed
    > on mouseover instead of mouse click.
    > I currently have the thumbnails set to insert the ALT
    text into a text box
    > on
    > mouse click.
    >

  • Hi! Since I installed Mavericks, all the messages in mail I receive are marked as read, when they're not! Can anyone explain to me how to make them appear as not read, so I notice them? Thank's

    Hi! Since I installed Mavericks, all the messages in mail I receive are marked as read, when they're not! Can anyone explain to me how to make them appear as not read, so I notice them? Thank's

    I don't know if it will work, but try rebuilding the mailbox. This can take awhile if you have a lot of mail.
    Rebuild mailbox

  • Adobe pro 8: how to make an existing secure encrptyed form unfillable after editing

    Hello,
    as the discussion topic says.
    adobe pro 8: how to make an existing secure encrptyed form unfillable after editing?  Is it even possible to do in adobe pro 8?
    For work there's a secure and encrptyed form.  I want to write in the form and save it so it will be unfillable / uneditable.
    this form is not created by myself, and already secure and encrypted.
    I am aware that in other recent adobe pro versions on how to do this, since they have a " save as a copy" function in the file menu. (adobe 8 doesnt have)
    I've also tried printing as a PDF, but due to encryption of the form, that doesn't come out great.
    Upgrading to a recent version of adobe pro is not an option.
    I've also tried exporting as a picture files and then recombinding them to a pdf.  I dont like this method and find it time consuming.
    If possible please inform me of a way to solve this problem , step by step with adobe pro 8's features.
    or
    show me the equivalent method to how recent versions "save a copy" of a secure encrypted form on adobe pro 8.
    Thanks in advance for reading this thread and helping.

    Well after you use save a copy, and the security is disabled, you could then re enable security features and disable editing of the form.
    EDIT: I just tested , with a PDF is in secure mode, even using a "save a copy" feature wouldn't work.
    Would finding a program to desecure the pdf be a possible option?
    Or is there a way to copy the form (with all it's editable fields) and paste it as an unsecure pdf?
    You would then be able to make new security features.
    thanks for replying and viewing this problem.

  • Firefox open images in a new tab upon clicking the link,how to make firefox to save images in the folder upon clicking the link

    firefox open images in a new tab upon clicking the link,how to make firefox to save images in the folder upon clicking the link.

    You can right-click the image and use "Save Image As" to save that image.

  • Does anyone know how to make songs in your playlist play directly after each other with no break between then, ie no silent period?

    Does anyone know how to make songs in your playlist play directly after each other with no break between then, ie no silent period?

    you cannot.

  • How to make sure an applet runs with Java 5?

    Hi all,
    First let me say thanks for all the help in the past. You've help me go from noob to intermediate noob. I've just about finished my first applet game which can be checked out here .
    Now I've been reading about problems with mac and 1.6. (note it works on Linux). I want to make sure that it runs fine and of course I don't own a mac. So I downloaded the 5 JDK. Selected it as the java platform in Netbeans, compiled and it ran fine.
    Questions:
    Do I have to always use 1.5 to compile and perhaps set it as default?
    Since it works in 1.5, do I compile it with 1.6 and just upload?
    I'm worried I'm not testing it correctly. I mean if I have both 1.5 and 1.6 installed on my machine, how to I make sure the applet is only using 1.5 to run?
    Thanks
    Darrin

    corlettk wrote:
    I haven't got a clue RE your problem other than for max-portability you should compile with [-target 1.5|http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/javac.html].
    I must say I'm impressed, except I suspect my PC must be substantially faster than any of your test platforms... can you throttle it to CPU performance somehow? Or maybe it's just that my reflexes aren't what they once where.Thanks.
    There seem to be two issues. The first is what people are using. This web stats shows pretty poor penetration of 1.6.
    [http://www.statowl.com/java.php|http://www.statowl.com/java.php] Penetration: 54% with JRE1.6 + 19% with JRE 1.5. Total 73%.
    The second is I've read that mac and 1.6 do not get along except on a 64bit platform.
    So for applets there is not much choice but to compile on 1.5 for the broadest user base. I guess the good news is 1.4 and earlier are almost non-existent.
    Edited by: Darrin.A on Apr 27, 2009 8:11 AM

  • How to make JEditorPane support applet?

    hi hi,
    i would like to know how to make the JEditorPane support applet coming from internet source. i will be using JEditorPane to view web page but if it contains applet, how can i make JEditor support it? what should i need to do so. pls give me some guide lines. thanks

    That's an interesting question. The short answer is, you can't. For one, the APPLET tag is ignored by the Swing HTML parser. Then, I'm not sure, what happens if you embedd heavy-weight components like applets into an editor pane.
    However, you can use  JEditorPane e = new JEditorPane();
      e.setText("Hallo, Welt");
      e.setCaret(5);
      e.insertComponent(new JButton("Click me"));to add swing components to your text. So you might be able to create a working solution based on this foundation.
    I can imagine two approaches. You could either create your own applet-like JEditorPanelets which would be basically JPanels with some glue code to allow the the panelet to access its editorPane.
    Or you could explore the approach to add a heavy weight applet and write a compatiblily stub. Here's an outline  class AppletAwareEditorPane extends JEditorPane {
        List applets;
        MyAppletStub stub;
        public void insertApplet(Applet a) {
          applets.add(a);
          a.setStub(stub);
          a.init();
        public void startApplets() {
          Iterator i = applets.iterator();
          while(i.hasNext()) ((Applet)i.next()).start();
        }However, each applet would require to run in its own tread and I'm pretty sure this would break swing as it is not thread save.
    bye

  • How to make top level navigation not refresh

    Hello Guys,
    I have a question concerning on my External Facing Portal, my boss wants that when I click on a tab or a link in the Top Level Navigation , to load the content in the Content Area without refreshing the whole page, What I want is that when I click on a tab or link of the Top Level Navigation , the Top Level Navigation and the MasterHead not to refresh and that the content be loaded and refreshed only in the Content Area. The only way I know to do this is by making a frameset of my page and to make the masterhead and toplevel navigation a frame and the detalied navigation a frame and the content area a frame, and in the links to put the target property to the name of the content area frame, but I don't know if this is possible to do in the portal, I see that all is embedded and I don't know how to make a frameset like this in the portal.
    Any highlights to solve this will sure be appreciated.
    Thanks
    Rewarding points will be given.
    Luis

    Hi,
       When you are implementing External Facing Portal, i think you have used Light Framework Page.  In Light Framework Page, only one Framework has been used, so when you click on the top level navigation, the whole page will get refresh, so there is no otherway as of my knowledge.  If you use standard framework page in portal, it is possible to do (i.e. the content area only get refresh)  and the concept of your External Facing Portal is eliminated here.
    Regards,
    Venkatesh. K
    /* Points are Welcome */

  • I have an Ipad using 5.0.01 and am new to the experience. When I click on the icon for calendar, I get the calendar presentation but do not no how to make an entry.  The tutorials all say you click on the " " sign, but there is no such sign in the lower r

    I have an ipad with 5.0.1 and trying to learn how to use it.  When I click on the icon Calender, I get the calendar  presentation but I do not know how to make an entry.  Every tutorial I have looked at says that you click on a + sign in the lower right corner and then make your entry.  I do not have a + sign on my screen.  Can some one help me.

    You can download a complete iPad 2 User Guide here: http://manuals.info.apple.com/en/ipad_user_guide.pdf
    Also, Good Instructions http://www.tcgeeks.com/how-to-use-ipad-2/
     Cheers, Tom

  • How to make a adf page not participate in session

    Hi,
    I am getting the session time out warning message in the login page ( the user is not logged in yet).  Below is the scenario.
    1. Login page is JSF (.jspx) page and is using a page template.
    2. ADF security is implemented in the application and anonymous role and other roles have been provided the access to the login page and page  template.  ( FYI the application uses a different template for the logged in users)
    3. Session time out and WARNING_BEFORE_TIMEOUT is configured in web.xml .
    3. In both the page and  template the jsp page directive session attribute is set to false.
         <jsp:directive.page contentType="text/html;charset=UTF-8" session="false"/>
    How to make the page not participate in session and avoid the session time out message and refresh of the page ?
    Thank you .
    Ranjith

    Hi Frank,
    This is a webcenter portal 11.1.1.8 application and there are sites built with webcenter that does not throw this message on the login page . What should be my approach not to get this message.
    What does "session=false" attribute mean  <jsp:directive.page contentType="text/html;charset=UTF-8" session="false"/> (<%@ page .. session="false" %> Creating a JSP Document
    As per the link  JSP - Directives   Specifies whether or not the JSP page participates in HTTP sessions .
    Any help is greatly appreciated.
    Thank you

  • How to make it go to a designated page after login

    Hello Experts,
    I have a simple problem but i havent been able to figure it out. I have a simple application that has several public pages and only one "reports" page that requires login.
    When I am in the "reports" page, I click login and after entering my credentials, the application takes me to page 1. (I actually want to to go to page 5 "the reports page")
    I tried creating a branch in the login page so that after the login button is presed that it will take me to the reports page... but it didnt work...
    Any idea how to make it go to the "reports" page and not the default page after I log in?
    Thanks a lot!!

    The login process on the login page contains the following plsql:
    wwv_flow_custom_auth_std.login(
    P_UNAME => v('P101_USERNAME'),
    P_PASSWORD => :P101_PASSWORD,
    P_SESSION_ID => v('APP_SESSION'),
    P_FLOW_PAGE => :APP_ID||':36'
    in this case after login page 36 is started.
    change the number in the desired page.
    Fred.

  • How can I get WebAS to not start-up after restarting Windows?

    I would like to not have my WebAS auto start after I reboot windows.
    I found of couple of options in Configuration tool but they did not stop it.
    We have a firewall product that I cannot disable (per security policy), but I can terminate it once I get the desktop.  However by that time WebAS has started and encounters blocks from firewall, and once this happens, half the time it causes my jcontrol.exe to result in NIETIMEOUT messages and once THAT happens I have to uninstall and reinstall EVERYTHING. 
    So, how can I configure WebAS to not automatically start-up after rebooting windows?  I have searched help.sap.com and looked for options in Visual Admin and Configure tools.

    Easier than it seems
    Go to Administrative Tools/ Services in Windows.
    Change Startup type of the services to Manual.
    You can just sort by the 'Log On As' Column
    ".\SAPServiceJ2E"
    or whatever you instance name is. You can always start the service from the MMC console after this.

Maybe you are looking for

  • ITunes Install Problem Newest 6.0.2.23

    Windows XP SP2 Norton Anti Virus and Firewall Trying to install and get error messages: Error 1714: The older version of iTunes cannot be removed. Contact your technical support group. After reading through all these posts please don't tell me it is

  • I m a insurance agent how to use my company product sales illustration program

    How to use my company product sales illustration program ?

  • UDO Form Help

    Hi There, Need help on modifying my UDO xml form. I need to have the data in Matrix or Grid, But the UDO form that i create from B1 UDO Form Generator gives it field wise. I tried to create a new form in screen painter but it doesn't load the form fr

  • IDoc - XML File

    HI, is it possible to convert an existing"filled" IDoc to an XML file ? Without using SAP XI. Maybe an fuction or something else `? Regards, Gordon

  • I need to study for a state competition.

    Hello! I am a first-year high school Computer Science student and the sole representative for my school at the state UIL competition. I only placed in test-taking at Regional with a rather pathetic score, and that without my team to help with the poi