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>

Similar Messages

  • 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.

  • 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

  • Mid 2010 Macbook Pro - Change MTU size kills internet (Jumbo Frames)

    Hi everyone, i'm hoping someone here can enlighten or help me solve my problem I'm having.
    I am trying to change my MTU size to enable Jumbo frames on my 13 inch Mid 2010 Macbook Pro. I recently bought a ReadyNAS Ultra and would like to speed up transfers to the unit.
    My setup is as follows:
    I have my ReadyNAS Ultra 2 and 2010 Macbook Pro (Core 2 Duo) wired via cat6 ethernet to my 5th Generation Apple Airport Extreme. The Airport Extreme is connected via cat5e to my AT&T Uverse Gateway which is set up to allow my Airport to assign DHCP and NAT (gateway is in bridge mode with wireless off).
    Anyways, I have enabled Jumbo frames on my ReadyNAS, when I enable them on my MBP.. it applies fine. It disconnects / reconnects the ethernet like it should, but then my connection drops. I can't see any devices on my LAN and I cannot access any internet websites, but according to the network pane I am still assigned a valid dhcp address. When I manually try to increase my MTU size, the same thing happens (from 9000 to 1600 I tried every size).....
    Could it be my MBP just can't suppose the increase of MTU size? It leaves them at 1500 when I set it to automatic... if it doesn't support the increased MTU size, why would it let me custom change the MTU and even give an option to select "Jumbo Frames (9000)"?
    I appreciate any help in advance!!

    asdftroy wrote:
    If you did read my post then you would have saw that the option is there, but that is not entirely what my inquiry is about. The option isn't working as intended, and I was wondering if anyone had the same issues as me. Thanks anyways.
    Anyone else?
    The way you responded to someone trying to help you probably means others will be hesitant to try.

  • Global change to the size of a text frame in InDesign 5.5?

    Is there a way to make a global change to the size of a text frame in InDesign 5.5? I just laid out a book and the size needs to go up half an inch.

    If you have worked properly and have done following:
    Set up Masters with margins and columns,
    Aligned all text frames with the margins,
    Turned on Layout Adjustment,
    You will only change the margins on the Master and it will change every page.
    If not …
    you have to do it manually.

  • How can I adapt the suize of various frames to the size of one "master frame"?

    I have a large amount of picture frames in all kinds of sizes. Now I created one "master frame" in a certain size I need and I want all the other various picture frames also to have the exact size of this master frame. How can I adapt them in an easy way?

    Size the master frame, then select other frame, Object menu>Transform Again>Transform Squence Again Individualy.

  • Why Apple ignored Ethiopia with population size of 100 million in the countries list.

    EThiopia Avery big country and population is not in the list of Apple store countries.we are one of the fastest developing country with population size of 100 million
    apple need to correct this big mistake

    The GDP of Ethiopia is $1,300 per capita, per year and it ranks 211th in the world. Since Apple is a commercial enterprise, it would be strange to offer a product that costs most of the annual income of an average person.
    I sincerely hope that it does continue to develop to the point that companies like Apple would be interested in opening stores.
    George

  • Identify the Cubes where dimension table size exactly 100% of the fact tabl

    Hello,
    We want to Identify the Cubes where dimension table size exactly 100%  of the fact table.
    Is there any table or standard query which can give me this data?
    Regards,
    Shital

    use report (se38) SAP_INFOCUBE_DESIGNS
    M.

  • How do I create a title whose size matches my video frame size?

    How do I create a 1920x1080 title?
    I'm using Premiere Pro CS4 on Windows 7.  I created a default title.  If I right-click on the title in the Project Explorer and select properties, it says:
      Title Size: 720 x 480
      Pixel Depth: 32
      Pixel Aspect Ratio: 0.9091
    If I drag this title onto a sequence onto a sequence created from the "AVHCD 1080i30 (60i)" preset then the title is automagically scaled to try to get it to fit into the 1920x1080 frame, resulting in a tiny title centered in the frame.  I can make things better by right-clicking the title in the timeline and selecting "Scale to frame size", but that's not a particularly elegant solution (and the title, as displayed in the title editor, still doesn't exactly match the title displayed in the previous monitor).
    How do I create and edit a title whose size matches my video frame size?

    Thanks guys!  I created the first title in a 640x480 sequence and didn't notice that I had the option to fiddle with the frame size when I created it.  Subsequently, I created new titles by duplicating a previously created title (which I had set up with desired font, effects, etc.) and just changing the title text in the title designer.  This worked great as long as I was making titles for a 640x480 sequence.  But when I tried to use a copy of this title in a different sized sequence then things got weird on me.  I spent way too long trying to find the option to resize the title before I finally gave up and decided to spend the time to figure out how to post a question in this forum.
    Just to verify how things work, I verified that the size of a new title does, indeed, default to the size of the currently selected sequence.  No idea what would happen if I had multiple sequences displayed simultaneously.
    Any idea how to change the size of an existing title?
    Bob

  • Applet CPU usage 100%

    Hi,
    I am running my applet on IE 5.5 not using any plugin, on a NT heavy
    duty machine. The applet takes up 100% CPU. The applet does not have
    any GUI component but launches JSP pages. The applet connects to
    backend resources using socket, uses threads etc. The bulk of the code
    is in Java classes- the classes themselves run fine outside of the
    applet.
    Any ideas or suggestions welcome. How can we measure cPU usage in
    Java?
    Thanks a lot,
    Sanjay

    I too have this problem

  • How can I adjust size of default action frames

    Hi, How can I adjust size of default action frames they are very thin.  I have tried double clicking on that part I think it is in the actions but can only adjust the drop shadows etc not the actual size of the frame ie like in the wooden frame.
    hop you can help

    I think I get what you meant now …
    The »Transform Current Layer«-step in »Frame Channel – 50 pixel« might be the one you want to edit (»Toggle dialog on/off« for example or replace it with a newly recorded different transformation).

  • 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.

  • 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.

  • Getting the size of an internal frame?

    Hi allm
    I want to be able to get the size of an internal frame. I have set the size of the main JFrame to that of Windows by calling Toolkit.getScreenSize(); But i can't seem to find an equivalent for internal frames.
    Basically I have two components in the internal frame that I want to have equal width. I was going to find out the size of the internal frame and then half it and applay a horizontal strut to each component.
    If there is a better way of doing it i'm open to suggestions but any help at all is much appreciated
    Thanks
    Dylan
    BorderLayout border = new BorderLayout();       
             content.setLayout(border);
             Box left = Box.createVerticalBox();
             left.add(Box.createHorizontalStrut(400));
             JPanel Create = new JPanel();
                 Create.setBorder(new TitledBorder (new EtchedBorder(), "Create Database"));
                 left.add(Create);
                 Box right = Box.createVerticalBox();
                 right.add(Box.createHorizontalStrut(400));
                 JPanel Help = new JPanel();
                 Help.setBorder(new TitledBorder (new EtchedBorder(), "Help"));
                 right.add(Help);
                 content.add(left, BorderLayout.CENTER);
                 content.add(right, BorderLayout.CENTER);

    The situation is that I have a class that has about 80
    instance fields of basic data types. But it was
    getting overly complicated. As a number of these
    fields related to year and day data I tried to
    re-write with GregorianCalendar instead.
    There are in the region of 45,000 instance of my clas
    being held in an array, however when I tried to use my
    modified class (with the Calendar fields replacing the
    basic data types) I kept running into OutOfMemoryError
    after about 25,000 instances were created. So I
    figured that the GregorianCalendar class must be
    eating up my memory. Was intrigued, but couldn't find
    out how to calculate the size of my new class.
    Hmmm, serialize it you say? Ok, I'll try that.ok don't do that ;)
    ummm i was giving advice assuming (incorrectly i turns out) that you were trying to see how much space the serialized object would take up when written to disk or over a network etc.
    this does not appear to be your problem.
    so here are my new more informed suggestions.
    1) if you were going to write out the "data" parts of your object so
    it could be re-created what would they be. i'm thinking you could
    just boil it all down maybe to a long as in Date.getTime(); then
    you could have a long[] array with 45,000 slots. this should take up far less memory than having myObject[] with 45,000 slots. then you
    could have one actual object that you insert the data into to play
    around with. this may not be the idealists solution but if you have a
    lot of objects you may not want to carry around all the excess
    stuff.
    2) as an aside you say you tried to re-write the GregorianCalendar...
    have your tried extending it or extending Calendar. the idea of
    extending other non-final classes is you can provide your own
    implementation of some things or add totally new methods without having
    to re-write an existing class.
    just some ideas...

