Applet size

How to optimize size of applet to be loaded on sim?

Hi
FIrst of all define all arrays ,variables,object delaration in constructor only.
One Tool os avilable for debugging aspects developer , evalution version of this tool is freely available ,download it from net.
With this tool,u can debug that whether there is any memory leak or not in your applet.
Regards
Divyesh.

Similar Messages

  • Applet Size/Object Size

    hello,
    why does the applet size / the object size when viewed in windows and linux is different. If the user uses Windows as the client PC the size is correct but when the same is viewed in Linux workstation its totally different. everything seems to be small. All the modules were created in windows but compiled and generated the fmx using linux and they are deployed in the linux server. Since the modules were developed in windows i understand there is some conflict with DPI and what we did was put a new parameter in the forwsweb.cfg and it worked. but that parameter has effect only if the browser is Internet Explorer. If i run the same using mozilla or firefox bcos linux workstation uses either mozilla or firefox. so what ever the values i specify for clientDPI no effect at all bcos the browser is not internet explorer. You might suggest me to develope everything in linux and set all the size there itself. But i cannot do that bcos we have more than 400 forms and developing or making changes is very very time consuming and its not practical for my situation.
    If you suggest me how to play around with the motiff settings in linux then I dont think the linux(fedora core1) is using those setting anymore.
    If any one can give me suggestions how to work around it that will be great.
    Thanks
    Blesson

    Blesson,
    is your client Linux, or the server. Linux as a client is not certified yet. For server issues, please contact customer support at metalink.oracle.com
    Frank

  • GetAudioClip() and applet size-related questions

    Hello everyone,
    I have coded a small animation and wanted to use audio file (.au) to add sound to my applet. But for some reasons it does not want to read my .au file. I tried different .au files, but with no result.
    I am using eclipse and while it (eclipse) compiles it creates 2 directory: src and bin and saves file.java and file.class in them respectively. I placed my .au file(s) in both of them......nothing happened. Though I added a .jpg file to these directories for the background to test how it works and it works fine with it. And not forget to mention that these .au files play fine without using java.
    Well, here is a bit of that code:
    public void init()
                   setBackground (Color.red);     
                   au = getAudioClip( getCodeBase(), "ecky.au"); //this does not play, though it plays in media player
                   im = getImage (getCodeBase(), "stars.jpg"); //this works, though both are in the same folder
    public void run ()
                   Thread.currentThread().setPriority(Thread.MIN_PRIORITY);
                   while(y_pos != 200)
                        au.play(); //it should play here
                        y_pos ++;
                        repaint();
                        try
                             Thread.sleep (10);
                        catch (InterruptedException ex)
                             Thread.currentThread().setPriority(Thread.MAX_PRIORITY);
    public void paint (Graphics g)
                   g.drawImage (im, 0, 0, this);
    }And one more thing, do you know where can I change the applet size? I mean as you know, eclipse take care of setting applet size. So where can I find this html code and resize the applet? Thank you in advance and appreciating your help....

    I wanted this .au file to play as long as the y_pos does not reach the point 200So, play() it before the while loop, and stop it afterwards (or whenever y reaches 200).
    To begin with you should just write some code to make the sound play - and if there is a problem with the size of the file, resolve that first.
    By the way, can anyone tell me where eclipse saves the html code for the applet? I don't think there is any html code. Eclipse uses an applet viewer. Try putting the html <aplet> information as a comment near the start of your file.

  • Applet size width and height = 100%

    Hello All.
    I am using the large font in windows. So I’ve change the applet size in formsweb.cfg file to width=100% and height=100%. Now the applet area fills the browser windows when I maximize it. But if I try to resize it using the mouse from the lower right corner. The form will be busy and never respond to any event and staying like this forever.
    Is there any one come across the problem?
    I am using
    Application server 10g (9.0.4)
    Form 9i
    Client PC (windows 2000)

    Ooookay ..... then how come I've got an demo of
    someone's applet here that does exactly this, i.e.
    draws outside of it's original size ?
    Show us the demo.
    How might they do it ? (dont really want to decompile
    someone else's class file, coz that's rude :-)Maybe someone will do it for you; the impossible has always attracted the human mind.

  • Problem: Applet Size

    Hello,
    We have developed an applet to be used on J3A080 JCOP31 v2.4.1 cards. The EEPROM size of the card is 80kb, and our applet size is around 40kb. If the applet size goes to 41kb. we are not being able to install it. There are no other applets in the card and this also happens with the simulator. It gives 6A80 (Wrong Data) error. However, if we try to install the applet as 40kb, it is installed successfully. What do we miss here, is it not possible to install an applet larger than 40kb into the 80kb EEPROM card ?
    Thanks in advance for your answers.

    I think that if the size of at least one component of the applet is geater then 32 K, then the upload is rejected. The cap contains the next components:
    Header
    Directory
    Applet
    Import
    Constant Pool
    Class
    Method
    StaticField
    Reference Location
    Export
    Descriptor
    Debug
    Total
    Most probably, the biggest component is Method component.

  • How to get Applet size in my form ?

    I'm running Oracle forms 11g, I want to center my window use the code below :
      v_app_width := TO_NUMBER(GET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,WIDTH));
      v_app_height := TO_NUMBER(GET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,HEIGHT));
      v_win_width := TO_NUMBER(GET_WINDOW_PROPERTY(p_window_name,WIDTH));
      v_win_height := TO_NUMBER(GET_WINDOW_PROPERTY(p_window_name,HEIGHT));
    -- message("width" ||v_app_width);
      SET_WINDOW_PROPERTY(p_window_name,POSITION,(v_app_width- v_win_width) / 2,(v_app_height - v_offset - v_win_height) / 2);This works for 6i but not working for 11g. As
    GET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,WIDTH)returns 0.
    But once that message line is uncommented, the next form calling this center window procedure works fine.
    My problem is similar with this one : http://www.orafaq.com/forum/t/149809/2/ But it has no solution.
    I also found this : http://docs.oracle.com/cd/B14099_19/winitan.1012/relnotes.1012/relnotes/forms.htm
    5.1.4.1 GET_WINDOW_PROPERTY Returns 0 on Microsoft Windows
    GET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,WINDOW_HANDLE) returns zero even with separateframe=true. Oracle Forms Online Help states that this should work on windows platform. This is incorrect as this Built-in does not support MDI. [Edited on 3/12 4:50pm] Today I found this code does work for my first form (login form) when the application launches. After login, the rest forms can be centered very well. Don't know what's the reason.
    So if this doesn't work, how could I get the applet size and center my window ?
    Edited by: frank1018 on Mar 12, 2013 4:53 PM

    If you want to center your window when MDI is maximized..
    first create timer.. under when-new-forms-intance..
    Declare
         timer_id   Timer ;
    Begin     
      timer_id := Create_Timer( 'laf_timer', 50, NO_REPEAT ) ;
    end ;use this in when time expired.. because it will not run this procedure in when-new-forms-instance or pre-form triggers..
    declare
         mh number;     rh number;     mw number;     rw number;
    begin     
                      If lower(Get_Application_Property( TIMER_NAME )) = 'laf_timer' Then
                             mh     :=     get_window_property(forms_mdi_window,height);
                        mw     :=     get_window_property(forms_mdi_window,width);
                        rh     :=     get_window_property('yourwindowname',height);
                        rw     :=     get_window_property('yourwindowname',width);     
                        set_window_property('yourwindowname',position,(mw/2)-(rw/2),0);  /* i make 0 for the value of Y.. for i liked it on the top but you can change it too */
              end if;
    end ;Edited by: ck on Mar 14, 2013 2:44 AM

  • Setting applet size

    I know the answer to this question is possibly no, but I just thought of asking it anyway.
    Is there anyway in which an applet size can be set and remain static when the user tries to resize the applet by the use of the cursor?If this could be done it would save me alot of time.
    Thanks in advanced
    Dave

    ok a possible way
    try this
    <script language="JavaScript">
    function openWindow() {
    var newWin;
    newWin =
    window.open("abtest3.htm",
    "win1",
    "WIDTH=400,HEIGHT=400,screenX=100,screenY=100,left=100,top=100");
    newWin.focus();
    </script>
    put this in an html
    "abtest3.htm" is the html-file which contains the applet
    <body>
    click
    </body>
    this is to call the JS-function
    when you done this the window w/ the applet only will be iconifiable and closable
    regards

  • Applet size to 100% of frame

    We have a Swing JApplet containing a JTree in a JScrollPane that's part of an HTML frameset. The applet needs to fill 100% of its frame on loading and then resize with the frame. I figured then the best way to do this would be to set width and height to 100% so the browser could handle it. This works great for Netscape, but IE seems to either add a vertical scrollbar or leave whitespace for it to the right of the applet and not fill the frame completely.
    Is there some way around this or some better way to make JApplet size and resize correctly?
    Thanks!

    Sure! FYI, we use JavaScript document.write() calls to output the HTML for the frameset, but I removed so it would fit here better. The code in question is part of navigation.jsp (see below):
    <FRAMESET id="MainFrameLayout" name="MainFrameLayout" rows="60,*" border="0" frameborder="0">
    <FRAME name="banner" id="banner" src="banner_ae.html" scrolling="no" frameborder="0" marginheight="0" marginwidth="0">
    <FRAMESET id="FrameLayout" name="FrameLayout" border="0" frameborder="0" cols="180,*">
    <FRAME name="menu" id="menu" src="navigation.jsp" frameborder="0" marginheight="0" marginwidth="0" style="border: 1px solid #acacac;">
    <FRAMESET id="RtFrameLayout" name="RtFrameLayout" rows="0,0,*" border="0" frameborder="0">
    <FRAME name="ssh" id="ssh" src="/blank.html" scrolling="auto" frameborder="0" marginheight="0" marginwidth="0">
    <FRAME name="wiz" id="wiz" src="/blank.html" scrolling="auto" frameborder="0" marginheight="0" marginwidth="0">
    <FRAME name="text" id="text" src="action/homePage" scrolling="auto" frameborder="0" marginheight="0" marginwidth="0">
    </FRAMESET>
    </FRAMESET>
    </FRAMESET>

  • Is there a way to adjust popup applet size according to applet contents so that I dont have to scroll ever?

    Hello,
    Could anyone please let me know if there is any way to adjust the popup size according to contents displayed in the popup so that I dont have to scroll in the applet.
    Thanks.
    Nanta

    Sorry mate, cant post a screenshot as the site is client confidential...can get me in trouble.
    its just that default width of the popup is 300px(using inspect element); but when the popup opens, some of the buttons are not visible and I have to scroll horizontally to see these.
    I was looking for something wherein I can permanently set the popup width to 700px.
    Any help is appreciated. Thanks.

  • Scrollpane to applet size urgent!!!

    Hi,
    I have 2 issues in my project.
    1. I want JScrollPane container in my applet to take the size of applet.
    2. I want applet to take the size of browser.
    Applet might be run on different computers with different resolutions. So, I want the applet to adjust its size to the browser and the scrollpane to adjust its size to the size of applet.
    Please help me in resolving this problem. as my project is looking ugly without the above features.
    Thanks in advance.
    with regards,
    Dawood.

    851102 wrote:
    I have 2 days to complete the applet.That is not our concern.
    I have an attendance system application.Is that even relevant?
    I've heard that its not a big-complicated job to convert it to an applet.Heard where? Not that it is not correct - but you should probably ask the person who told you for more information.
    But I dunno how to do it.I just need a few guidelines.Google ( [url http://www.google.com/search?q=convert+swing+application+to+a+applet]convert swing application to a applet ).

  • Applet size question

    <applet code="file.class" height=400 width=300>
    </applet>
    This is my html file related to a generic "file.java".
    If I wanted that size to remain unaltered while the applet is running (basically if I want to fix the height and width of the applet, so that once it is displayed I cannot resize the window), I guess there is an instruction to handle this... Is there?
    Tnx

    The Java applet is an embedded object in your HTML page. This means that Java does not have direct controll over the browser window. In other words: there's no easy way to make Java stop people from resizing the browser window. There are two solutions for your 'problem'.
    You could make your applet pop up a Java window (either AWT or Swing). Java has full controll over its own windows, so that will allow you to allow and disallow users any particular action. The downside is that -especially when using Swing- this is going to increase the filesize of your applet (and when using Swing, you also need to make sure visitors have the Swing libraries).
    The other solution is making JavaScript pop up a child browser window in which you load the HTML page containing your applet. You can make JavaScript prevent people from resizing the child window.

  • Kde4.4's newspaper activity: how to change applets' size?

    Well, the title pretty much says it all: how is it possible (... is it?) to change (or limit somehow) the size of applets in kde4.4's "newspaper activity" [netbook workspace (or whatever they're calling these things today)]. I've got a netbook and for this newspaper thingy to be useful, it's pretty important that one can limit the amount of screen that some applets take. For instance the 'news' (rss) applet tends to extend itself so much that it goes beyond the screen size, which makes it impossible to use any other applet in the same column.
    Thanks for any hints.

    Ahh, that sucks. Otherwise I really like the way the netbook interface works ...
    EDIT: Yes, they resize a bit, but the long ones remain long and the workspace just gets virtually bigger (and the bar on the right smaller)
    Last edited by bender02 (2010-02-18 14:50:24)

  • Can I resize the html applet size ?

    <applet code="myapplet.class" width="800" height="600"></applet>I know that I can use getSize() in my code file to get the size of the applet in html.
    However, can I resize the html applet tag width and height? It seems impossible.

    You could try to generate the HTML, save it to a File, and the use showDocument() to reload the whole page.
    (T)

  • Window/Form/Applet Size

    I've recently upgraded a project from Forms 6i to 10g. However the sizes of the window, form and servlet vary and seem to be form specific. I've tried setting the forms applet parameter in the formsweb.cfg but each form seems to revert to its own form specific width.
    How do i globally set the height and width of all of the forms, window and applets within my project?

    Hello,
    You would have thought of that since the application startup. You have PL/SQL library and object libraries to help you making the more reusable code as you can.
    If this works is not done from the very beginning, the last solution is to use the JDAPI tool to apply massive changes to the source modules in a single shot.
    Francois

  • Applet size and Grey Background

    I have a JApplet which is displayed in a JFrame (500 * 500 px). I need run this from web page, something like if I click a button, the JFrame pops up...
    If I set the width and height tags to 500, everything is OK except a big grey area in the html page.
    To avoid this grey square, I set the width and height tag to 0, but the applet is invisible in the popup JFrame with Netscape6.2. (the applet is displayed in a very small area in IE5.5) When I resize the JFrame a little bit, the JApplet shows up completely. I also tried to resize the JApplet in the init() method, but this doesn't help.
    Does anyone have experience on this? How can I display the JFrame with the entire applet without the grey background in html page?
    Any advice would be highly appreciated.

    Hi, i've heard about (but not tried, sorry) using width and height specified as % values: width=100% and height=100% filling all the browser frame...
    Please tell me if it helped (I hope so),
    Regards.

Maybe you are looking for

  • The file "itunes library" could not be read

    I just barely got a brand new mac and transferred my files from my old mac electronically via the prompt when initially starting up the computer through the wireless connection. I just tried to open iTunes for the first time and it won't open because

  • Restrict Equipment Master (with serial numbers) creation

    Hello All, I am faced with an issue where the client will be using Serial Numbers for 2 sets of materials. I have assigned a Serial Number profile to these materials in Material Master. I am able to create equipment master data for these materials wi

  • Down payment request for PO

    Hi Guru's, Can anyone tell me the down payment process for Purchase order in SAP. We have a PO which we need to make payment 50% advance and 50% after 30 days. a. All configuration did for MM and FI b. Payment term c. Down payment request d. Down pay

  • 32 bit and 64 bit versions of Smartview

    Does anyone know how to add two different versions of the smartview downloadable file to the Tools->Install (Dropdownd Menu) in HFM's workspace. Basically, I want to have available the 32 and 64 bit versions of Smartview for downloading directly from

  • Oracle Forms client software license

    Hello All,      We are Gold Partners of Oracle.      Our customer has got licenses for the production.      Can we develop by downloading software from OTN and use it for developing applications for our customer?      Or do we need to purchase licens