Applet overlaps

Hai,
I am having two applets in a single JSP as Tab Control. When we click first tab first applet will be loaded. When we click second JSP first tab will be hide (using Div) and second one will be loaded. When I click first tab I am hiding second tab and make visible first tab. My problem is, when I make visible first tab, some porting of second screen applet overlaps the first screen applet. If I minize the screen and if I reload it looks fine.
I tried with paint,repaint and updateGUI option. But nothing works.
Thanks

Hai,
I am having two applets in a single JSP as Tab Control. When we click first tab first applet will be loaded. When we click second JSP first tab will be hide (using Div) and second one will be loaded. When I click first tab I am hiding second tab and make visible first tab. My problem is, when I make visible first tab, some porting of second screen applet overlaps the first screen applet. If I minize the screen and if I reload it looks fine.
I tried with paint,repaint and updateGUI option. But nothing works.
Anybody updates?
Thanks

Similar Messages

  • Applet overlaps HTML elements

    Hi,
    Anyway not to let Applet overlap other HTML elements? I saw this is a classical problem in applet/flash. But one workaround in Flash is using a parameter: <param name="wmode" value="transparent">. This can let HTML elements be on top of Flash.
    So are there any similar ways in Applet?
    Thanks!

    I am sorry for not describing the problem clearly.
    The HTML elements here I mean are those with an absolute positioning, for example, a flowing <div> element which has an intersection part with an applet and should be exactly positioned over an applet.
    An article has shown the phenomenon in Flash. In that article the "Search Form" is an HTML element which should be rendered above the Flash objects.
    However, in most cases, objects like Flash and Applets usually ignores z-indexes assigned to HTML elements and are always on the topmost and covers these absolute positioned HTML elements if they overlaps. That article hints me about having a parameter like "<param name="wmode" value="transparent">" to force the Flash object rendered below the HTML elements, but I just cannot find a similar way in Applet.
    Any suggestion? Thanks!

  • Overlapping images in an applet

    Hello,
    I'm a Java beginner and I would like to write a small applet for a web page. My goal is the following:
    The webpage has a background image. So far no problem.The applet should also show a small menu- which is also no greater problem.
    Further on, every time the mouse cursor is rolling over a menu image, another image should be displayed overlapping the background image.
    This is a problem, because I cannot remove the displayed image without
    repainting the entire background image.
    I am looking for a method, which can store a well defined image area so I can restore it later.
    Thank you for any help !
    Stephan

    Put your images (rollover or whatever) on a new component - in swing you can use a JLabel - or, I'll assume awt here as its an applet, you can use a Panel. eg
    MouseEntered()
    inside your area
    add(myPanel)
    MouseExited()
    your area
    remove(myPanel)
    In the panel you'll need to explicity call on java.awt.Graphics with
    Graphics g = myPanel.getGraphics();

  • Version XI 11.0.02 overlaps nearly all desktop and start menu applets

    Help!
    Running Windows 7 and have repeatedly installed & uninstalled Reader.   After installation, Reader overlaps applets.  Reader works fine.  Can not use desktop or start menus.  Then I uninstall Reader.  Presently it is not installed.

    Hi,
    This might help you : http://helpx.adobe.com/acrobat/kb/application-file-icons-change-acrobat.html
    Thanks

  • Problems with pacman applet, and advice on a gaming portfolio

    Hi
    I recently made a pacman applet, im having a few problems with it though, the first time the applet is run on a browser, the ghosts(represented by squares) often dont appear or if they do, they are stuck in walls, this never happens when i run offline on my computer. Is this because the very first time the applet is run, it doesnt load properly, but the second time some of the files are in the cache so it loads fully?
    Also everytime i refresh the browser the applet dissapears and is replaced with a blank space and a cross in the top left hand corner, does anyone know the reason for this?
    The applet can be found below, if you do decide to play it, please bear in mind what i have said, so it might not load correctly the first time, if this is the case please refresh, or close the broswer and reopen the link! Also you will need to click the applet for it to gain focus before you can move pacman - use the arrow keys the control pacman.
    http://www.renaissance-designs.co.uk/Satwant/java/pacman/
    Id also be very gratful for some advice - id like a change in career, ive always wanted to get into gaming, ive had some previous knowledge in java i made a programme that could generate its own poetry in java for my dissatation, but i still never had a huge amount of confidence, and so went into websites.
    BUT now i have decided to take the leap back into programming and give it a go, which is why ive made this game.
    I thought id make a portfolio and try and apply for a few gaming jobs. This applet took me two weeks to make and it was in my spare time, i am fully aware its not perfect, and it doesnt look great, but i would like to know what people think of it, also how many more games do you think i should make, before i apply for gaming jobs? Does anyone have any advice on what would make a good portfolio for a java gaming job?
    Thanks alot, i look forward to what you think of the game, and your advice!
    SSKenth

    sskenth wrote:
    Thanks for getting back to me with that information, i didnt know you could see that information with just a simple right click!
    But im afraid that doesnt really help me solve the problem, im not sure what all of that information means! :SI have very little experience with applets, but I can tell you what I would do to debug this (forgive me if you already know this stuff).
    Look at the stack trace you get in the Java Console that I posted earlier. Each line contains a method that was called from the method on the previous line. So, java.lang.Thread.run() called sun.applet.AppletPanel.run(), which called Room.init(), etc. Look at the topmost line whose method is something you wrote, not something in the standard Java libraries. In your case it looks like PaintSurface.java (specifically, line 22). Look at what line 22 of PaintSurface.java is doing, it's calling Thread.start(). If you check out the Javadoc for Thread.start(), it says IllegalThreadStateException gets thrown if you call start() on a thread that has already started. So that's your problem. Without looking at your code, I'd assume you want to stop your thread in your applet's destroy() override, and instead of reusing it, create a new one each time init() is called.
    Ill try and look into, thanks again though, it gives me somthing to work with :D
    Btw when you first ran the applet, did all the ghosts(3) load up correctly?Unfortunately, no. The first time I ran it, there was only 1 ghost (or maybe all 3 overlapping each other?) at the top of the screen, and they never moved. Refreshing once made the game play as I think you want it to. Refreshing a third time gave the dreaded red X.
    ...oh and just out of curiosity,,, did u have fun playing the game :DSure did.

  • Overlapping fields in java web viewer

    We are having an issue with SAP Crystal Report, version for Eclipse(java run time). We are using 12.2.217 of the java run time.
    We are having an issue with data from one field overlapping the data from another field in the report viewer. These are reports that we have used for a
    while and viewing them in a windows activeX viewer without having this issue. In the activeX viewer the fields are truncated. The designer also truncates the
    fields. We are using Crystal Reports 2008 version 12.2.0.290 designer.
    I have seen suggestions involving the Can Grow option. We were not happy with either the 0 or 1 line options. The 0 option for unlimited can make the reports much longer. The 1 line option truncates on whole words so you can lose a lot more this way. We would prefer truncation of the field like the other viewers handle it.
    We had a change to the Style.css file that worked great on the fields, but had some undesirable side effects. Like sub reports and sort controls disappeared. It seems the field css tag is generated at run time, thus not able to address them specifically in the css file.
    div
      overflow:hidden;
    I have attached a couple examples. Any suggestions would be greatly appreciated.

    I guess we're not on the same page.
    I don't know how a java program running in a browser as an applet, can
    access fields in the HTML page that the browser is displaying.
    Could you explain how you are able to do this please?
    Where/how is the java code being executed that it can communicate with a browser and insert data in an HTML field on a page the the browser is displaying?
    Or is your java code running on a server and outputting HTML text that is being returned to a client's browser?
    In which case, your question is more about how to do it in HTML . Once you have the correct HTML syntax then its simple to have a program write the needed HTML.

  • Applet not draw anything after resizing

    Hello.
    We have applet, which show tree manualy in it.
    And it works fine for JRE1.4.2_05.
    But after swithing to JRE1.5.0_03 we have problem:
    It is not draw anything(blank window) after resizing.
    But if we move other window over it or hide/show browser with applet, then it show content normally.
    Is it a bug of JRE1.5.0_03 ? And how we can solve this problem?

    Yeah I got similar problem with 1.5. The problem is Applet's Paint method is often called incorrectly after resizing. My case is that when I drag(resizing) the applet by its top border, it is first displayed with previous size(overlapping other frame). Folks here do not know how to resolve this.

  • JLabel doesn't show up in the Applet

    Hi, all,
    Could you please help me to see my code and tell me why the JLabel component doesn't show up in my applet?
    Thank you. It seems the applet's paint() overlaps the JLabel.
    I would like to create a JLabel on my applet, so that I can update the time on it rather than repainting the whole applet.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
        This class tests the ChessBoard class and provides
        two methods for the users to play a chess game.
    public class ChessGame extends JApplet
            Represents the listener for the mouse.
       class MyMouse implements MouseListener
                Gets clicked position on the chess board
                and moves chesses.
                @param event the event that makes this action perform
            public void mousePressed(MouseEvent event)
                                   // Do something.
            // Do nothing methods.
          public void mouseReleased(MouseEvent event){ }
            public void mouseClicked(MouseEvent event){ }
            public void mouseEntered(MouseEvent event){ }
            public void mouseExited(MouseEvent event){ }       
            Constructs a chess game on an applet.
       public void init()
            setBackground(Color.white);
            myGame = new ChessBoard();
          whiteTurn = 0;
          whoseTurn = "White's Move:";
          isFirstClick = true;
          MyMouse mouse = new MyMouse();
            addMouseListener(mouse);
            JPanel panel = new JPanel();
            gameTime = new JLabel("My Time");
            panel.add(gameTime);
        public void paint(Graphics g)
            Graphics2D g2 = (Graphics2D) g;
            // Clear backgroung
            g.setColor(getBackground());
            g.fillRect(0, 0, getWidth(), getHeight());
          // Sets color for message        
            g.setColor(Color.BLACK);
            // Displays last moved action.
          if(lastMoved != null)
             g.drawString("Last Moved: ", 45, 440);
                if(whiteTurn == 1)
                g.drawString("White Moved: " + lastMoved, 45, 460);
             else
                g.drawString("Black Moved: " + lastMoved, 45, 460);
            // Displays whose turn for the user.
          g.drawString(whoseTurn, 45, 20);
            // Draw the chess board and its pieces.
            myGame.paint(g2);
        private ChessBoard myGame;
        private int whiteTurn;   
       private String whoseTurn;
        private String lastMoved;
       private int oldRow, oldColumn, newRow, newColumn;
       private boolean isFirstClick;
        private JPanel panel;
        private JLabel gameTime;
    }

    You never add the panel containing the label to the applet. Try something like this:
            Constructs a chess game on an applet.
       public void init()
            setBackground(Color.white);
            myGame = new ChessBoard();
          whiteTurn = 0;
          whoseTurn = "White's Move:";
          isFirstClick = true;
          MyMouse mouse = new MyMouse();
            addMouseListener(mouse);
            JPanel panel = new JPanel();
            gameTime = new JLabel("My Time");
            panel.add(gameTime);
            // add new panel containing JLabel to applet
            this.getContentPane().add(panel);
        }

  • Logo Overlaps with Data when viewed in HTML mode

    Hi,
    My report looks weird when I view the report in HTML mode i.e., my report logo overlaps with the report Row headers but when i view the same report in Java Applet mode report looks good and also when I export the report it looks good.
    I tried deleting the logo & adding a new logo & I even changed the settings of the logo & also I cleared cache of my browser, etc. I tired many options but nothing seems to work. Only couple of reports have this kind of issue & rest other reports looks good.
    Did anyone faced this kind of issue before? Is it a tool bug?
    FYI, I am using BO 4.0 SP5.
    FYI, I have created Logo by creating a blank cell in the Header of the report., then right click on blank cell and select “Format Cell”. In the formal Format Cell window click on Appearance and click on Radio Button “Image from URL” then type boimg://reportimage.jpg
    Thanks & Regards.
    Naveen.

    See if one of these program will kick it out of recovery mode:
    For PC
    RecBoot: Easy Way to Put iPhone into Recovery Mode
    If necessary:
    Download QTMLClient.dll & iTunesMobileDevice.dll for RecBoot
    and                                           
    RecBoot tip
    For MAC or PC       
    The Firmware Umbrella - TinyUmbrella
    Next, restore the the iPod and see if you can get any data off the restored iPod
    via How to perform iPad recovery for photos, videos
      Wondershare Dr.Fone for iOS: iPhone Data Recovery - Wondershare Official

  • Resize applet - more info

    I want to be more specific: i have a class that extends applet to this class i added two panels. to one of the panels i added 100 buttons, to the other 4 labels.
    i have also a class that extends frame, in order to run my applet as an application. i added to this frame my applet, when i create a new instance of the applet the constructor add's all the panels and buttons.
    In order that when i resize the frame also the applet including all its panels and buttons will be resized, i added to the frame a componentlistener and called setsize in my applet with the appropiriate dimenstion, it seemd to work, but the panels didnt resize, so i overlapped in my applet the setsize method and added pnael.setsize for the two panels but it still doesnt work.What is the right way to do this??

    >
    In order that when i resize the frame also the applet
    including all its panels and buttons will be resized,
    i added to the frame a componentlistener and called
    setsize in my applet with the appropiriate dimenstion,you don't need a componentlistener - the LayoutManager of the Frame (a BorderLayout) takes care of the resizing of the applet
    it seemd to work, but the panels didnt resize, so i
    overlapped in my applet the setsize method and added
    pnael.setsize for the two panels but it still doesnt
    work.What is the right way to do this??wookash is right, you'll need to set the correct LayoutManager in your applet (its currently a FlowLayout)
    I think you should use an GridLayout in the Applet
    for example:
    myApplet.setLayout(new GridLayout(1,2));
    myApplet.add(panel1);
    myApplet.add(panel2);

  • Java Applet (Masking/Scrollbar)

    hi ppl out there.. i've some difficulties in my project.. can u all help me?
    i need to create a java applet, with a scrollbar.. <-- this i know..
    but how to create a image overlapping an image? what i mean here is that i have a image (A) appearing now.. i need to have another image(B) to be on top of it.. den when i click/drag the scrollbar, the image(B) will move alittle, showing abit of image(A).. it is like masking type.. can some kind soul share with me the source code??

    i need to create a java applet, with a scrollbar.. <-- this i know..Why not use a JSlider?
    i have a image (A) appearing now.. i need to have another image(B) to be on top of it.. You can add a JPanel to your JApplet's content pane. You'll need to create your own class that extends JPanel. By creating your own class, you can override the paintComponent() method, which is where drawing on a component takes place. paintComponent() is called automatically when the component is first displayed, and when you call repaint() on the component. You can create the JPanel and add it to your JApplet inside init().
    Inside paintComponent(), you can draw the second image on top of the first image doing this:
    public void paintComponent(Graphics g)
         super.paintComponent(g);
         g.drawImage(img1, 0, 0, this); //first image
         g.drawImage(img2, 0, 0, this); //second image
    }img1 and img2 must be objects of type Image. In a JApplet, you can create Image objects from a file name like this:
    URL pic1 = new URL(getCodeBase(), "yourPic.jpg"); //.jpg file is in same directory as applet's .class file
    Image img1 = getImage(pic1);
    but how to create a image overlapping an image?If you want to move the second image over 10 pixels so that the two images are overlapping, you can do this:
    g.drawImage(img2, 10, 0, this); //x coordinate was changed from 0 to 10
    den when i click/drag the scrollbar, the image(B) will move alittle, showing abit of image(A)..You can also add a JSlider to your JApplet. A JSlider will fire a ChangeEvent event when it is moved. You can register your JPanel to listen for that event. Once your JPanel is registered for that event, the JSlider will call a stateChanged() method inside your JPanel class, which you can define to perform the tasks you want.
    If you add a member variable to your JPanel class, like
    int img2x;  //x coordinate of 2nd imageYou can read that value inside the JPanel's paintComponent() method:
    g.drawImage(img2, img2x, 0, this); //x coordinate was changed from 0 to 10If you set img2x to 0 in the JPanel's constructor, then when your JPanel is first displayed, the second image will be on top of the first image. When the user moves the slider, the stateChanged() method that you define in your JPanel class will be called. Inside stateChanged(), you can get the value of the slider; and then set img2x to that value; and then call repaint() on your JPanel. Calling repaint() on your JPanel will cause paintComponent() to be called, which will read the new value for img2x, which will cause the second image to move to the new coordinates and reveal part of the first image.
    See here for more information on how to use a JSlider:
    http://java.sun.com/docs/books/tutorial/uiswing/components/slider.html

  • Opening a frame inside IE applet (window)

    I have an applet whih creates an instance of a frame .. the frame opens up in a separate IE window .. is there a way for the frame to overlay the applet window or is the nature of the frame always going to force a new window to open .. thanks to all who reply in advance

    If you want the frame to overlap the applet, don't use a frame but a panel.
    Kind regards,
      Levi

  • Help! Image OverLapping components. Get Your dukes right here.

    I am creating an applet and I want to use an image as a background to a jPanel. There is a jTextField on the panel that is hidden because the BG image overlaps it. I would like the image to be used as a background and only as a background. Any Suggestions? Duke Dollars will be awarded.
    public class Tester extends JApplet
      Image imageTest;
      Graphics dbg;
      Image dbImage;
      JScrollPane jScrollPane1 = new JScrollPane();
      public Tester()
      public void init()
        try
          jbInit();
          imageTest = getImage( getDocumentBase(), "bg.gif");
        catch(Exception e)
          e.printStackTrace();
      private void jbInit() throws Exception
        this.getContentPane().setLayout(null);
        jScrollPane1.setBounds(new Rectangle(70, 30, 235, 215));
        jScrollPane1.setBackground(Color.black);
        jScrollPane1.setForeground(Color.white);
        this.getContentPane().add(jScrollPane1, null);
      static 
        try
          // UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
          // UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
        catch(Exception e)
    public void paint(Graphics g)
        g.drawImage(imageTest, 0,0, this);
    }

    Check out this thread:
    http://forum.java.sun.com/thread.jsp?forum=57&thread=316074

  • Applet goes crazy

    I am fairly new to java, and completely new to this forum, so I am not sure if this is where this question is supposed to go, but here it is anyway.
    I am trying to write a poker program, that shows the pictures or the card. However, when i run the .html file with the applet in it, it appears that the program runs many many times. It shows words overlapping, and whenever i minimize and restore it, a new set of cards appears. I want it to run only once. Also, if i scroll in the window, the pictures of cards become messed up, with sections of card being replaced with other sections.
    Another question. When using the getImage(getCodeBase(), picture) method, why can I only use that in the paint method. If i try to use it in another part of the program, it sats that getImage and getCodeBase are not static.
    hopefully you understood my questions, and any help is appreciated.

    have you tried running the applet in various browsers? sometimes applet support is quite bad in some browsers
    and for the static thing - do you know what static means? it means that there can be only one instane of this object, var or method
    you probably made something static - and these methods are in Applet i think so if you're not in a class extending Applet it won't wotk

  • JavaScript menu is not showing up, when it comes over applet area, why?

    When my javascript menu is overlapping on applet, the menu is going behind the applet. Is there any solution to get rid this. Please, anybody have the solution mail me at this id.
    [email protected]
    thanks
    sateesh

    Many people have tried to solve this problem but just about the only thing you can do is to put your applet in a <DIV> or <LAYER> (depending on the browser you want to support) and turn the <DIV> or <LAYER> invisible when your menu is activated. You'll find that your menu will also be displayed behind a FORM and other heavy-weight component, not just an applet!
    Good luck!
    V.V.

