Loading an image to remove gray box, then unload the image.

I have been searching for this solution for awhile and I can not seem to find an answer.
What I want to do is load an image instead of the gray box (or as soon as the applet loads) as my applet is processing its information. Then when it's completed, it should take away the image when I display the information. (Displaying the information I already have, not the image part though).
Can this be done? If so, please point me in the right direction.

so i took your suggestion about loading the image, then using a thread.. but the thread can't write to the AWT components at the end of the run (specifically the TextArea). This is basically what i have.. but if i display the TextArea after the start, it does display, but you would see the output being displayed. I would just like to show the "loading" then when it's done, display the TextArea over the image to "hide" it.
but i guess my major question now is, why doesn't the TextArea display?
public class CWJVMcheck extends Applet implements Runnable
    String outputString;
    TextArea output_window;
    Image loadingimage;
    private Thread thread;
    public void init()
     super.init();
        loadingimage = getImage(getCodeBase(), this.getParameter("loadingimage"));
     repaint();
     outputString=""; //Collective string of what to output
     setBackground(Color.white);
        output_window.setEditable(false);
     Font currentFont = new Font("Times New Roman", Font.BOLD, 10);
     output_window.setFont(currentFont);
    public void paint(Graphics g)
         g.drawImage(loadingimage, 0, 0, this);
    public void start(){
         try{
     thread = new Thread(this);
         thread.start();
         //while(thread.isAlive())
         //     Thread.sleep(10);  
     } catch (Exception ex) {
          addToOutput("output some junk.\n");
          displayToTextArea();
    public void run() {
         add(output_window);
         output_window.append(outputString);
    public CWJVMcheck()
        output_window = new TextArea("", 36, 110, 4);
}

Similar Messages

  • How do I place an image inside of a text box, then lock the image

    I have the text where I want it, in font, style, color and everything. But there is an image that I need too to go infront of the text and i need it in the text box so that both the image (which already has a clear background), matches the textbox which also too has a clear background.

    Copy and paste the image inline.
    Or simply overlay it and group the textbox and image.
    Menu > Arrange > Group
    Menu > Arrange > Lock
    Peter

  • Aperture does not recognize that there are images to be imported on an SD card. My workaround is to copy the images from the ST card to a folder and then import the images from the folder. Aperture also imports incredibly slowly after the update to 3.4

    Aperture does not recognize that there are images to be imported on an SD card. My workaround is to copy the images from the SD card to a folder and then import the images from the folder. Aperture also imports incredibly slowly after the update to 3.4

    Check your Import settings in the Import Panel, i.e. all that might exclude the image type you want to import:
    If you did not exclude any file types, and still Aperture will not import, remove your ImageCapture preferences fro your user library:
    To remove the image capture preferences:
    If Aperture is running, quit Aperture,  and log off and on again.
    Open your user library from the Finder's Go menu: Hit Command Shift G (⌘⇧G) and then type in: ~/Library/Preferences/  then hit return.
    In the window that opens remove "com.apple.ImageCapture.plist"
    and look into the subfolder "ByHost": if there are files named com.apple.ImageCapture  something .plist  remove them too.
    then try again.
    And if that still does not help, remove the Aperture preferences as well:
    ~/Library/Preferences/aperture.plist
    Regards
    Léonie
    P.S. in MacOS Lion and later the user library ~/Library is hidden by default.
    You can reveal it also  from the Finder's "Go" menu:
    Finder > Go,   then hold down the options ⌥ key, until the Library appears in the drop-down menu, select it and open the Library folder. Then go to the "Preferences".

  • Copying and pasting adjustments.  When I copy the adjustments of an image, I thought I could then select several images and batch paste the adjustments to all selected images. But instead it's only pasting to the first photo of the selection. What am I do

    Copying and pasting adjustments.  When I copy the adjustments of an image, I thought I could then select several images and batch paste the adjustments to all selected images. But instead it's only pasting to the first photo of the selected. What am I doing wrong?

    Copy and Paste develop settings in Develop mode on multiple photos on the film strip works for me, even with Auto-Sync turned off.  Lr5.6 OSx 10.8.5

  • HELP STATES 5.Click to uncheck the Enable Web Shield box, then click the Apply button, but the AVG indicates "resident shield" ; is that the same?

    Help states 5.Click to uncheck the Enable Web Shield box, then click the Apply button when correcting Firefox. but the AVG info just has "resident Shield". Is that the same item
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; MathPlayer 2.10b; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; OfficeLiveConnector.1.4; OfficeLivePatch.0.0; .NET CLR 3.0.30729; .NET4.0C)

    Which "Help" are are you referring to?

  • I have these black boxes around all the images i add. why are they there and how do i get rid of them?

    i have black boxes around all the images i bring into pages. why are they there and how can i get rid of them?

    Pages rememebers the last setting you used on images.
    So if you had a border on the last image the next one you bring in will have one too.
    To change that select:
    Inspector > Graphic > Stroke > None
    Spend a little time exploring the menus and particularly the Toolbar and Inspectors whcih are in reasonably logical progression from big things down to smaller details and clearly labeled.
    It is also possible that you have show Layout on which outlines objects on th screen so you can see what's what. To change that:
    Menu > View > Hide Layout
    Peter

  • Firefox upon opening an image in a new tab, centers the image from top and bottom and surrounds the image with a grey frame. Just started having the problem today, searched Google to no avail.

    Firefox upon opening an image in a new tab, centers the image from top and bottom and surrounds the image with a grey frame. Just started having the problem today, searched Google to no avail.

    Oh wow, looks like a new feature.
    The "page" links in a stylesheet with the address "resource://gre/res/TopLevelImageDocument.css". If you remove that reference, then the image displays in the old style.
    '''''Edit: Please skip the rest of this post and check out the next one.'''''
    There might be a more elegant solution than that, but you could use a bookmarklet to strip out that link when you want to view the page in its old style. A bookmarklet is a snippet of JavaScript you save on the Bookmarks toolbar for quick access.
    First, copy the following code to the clipboard (it's all one long line):
    <br>javascript:var ssheet=document.querySelector('link[href="resource://gre/res/TopLevelImageDocument.css"]'); if(ssheet)ssheet.parentNode.removeChild(ssheet); void 0;
    Next, if you are not displaying the Bookmarks Toolbar, use View > Toolbars > Bookmarks Toolbar to display it. (If you aren't using the classic Menu bar, press Alt+v to call up the old View menu. Right-clicking the gray area just below the page address also allows you to display the Bookmarks Toolbar.)
    Right-click on the Bookmarks Toolbar (or Mac equivalent of right-click!) and choose New Bookmark.
    Paste the code into the Location box (the second box).
    Then type a useful name in the Name box (e.g., Oldstyle Picture) and click Add.
    Now, when you want to tweak the image display, click the button to run the script.
    Manual clicking is a hassle, so it might make sense to look into other solutions. (Greasemonkey didn't seem to work; I think it might not run on .jpg files.)

  • Please help me!--rendering makes the images or video blurry (very pixelated) deteriorates the image  Adobe Premier Elements 13  need help!  .jpg and mpeg images,  but I have never "rendered" before since I got APE 13 about 6 weeks ago.  I am desperate for

    Please help me!--rendering makes the images or video blurry (very pixelated) deteriorates the image  Adobe Premier Elements 13  need help!  .jpg and mpeg images,  but I have never "rendered" before since I got APE 13 about 6 weeks ago.  I am desperate for assistance!

    That's going to be a ridiculous waste of money and energy.
    First of all, the current ATI drivers don't support multiple GPUs, so at the moment even a single 4870X2 would be only a 'normal' 4870 (which is quite a speed beast already). GFX drivers evolve rapidly, so things might look different next month, but when it comes to Linux and hardware there's one Golden Rule: stay away from the newest stuff and wait for proper support to get coded.
    I also wonder what power supply could possibly cope with the differences between idle and full load; that's way beyond 400W. But then, I'm one of those "quiet&green" types where >100W idle is already a bit much.
    I kind of understand that you want to get it done and not worry about hardware for the next 10 years or so, but that's simply not how the hardware world works and never did. At least not for the average consumer.

  • If Image is Saved As a Text, Would the Image Text, As a Link, Be Indexed by Search Engines.

    Hi I want to put a text long the height of the brown box.
    The text would be vertical as one looking at the page.
    I believe with page make the text can be rotated.
    If Image is Saved As a Text, Would the Image Text, As a Link, Be Indexed by Search Engines.
    or how else to do this?
    an

    If Image is Saved As a Text
    Impossible. It's either image or text.  Save a JPEG as a Word document.  Try it.  Seriously, change the file extension, open it in Word and see what happens.
    Would the Image Text, As a Link,
    Huh?  You lost me here.
    Be Indexed by Search Engines.
    Indexing of search engines.  Yes, Google sees links and Google sees alt text for images.  Google does not see images nor Flash.

  • Help!  I drag an image into pages but it gives me the images info instead of the picture!  What do I do?

    Does any one know what i need to change.  When i'm dragging an image into pages it ends up with the images info and web address rather than the image itself.  What should I do?
    Thank you.

    Try dragging the image to the desktop and then to the Pages document or
    Select and copy the image and paste it into the document.
    It could be that the webpage is making it impossible to knick the image. I have encountered that a few times.

  • Strange. After importing a series of images from a Sony camcorder, I see the images but there's no sound, although there is sound on the camera.

    strange. After importing a series of images from a Sony camcorder, I see the images but there's no sound, although there is sound on the camera.

    Hi Jan,
    Looks like a common problem, see if this is of any help...
    http://www.bigasoft.com/articles/how-to-import-sony-handycam-avchd-mts-mpeg2-to- imovie.html

  • I am trying to import scanned illustrations into Final Cut Pro (6) as layered photoshop images, however when I try and animate the image is blurred.....please help!

    I am trying to import scanned illustrations into Final Cut Pro (6) as layered photoshop images, however when I try and animate the image is blurred.....please help! Will I need to create the photoshop files as a certain size/resolution? I am working to 4:3.....

    You should take your question to the Final Cut Studio forum. This is FCPX.

  • Pictures and Scanned images are now gray boxes

    I have Adobe Reader XI and it will no longer show images or allow me to scan from my printer.  I have a mac, and have always been able to create pdfs and scan to them until the past few days. My version is up to date. Images in pdfs and the scanned documents now appear as gray boxes.

    All  your images are pointing to your Templates folder. I would guess that they are not uploaded to the server.
    I don't think that is the ideal place to store your images. Normally, one would have an image folder and images would be there. Also your css is also in your Templates folder, not ideal again.
    IE:
    Your css: <link href="../Templates/style.css" rel="stylesheet" type="text/css" />
    Your image(s): <a href="../Templates/still_life_1_css.html"><img src="../Templates/still_life_1_thumb.jpg" width="35" height="35" border="0" /></a> <a href="../Templates/still_life_2_css.html"><img src="../Templates/still_life_2_thumb.jpg" width="35" height="35" border="0" /></a>
    Usually when they are greyed out, then could be a broken link.

  • How to remove gray line around an empty image in DW CS6

    I have an image that I retrieve from a database (the path) files are stored in a folder.
    However when there is no image the image outline is still there.
    I have managed to remove the image dreamweaver CS6 gives you automatically (if there is an error etc.) , however the outline is still there even if you set the border to zero. When there is an image it is shown with no border
    Is there a solution to remove the border of the empty image or remove the empty image all together
    Please find my code I'm using below
    <img src="<?php if (is_null($row_Recordset1['SmalImage2'])) {
    } else {
    }   $file_path.$row_Recordset1['SmallImage2']; ?>" alt="<?php echo $row_Recordset1['Manufacturer']; ?> <?php echo $row_Recordset1['Model']; ?>" name="t2" width="60" height="60" id="t2" onClick="MM_swapImage('main','','<?php echo $file_path.$row_Recordset1['LargeImage2']; ?>',1)"border = "0"></td>

    Thanks again for looking
    I have now changed the code as you said it is looking as follows:
    <?php if (!is_null($row_Recordset1['SmallImage2'])) { ?>
    echo $file_path."|".$row_Recordset1['SmallImage2']; exit();    
    <img src="<?php echo $file_path.$row_Recordset1['SmallImage2']; ?>" alt="<?php echo $row_Recordset1['Manufacturer']; ?> <?php echo $row_Recordset1['Model']; ?> name="t2" width="60" height="60" id="t2" onClick="MM_swapImage('main','','<?php echo $file_path.$row_Recordset1['LargeImage2']; ?>',1)"border = "0"><?php } ?>
    however
    echo $file_path."|".$row_Recordset1['SmallImage1']; exit();
    is written in black (not sure if that is what you wanted)
    the source code is as follows:
    <td width="67"><img src="../files/Images/product/image.jpg" alt="alt text here" name="t1" width="60" height="60" id="t1" onClick="MM_swapImage('main','','../files/Images/product/image.jpg',1)"></td>
        <td width="60">
              echo $file_path."|".$row_Recordset1['SmallImage2']; exit();    
    <img src="../files/Images/product/image.jpg" alt="alt text here name="t2" width="60" height="60" id="t2" onClick="MM_swapImage('main','','../files/Images/product/image.jpg',1)"border = "0">
          </td>
        <td width="60"><img src="" alt="alt text here" name="t3" width="60" height="60" id="t3" onClick="MM_swapImage('main','','../files/Images/product/',1)"border = "0"></td>
        <td width="245"><img src="" alt="alt text here" name="t4" width="60" height="60" id="t4" onClick="MM_swapImage('main','','../files/Images/product/',1)"border = "0"></td>
        <td colspan="2"></td>
        </tr>
      <tr>
        <td colspan="4"></td>
        <td width="0"></td>
    also the first image is now squashed up in the preview

  • The new tab button is now surrounded by a large gray box after downloading the new version

    Rather than seeing just the small rounded light gray button around the "+" sign for a new tab, there is now a larger, dark grey rectangle (larger than the new button itself) over the "+" sign. When I hover, the rounded part of the button appears, but the larger gray box remains.
    It's almost like I'd like to write a short {display: none !important}, but I'm new to Firebug, and can't figure out how to get the name of that part of the screen.
    I have a screen shot which I'd like to add to this post, but having difficulty adding it in.
    Thanks for your help.

    Hello,
    You can add screenshots to replies only. Try disabling graphics hardware acceleration first to see if that gets rid of it. You might need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
    Then perform these steps:
    # Click the menu button [[Image:New Fx Menu]] and select ''Options'' for Windows or ''Preferences'' on Mac or Linux.
    #In the Firefox Options (or Preferences) window, click the ''Advanced'' tab, then select ''General''.
    #In the settings list, you should find the ''Use hardware acceleration when available'' checkbox. Uncheck this checkbox.
    #Now, restart Firefox and see if the problems persist.
    Additionally, please check for updates for your graphics driver by following the steps mentioned in the following Knowledge base articles:
    * [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
    * [[Upgrade your graphics drivers to use hardware acceleration and WebGL]]
    You can also see if the gray box appears in [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] - it could be caused by an extension.
    If those don't help, then please attach a screenshot by clicking the '''Browse...''' button below the ''Post your reply'' box. This will help us to visualize the problem.

Maybe you are looking for

  • Error while saving the request

    Dear all, When i am saving the request through transaction FKKORD1 transaction .I am getting the following dump.Please let me know how to resolve this issue. Runtime Errors         GETWA_NOT_ASSIGNED Date and Time          07.01.2010 13:40:12 Short t

  • How can I get my e-mail to send with EDGE?

    My iPhone works great at sending and receiving e-mails when I am connected to wi-fi. But as soon as I switch over to EDGE, all that I am able to do is receive the e-mails (VERY slowly, I might add...) I am completely unable to send an e-mail until I

  • JVM Hotspot compiler crashed

    Hello, The JVM crashed in one of our Solaris production environments. The cause of the crash appears to be the HotSpot compiler. It seems that the JVM was trying to compile frequently used code and then it crashed. I have checked the forums and I fou

  • Malerial List With DMS document attached to it

    Hi Can any one have idea from where i can get Material list to which Documents are attached.

  • Both the 'delete' button and in the menu options do not delete messages but change them to unread. How can I remedy this?

    The delete function seems to no longer work in Thunderbird. Both the 'delete' button and in the menu options do not delete messages but change them to unread. I have tried to fix it by deleting the trash / deleted files as suggested in another thread