|
From: Christoph F. <cf...@fo...> - 2004-10-17 09:06:49
|
Hi Rinalldo, I've never developed an applet so I'm just guessing, but I think that you are on the right track. TMNav creates on startup a JFrame that is used as its base container. I just had a look at the code and I think it shouldn't be too difficult to make TMnav use a given java.awt.Container to use at its base container. If it turns out to be fruitful, I would do a refactoring, to enable the use of TMNav as an applet. Nevertheless, some questions come to my mind: When developing an applet, are you creating the basic container by your own, or is it provided by the enviroment (browser, appletviewer)? What is about Menubars in applets. Are they supported? TMnav sometimes opens new frames for some features. (TologQuery, several dialogs). How do you deal with the concepts of opening dialogs in applets. I think you are not allowed to open a window from an applet, or are you? Hmm. I'm not really decided, whether it is possible to refactor TMNav without extravagant expenses. What do you think? bye c PS: If your sole target is to get xtm displayed as a graph in an applet, you may have a look a Jens Kaschniks Hypergraph-Project (for kings & queens: http://hypergraph.sourceforge.net/examples_tm_kaq.html) Am So, den 17.10.2004 schrieb Rinalldo Yasahardja um 9:20: > Hi, I am planning to make tmnav running on applet so I can share work on > the server, that is, so my teammates can directly look at xtm files on the > server using tmnav. The catch is, now tmnav runs on separate window. So > when I viewed the applet using apppletviewer, the applet window said > "Applet loaded" but tmnav is on its own window (which makes sense since it > was a stand alone application anyway). Hence there are 2 windows opened. > > However, when i tested it with html page, the applet did not show anything > on the webpage. Is it possible because of the fact that tmnav runs on its > own window and NOT on the applet window ? > > anyone know how to fix this ? > > thanks heaps in advance > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Tm4j-tmnav-dev mailing list > Tm4...@li... > https://lists.sourceforge.net/lists/listinfo/tm4j-tmnav-dev -- Christoph Froehlich <cf...@fo...> |