Click to See Complete Forum and Search --> : MouseInfo on a jsp webpage...


bryce4president
11-13-2007, 11:41 AM
I have a JSP in which I have a table. The user can click on the first element of the table and its onclick even launches a popup window with information about the thing they clicked on. What I want to do is have the popup window open up in relation to the click.

When they click the cell, I want the top left corner of the popup window to be positioned where they clicked. To do this I was looking into the java.awt.MouseInfo stuff. But it seems I need to create a container for this? Does that mean that the entire webpage would have to be inside a container in order to use this?

The page is intermixed java and html. I'm just looking for some direction on this. Can I just used the page itself as a container without having to explicitly create the page inside of a container? I'm completely new to this type of implementation in java so any help will be appreciated...

Thanks in advance...

Khalid Ali
11-13-2007, 11:57 PM
unless u have specific reasons to use Java in your web page(applet) you can use JavaScript instead.
Post a question in JavaScript section if you do think thats what u are trying to do

bryce4president
11-14-2007, 08:06 AM
Hey Khalid,
Thanks for the reply. That's the idea I had yesterday after looking into swing and awt a little more. I got it working with javascript.

Bryce