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.

Similar Messages

  • Printing out of CS5 on Epson R3000 prints light cyan and grey background

    I have an Imac with Mountain Lion, CS5 and have just replaced my Epson R2400 with an R3000. Now the white background round the image is covered in small cyan and light grey dots. If the image fills the paper, then the margin is affected. But when trying to proof colours I am going through loads of paper as I cannot now print a smaller image on a larger piece of paper, then re-feed the same sheet through with another small image as the paper is now pale blue.
    The R2400 was fine for proofing, as the image alone would print and then the printer fed through the remainder of the sheet without printing, leaving the rest of the paper white.
    I understand that there was a problem with this previously (CS5 on Epson 7900. However the discussion thread stopped after November 2011.I understood from that , that it was most likely a Photoshop issue and some sort of conflict with the Paper profiles. But, I have checked the profiles on my Mac and they are all version 2 profiles. I note that the few profiles that do work without the blue colour do have 'bkpt' in their profiling and that the ones for the paper I actually do use and in fact the majority of the profiles, do not contain 'bkpt'.
    Has this problem been rectified at all? Please will you tell me how to do it? I appreciate all the help I can get.

    If unchecking the scene-referred profiles box clears the display problem in Photoshop, you most likely have hit a known bug with defective monitor profiling packages building defective monitor profiles that affect Photoshop and After Effects — specifically, the defective profile is erroneously marked as "scene referred."
    Version 4 ICC Profiles: If your are using v4 printing profiles, try Googling for more information...some symptoms of this bug are Photoshop prints a light cyan or blue in the page white areas. The Fix is to use Version 2 printer profiles.
    there is another old known issue that has to do with trying to Hard Proof simulate press conditions (printing cyan in whites) but i am not sure what you are trying and i can't recall it right now
    if those aren't it upload these screenshots of your workflow:
    show full Photoshop window including zoom% and Docuent Profile in lower left corner

  • 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

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

  • My mac book pro will not fully boot up. I have the grey background with the apple sign and the timer going round...but 20 minutes later still no desktop

    My mac book pro will not fully boot up. I have the grey background with the apple sign and the timer going round...but 20 minutes later still no desktop

    You could try doing a hard shut down (holding the power button or yanking the battery) and then doing a safe boot by holding the shift key at startup:
    http://support.apple.com/kb/HT1455
    Also, not sure if this applies in your case, but I've had that happen when there's a USB drive inserted either in the computer or a connected external keyboard.  I did a hard shut down, removed the drive and it went through a normal start up. 

  • On OS X Lion, suddenly i've lost my desktop and mission control gave me a grey background. My desktop is seen as a window hidden. How can I do ?

    On OS X Lion, my desktop is hidden and I just see a grey background with notes opened.

    notes opened?what does the note say?

  • Image size and dpi for iDVD menu custom background?

    I created a custom background for my iDVD menu. When showing
    on my TV, part of the words and image is cut off on each side, even after adjusting my tv picture between wide screen and standard screen.
    What is the correct size and dpi to make a photograph to use as a background
    image in the menus? This may have been answered before, so I apologize for posting the same question, if so.

    iDVD will try to downsize the image to work, but your TV often will overscan with the result being edges clipped off. The amount of clipping can vary, so the "TV Safe" settings will typically be the center 80-90% of the image. So, if you add a border that makes the image 10-15% larger, that should display the whole image. For example, if you had a 150 dpi image that was 640x480, you could put a 10% border on it so the final image was 704x528.
    John

  • I was copying files to my time capsule when it crashed when it was almost finished. Now I am stuck with a light grey folder I can not delete. I would´t care if it wasn´t for the fact the folder is 1 TB size and takes up too much space. I ha

    I was copying files to my time capsule when it crashed when it was almost finished. Now I am stuck with a light grey folder I can not delete. I would´t care if it wasn´t for the fact the folder is 1 TB size and takes up too much space. I have tried turning on and of Hiding Files in Finder and what not with no success. So, how do I delete this folder. Remember, I am not extremely familiar with technical terms.

    I recommend you erase the TC.. it is the easiest and fastest solution.
    In Airport utility open the disk tab and select erase.. choose quick erase.. it will take less than 1min.
    Start again but copy files in small amounts.

  • HELP! Controlling size and position of new window from applet

    I am totally new to using java. I am making use of a java applet for showing images. Each image may be clicked to open a higher res image in a new window. I want to be able to control the size and position of the new window. The windows need to be different sizes for each image - a couple may be the same size but some will be different.
    I found this:
    <<<<Yes it can (but not after the window has been created). JavaScript can open documents in a new (or an old) window with eg.
    <script>
    window.open("document.url", "window_name", "toolbar=no,statusbar=no,scrollbars=no,resizable=no,width=600,height=400");
    </script>
    The new window will have only the title bar and the frame around the document, nothing else.
    That can be made a function and called from an applet through liveconnect.>>>>
    from a search re window sizes but I need more explicit help with how to put it into my document! This looks like it might work with the exception it doesn't give a position but I could even live without that.
    Am I correct in assuming tha this script goes in the <head> of the document? If I have several different sizes, I would need to have several different but similar scripts but with different window names?
    Do I substitute the actual url where it says "document.url"? What about "window_name"? And what does liveconnect mean?
    Here is a sample from the applet coding I have in place:
    \\\\\<param name="image2" value="barneygargles_th.jpg">
    <param name="link2" value="http://www.barneygargles.com">
    <param name="statusmsg2" value="Barney Gargles Family Restaurant">\\\\\
    Please, I hope someone can help with this! This is driving me crazy!
    Thanks to anyone who can walk me through this one!
    Linda

    I have been searching the internet for more information and it appears that others have been faced with this problem.
    I have found a couple of possible answers but I am not sure how to do them.
    http://forums.macosxhints.com/showthread.php?t=64059
    http://forums.macrumors.com/archive/index.php/t-119915.html
    The first link seems more relavent but I am not sure how to do what it is talking about.
    Can anyone help?
    I have recently moved from a PC to MAC and this problem is really getting in the way of my work.

  • Apple logo and spinning timer with grey background pls help

    I just get a grey background with apple logo in dark grey with a spinning timer thing below and you can here the fans running when I turn on my new mac book its a day old!
    I have tried removing battery holding down power button
    i've tried reseting pram and navram ctrl cmd p & r buttons.
    is there anything else to try before I take it back?

    So you never got to see what your new desktop or programs are like?

  • How do i change font sizes and colors in ical in OS Lion.  Everything is greyed and too small.   And how do I changed the color of the scroll bars, which are now invisible?

    how do i change font sizes and colors in ical in OS Lion. Since upgrading,  all fonts are grey, instead of black,  and too small.   And how do I changed the color of the scroll bars, which also are grey and almost invisible?  And if you can asnwer this, can you tell me how to get back the email format I had before the upgrade?  I no longer have column headings and I'd like them.  Thank you. 

    Do you know about changing the font colors for ical, and the color of the scroll bars?
    No, I don't. I don't use that program; I fiddled with it just now, and could not find a way to do that.
    Perhaps someone else will have an idea.

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

  • How to change Mission Control and Notification Center grey background on Mavericks?

    Has anyone found a solution that works, to this day?
    I've been able to change the login, dashboard and launchpad backgrounds (launchpad I actually only un-blurred with OnyX)...so they now all look like my desktop wallpaper.
    But I can't manage to find an actual solution for MC and NC, yet. It would be nice if Notification Center could be even just black or maybe restored to linen, don't know, but not that ugly *** grey!
    Does anyone have any new tips?
    Or is it true that the MC grey backgroud is done with code, therefore not changeable? Seriously hope not!
    Thank you.

    Nope.

  • I have CS5 running on Windows but if I call an image into Photoshop it only displays on one view setting. Zoom in or out and I get a chequered grey background. Any suggestions how to rectify please?

    I have CS5 running on Windows but if I call an image into Photoshop it only displays on one view setting. Zoom in or out and I get a chequered grey background. Any suggestions how to rectify please?

    <moved from Downloading, Installing, Setting Up to Photoshop General Discussion>

  • How do I change the size of ikons and the background in Firefox??

    See above

    * Theme Font & Size Changer: https://addons.mozilla.org/firefox/addon/theme-font-size-changer/
    You can use one of these extensions to set a default font size and page zoom on web pages:
    * Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/
    * NoSquint: https://addons.mozilla.org/firefox/addon/nosquint/

Maybe you are looking for

  • System image utility (server 4) failing

    iMac (21.5-inch, Late 2012) with Yosemite 10.10.1 won't image with System Image Utility I'm using a procedure I've done successfully for a long time with Mavericks. Any suggestions, of course, are welcome. Create NetRestore Image Initiating NetRestor

  • Modelling a non-cumulative key figure.

    Hi All,    I have a requirement like given below. I feel a non-cumulative key fig serves my purpose. But i m not geting exactly how to model it.Pls give u r suggestions onnhow to do it?    i got chars C1,T1 and key figures K1,K2. C1 IS A CUSTOM CHAR.

  • How can i code in the "FORM USEREXIT_......" in the standard programs?

    I see sap have many userexit subroutines in the standard programs? Like Include 'MV50AFZ1'. How can i customer my code in these subroutines? It always message me Access key! Thank you very much!~~

  • E52: change default browser

    how can I change the default browser from Nokia Browser 7.3 to Opera Mini? Example: when a WiFi net is connected and a web session is starting

  • HOW DO I VIEW A PUBLISHER FILE?

    anyone know how i can view a publisher file on my mac for free? I do have ms office 2011