Applet graphics don't show up in ie

Posted on 2006-04-12
Last Modified: 2010-03-31

I have javascript calling a function in a java applet that will display two buttons on the screen, this works in firefox and everything is displayed, but in ie nothing shows up.  It will show up it ie if you resize the screen or switch to another screen and back.  Does anyone know how to fix it so that it displays when it is supposed too?

Question by:csalem05
    LVL 92

    Accepted Solution

    try calling revalidate() and repaint() on the component you are adding the buttons to.


    JComponent container =  ......
    LVL 30

    Assisted Solution

    Do you do a lot of stuff on the event-dispatch thread, BTW? Or do you periodically repaint the applet in a separate thread?

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
    Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
    Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
    Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now