JOGL in an applet

I’m sorry for that, really, I did it because you did not take into account of it the first time, it was neither an order, nor a lack of respect. I have nothing against you. As Mickelukas said, I try to keep JOGL alive. Since Sven moved all stuffs on jogamp.org, a lot of people still use outdated versions which lead to various problems. JOGL 1.1.1a is no more maintained, we only maintain JOGL 2.0 (the official JogAmp version, not Sun’s one). When they come here, on jogamp.org or elsewhere (stackoverflow, javafr.com, etc…), sometimes we “waste” a noticeable amount of time only because they use a “bad” version and this is rarely the first thing they say. We try to help as much people as possible, I have never wanted to offense anyone, I apologive to you for using a big font size, it was an inappropriate reaction.

Sven, DzzD (the french guy who created 3DzzD engine) and of course Lilian Chamontin (the main contributor of the JOGL applet launcher, see “Zoltar’s return”) are the best people to help you on JOGL and applets. If you switch to IzPack, Mr Ponge will be more helpful. If you plan to use Java Web Start, I can provide you a JNLP file and help you to modify your source code to make it work.

[quote="Bobza,post:18,topic:36562"] you look better in writing lybian restaurant tour mdr [/quote] The word "lybian" does not exist ("Libyan" does). The article you're talking about has been published in both languages, its title is: [quote]Les cèdres du Liban : restaurant libanais à Paris [Cedars of Lebanon: Lebanese restaurant in Paris] [/quote] http://gouessej.wordpress.com/2011/04/10/les-cedres-du-liban-restaurant-libanais-a-paris-cedars-of-lebanon-lebanese-restaurant-in-paris/ Libyan != Lebanese

It’s ok now, with jogl 2.0 b23 it’s running fine, both jnlp and applet (with fireforx)
I had hard times particulary cause I thought I had to use a local newt-all-awt.jnlp, but actually, only jar in the resources tag are needed to be at the same location that the jnlp file ; for an extension, an online version is all right.

I also had troubles getting the good things, libraries, source codes and so on the jogamp web site ; it’s a bit messy (or am’i getting old ? mdr) … that’s one of the reason why I was still using jogl 1.1, cause I felt a bit lost :stuck_out_tongue:

Nevertheless, it’s working !!! Thanks all ! I learnt a lot of things (still have a lot to improve ; ant or maven using for example mdr)

When you plan to switch to JOGL 2, take the most recent release candidate or the most recent dev build. I still use JOGL 1.1.1a on my hobby project but I know I will have to switch. Sorry, the webpage is still a bit confusing.

You can find an example of use of ANT to create JARs, sign them, generate a JNLP file, etc… in my repository. You can use scp or something like that if you want to automatize the copy of the local JNLP file from your machine to your FTP server. Some JOGL users on JogAmp have tried to use Maven.

I did checkout your projet ; it sure will be helpfull. Your ant file is so complexe ! ;D

I still have a few askings ; I did a few search on the net, but wasn’t able to find something

  • my application opens a modal dialog (JDialog) ; when it closes, the parent “frame” and glcanvas lose the focus ; I have to manually give it back (by clicking).
  • events (mouse wheel down and up) are caught by my applet (it’s all right with this) but also by the browser that scrolls the page up and down for example that is very annoying. I tried the “consume” method but it doesn’t work.

Hi!

Things have to be complicated before becoming simple ;D My ANT file is complicated but it is commented and very helpful. I’m lazzy, I only have to enter my password and it compiles everything, it generates the JARs and the JNLP files, it does almost all the deployment.

You can programmatically manipulate the focus, can’t you?

I don’t reproduce the last bug you’re talking about. Are you sure you now use the latest build of JOGL 2?

@gouessej
Sorry to butt in on this thread, but I’m trying to learn how to use ANT, so where is your repository? :smiley:

It’s ok ; requestFocus and consume methods are working fine … I was just using the wrong jar file … ::slight_smile:

For other people information

  • when using a JDialog in an applet, you should give the parent frame the focus back with requestFocus when closing the dialog.
  • when dealing with MouseWheelEvents, you should consume the event after it processing so that the browser doesnt get it and scroll the page up and down. This working may be different depending on the browser I guess…

Hi!

I’m glad to know it works for you ;D

The repository is there:
http://tuer.svn.sourceforge.net/
You can learn how to use all these files there:
http://tuer.sourceforge.net/download.php

Thanks! :smiley: