Solved

Background Applet?

Posted on 2007-11-28
4
767 Views
Last Modified: 2011-10-03
Is it possible to run one applet on top of another on a page?  I have two applets:

1.  A grid applet that interacts with a database
2.  A listener applet that runs a timer, which resets on mouse movement (thanks to the folks that helped me here with that yeterday).

I would like the listener to run in the background of the page, and the grid applet to be on top of it...  basically, I want the timer to reset whenever the mouse moves on the page, not just when it's over the listener applet.  Is this possible?

Unfortunately, I can't modify the grid applet in any way as it's not our code.  Any suggestions?
0
Comment
Question by:gameness
  • 2
4 Comments
 
LVL 92

Expert Comment

by:objects
ID: 20370155
you can do that just add your second applet to the page with width and height of 1x1
0
 
LVL 92

Expert Comment

by:objects
ID: 20370161
actually I take that back, problem you have is with the mouse listener.
you cannot achive that easily, what you would need to do is write an applet that could run another applet inside it. Not a simple exercise.
0
 

Author Comment

by:gameness
ID: 20370173
objects,

LOL I was afraid of an answer like that.  I'm starting to think this is a lost cause.  I'm not sure what else I can do to accomplish it.
0
 
LVL 17

Accepted Solution

by:
contactkarthi earned 500 total points
ID: 20370297
have a look at the tutorial here where you can run an applet inside the other..

http://www.developer.com/net/vb/article.php/626261

0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

820 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