Maybe you are looking for

  • OBIEE 11G standalone isnatlaltion ISSUE

    Hi Experts, I installed 1) Database, RCU and then from OBIEE isntalaltion software I just installed BIPUBLISHER. After instalaltion xmlserver :7001 came up and I was able to open weblogic also But when I restarted the system and tried to acess the xm

  • Content conversion parameters for fixed length file

    Hi, Hey i have a small doubt.My input is like this 99443  123213  232234  12312    127544  23423 Here i have four recorsetnames namely HEADER1,HEADER2,HEADER3,HEADER4,HEADER5,HEADER6 all the recordsets are of same size but the lengths of the fields i

  • Difference between Device and Tower/Network failures?

    I could not use the MiFi 4510L device last night. I tried multiple computers and each was assigned an IP address, correctly. The modem status appeared to be normal when I used the mifi.admin management console, but I could not ping and I could not lo

  • Copy and pasting text quick working. How do I fix?

    I am trying to paste text and it creates a layer but no text. It worked fine yesterday.

  • Encore & Premiere Pro CS3 with Photoshop CS5

    Hi,    I have the CS3 suite on Vista 32 bit. I was wondering if I can keep the Premiere Pro CS3 and Encore CS3  and only upgrade Photoshop to CS5. Has anyone had any compatibility issues using this combination? Can Encore CS3 menus be easily edited i