Maybe you are looking for

  • A paying customer who's fed up with your 'customer service'

    Let me see - I'm paying customer trying to renew a subscription that was a reduced rate (hence why I'm not doing it online) - and sometimes I actually want to speak to a human being for a sales transaction.  I'm also a customer who's purchased your p

  • Bapi is not updating table

    When executing the code it gives an error that 3110 3111 mack7  is not contained in the physical inventory document where mack7 is matnr . 3110 is plant while actuaaly it is present. report Z_PHYSICAL        no standard page heading line-size 255. TY

  • Problem in saving the spool list into Excel file.

    Hello Friends,                      I run a background process for a report, and storing the resulting list into Excel format file. But the result is column values jumbled, it means columns values are not sitting in the right place in excel sheet. I

  • How do I get Messages to stop sending from my email address instead of my phone number?

    I've had several people tell me that texts I've sent from my iPhone have been showing up as <myemailadd>@mac.com instead of my phone number. It started doing that under iOS7. I don't want my email address sent with my phone-originated texts. I don't

  • SQL Developer paste problem for large text in Linux

    Hello, I have a problem. I cannot paste large text (> 5000 lines) into the editor of a clob column. Pasting in general works. I mean I can paste the whole content e.g. to gedit or I can paste partially the text into the sql developer editor but not a