You can subscribe to this list here.
| 2003 |
Jan
|
Feb
(8) |
Mar
(12) |
Apr
(11) |
May
(12) |
Jun
(6) |
Jul
(6) |
Aug
(6) |
Sep
(7) |
Oct
(1) |
Nov
|
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(17) |
Nov
(2) |
Dec
|
| 2005 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <tm...@co...> - 2006-08-14 01:57:23
|
<div @]ign="left"><b><font size="5"> Want the degree but can’t find the time?</font></b><BR> <BR> WHAT @ GREAT IDE@!<BR> We provide a concept that wi1l allow @nyone with suffic1ent w0rk exper1ence to obtain a fu]ly verifiab1e Univers1ty Degree.<BR> B@chel0rs, Master$ 0r even a Doctorate.<BR> Think of it, within f0ur to $ix week$, you to0 could be a c0l]ege gr@duate.<BR> Many pe0ple share the same frustration, they are all d0ing the w0rk of the person th@t has the degree and the person that has the degree is gett1ng alI the m0ney.<BR> Don’t you think that it is time you were p@id fa1r compensation for the level 0f work you are a1re@dy d0ing?<BR> This is y0ur ch@nce t0 finally make the right move @nd receive y0ur due benefits.<BR> If you are like mo$t people, you are more than qual1fied with your experience, but are lacking that prestigious piece of p@per known as a d1ploma that i$ often the passport to succes$.<BR> <b>CALL US TOD@Y AND G|VE YOUR WORK<BR> EXPER|ENCE THE CHANCE TO EARN Y0U<BR> THE HIGHER C0MPENSATION YOU DESERVE!</b><BR> <font co1or="#FF0O33" size="5">CALL NOW:</f0nt><font color="#FF0033" size="7"><BR> <b>1-815-828-2222</b></font><BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> odd to be intro-duced to s0meb0dy hed thought hed known for a year.</div> |
|
From: <tm4...@li...> - 2006-08-02 19:03:38
|
<h1 align="center">University Degree</h1> <div align="center"><br> OBTAIN A PROSPEROUS FUTURE, MONEY-EARNING POWER,<BR>AND THE PRESTIGE THAT COMES WITH HAVING THE CAREER POSITION YOU'VE<BR>ALWAYS DREAMED OF. DIPLOMA FROM<BR>PRESTIGIOUS NON-ACCREDITED<BR>UNVERSITIES BASED ON YOUR PRESENT KNOWLEDGE AND PROFESSIONAL EXPERIENCE.<br> <i><font size="4"><b><font size="5">If you qualify, no required tests, classes, books or examinations.</font></b></font></i> <font size="5"><b><br> </b></font><br> <b><font size="5">Confidentiality Assured<br> </font></b><br> <font color="#FF0033" size="+2"><b>1-815-828-2222</b></font><br> 24 hours a day, 7 days a week including Sundays and Holidays<br> </div><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR> and filled it with water at the sink, still watched |
|
From: Christoph F. <cf...@fo...> - 2005-02-08 10:57:21
|
Hi Don Am Sonntag, den 06.02.2005, 17:47 -0800 schrieb don undeen: > Hello, I'm new to this list, and TMNav in general. > I read the exchange between Christoph Froehlich and > Rinalldo Yasahardja with great interest, as I'm also > trying to put together an Topic-Map viewer applet, and > ultimately a Firefox Extension of same. Ideally I'd > like to have the graph viewer applet in a separate > frame, loading XTM data off the web page. > > Anyways, I was wondering if any progress had been made > I haven't heard anything for a long time from Rinalldo, but I think to remember, that he was successful in the end. nevertheless I haven't seen his results up to now What you are planning sounds really promising. Especially the Firefox-Extension would be fantastic. If you have more concrete questions, please don't hesitate to ask. Christoph > since the aformentioned exchange, and if there was any > additional code available for me to look at. > > Not too many questions now, until I spend more time > with the code, but any resources that anyone wants to > send my way would be greatly appreciated. > > I look forward to greater involvement with this > project in the future. Thank you for your time. > > Cheers, > Don Undeen > don...@ya... > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - 250MB free storage. Do more. Manage less. > http://info.mail.yahoo.com/mail_250 > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Tm4j-tmnav-dev mailing list > Tm4...@li... > https://lists.sourceforge.net/lists/listinfo/tm4j-tmnav-dev -- Christoph Froehlich <cf...@fo...> |
|
From: don u. <don...@ya...> - 2005-02-07 01:47:17
|
Hello, I'm new to this list, and TMNav in general. I read the exchange between Christoph Froehlich and Rinalldo Yasahardja with great interest, as I'm also trying to put together an Topic-Map viewer applet, and ultimately a Firefox Extension of same. Ideally I'd like to have the graph viewer applet in a separate frame, loading XTM data off the web page. Anyways, I was wondering if any progress had been made since the aformentioned exchange, and if there was any additional code available for me to look at. Not too many questions now, until I spend more time with the code, but any resources that anyone wants to send my way would be greatly appreciated. I look forward to greater involvement with this project in the future. Thank you for your time. Cheers, Don Undeen don...@ya... __________________________________ Do you Yahoo!? Yahoo! Mail - 250MB free storage. Do more. Manage less. http://info.mail.yahoo.com/mail_250 |
|
From: Christoph F. <cf...@fo...> - 2004-11-06 06:53:07
|
HI Rinaldo Am Freitag, den 05.11.2004, 16:19 +1100 schrieb Rinalldo Yasahardja: > Hi all, > > does anyone know how i can get a reference to the topic map inside tmnav ? > or to get a copy of it ? I need to iterate through it to check whether a > particular topic is already contained inside the currently opened topic > map ? > Hm. There is no *official* way to access any TopicMapObject from inside of tmnav. TMnav operates on an AbstractModel provided by panckoucke. TMNav does not know anything about "TopicMapObjects". This was a design decission and I still think its ok, if you use TMNav as a Navigator, but since people start to implement editing features in tmnav, this turns out to be a rather severe issue. Maybe I should reconsider. Nevertheless, it is possible to access the topicmap. It is a sort of a hack and please keep in mind, that it is not part of the api and may be broken in future versions, especially in next versions of panckoucke. I paste you example code below. You need to create an instance of AccessTopicmapHack(NavContext) somewhere in your tmnav-initialisation code. Hope it helps bye c -------------------------------------------------------------------------- /** * LICENSE * ------------ * This file is distributed under the provisions of the TM4J license. See * http://tm4j.org/LICENSE.TXT for the details of this license. */ package org.tm4j.tmnav.app; import org.tm4j.panckoucke.impl.store.TopicMapReferenceImpl; import org.tm4j.panckoucke.notification.StateChangedNotification; import org.tm4j.panckoucke.store.TopicMapReference; import org.tm4j.tmnav.app.event.Event; import org.tm4j.tmnav.app.event.EventDispatcher; import org.tm4j.tmnav.app.event.EventListener; import org.tm4j.tmnav.app.event.EventType; import org.tm4j.tmnav.env.NavContext; import org.tm4j.topicmap.TopicMap; /** * Hack to access a topicmap from inside of tmnav * * @author cf */ public class AccessTopicmapHack implements EventListener { /** * */ public AccessTopicmapHack(NavContext ctx) { // registering for events EventDispatcher d = ctx.getEventDispatcher(); d.addListener(this, EventType.EV_TM_STATE_CHANGED); } /** * Access Topicmap */ public void tmnavEventFired(Event e) { if (e.getEventType() == EventType.EV_TM_STATE_CHANGED) { StateChangedNotification scn = (StateChangedNotification) e.getRelatedObject(); TopicMapReference tmr = scn.getTopicmapRef(); if(tmr instanceof TopicMapReferenceImpl){ TopicMap tm = ((TopicMapReferenceImpl)tmr).getTopicmap(); } } } } --------------------------------------------------------------------- > thanks in advance > > On Thu, 28 Oct 2004, Christoph Froehlich wrote: > > > Am Donnerstag, den 28.10.2004, 12:36 +1000 schrieb Rinalldo Yasahardja: > >> On Wed, 27 Oct 2004, Christoph Froehlich wrote: > >> > >>> Hi Rinalldo > >>> > >>> I'm pretty sure that the reason for this is the potential asynchronious > >>> behavior of the Preferences implementation. > >>> > >>> I guess you are still running TMNav-Applet with the -f option? And > >>> removed the call to System.exit(int); > >>> > >>> If so, please try to add a call to sync in TMNav.clearSessionData(): > >>> After that the try - block should look roughly like this: > >>> try { > >>> String path = tmnavRootNode.absolutePath(); > >>> tmnavRootNode.removeNode(); > >>> tmnavRootNode.sync(); // new call to sync > >>> System.out.println("Removed Session Data from path " + > >>> ... > >> > >> using this method causes TMNav to crash even on the first attempt to run > >> it (the message is still the same) > >> > >> > >>> > >>> If this does not help, try to add the sync call also to > >>> TMNav.closeInstance(int), just after the line: > >>> session.storeSession(); > >>> > >>> (For the latter case you need to access tmnavRootNode just as in > >>> clearSessionData().) > >>> > >> > >> > >> using this method still causes TMNav fail to load the second time. > >> > >> > >>> Hope that helps > >>> c > >>> > >> > >> any ideas ? > > > > ui. ui. > > not really. > > > > What happens, > > - if you're running the applet without the -f option? > > - if you're removing the line "session.storeSession();" from > > TMNav.closeInstance()? > > > > > > c > > > >> > >> > >> ------------------------------------------------------- > >> This SF.Net email is sponsored by: > >> Sybase ASE Linux Express Edition - download now for FREE > >> LinuxWorld Reader's Choice Award Winner for best database on Linux. > >> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > >> _______________________________________________ > >> Tm4j-tmnav-dev mailing list > >> Tm4...@li... > >> https://lists.sourceforge.net/lists/listinfo/tm4j-tmnav-dev > > -- > > Christoph Froehlich <cf...@fo...> > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > _______________________________________________ > Tm4j-tmnav-dev mailing list > Tm4...@li... > https://lists.sourceforge.net/lists/listinfo/tm4j-tmnav-dev -- Christoph Froehlich <cf...@fo...> |
|
From: Rinalldo Y. <ry...@cs...> - 2004-11-05 05:20:04
|
Hi all,
does anyone know how i can get a reference to the topic map inside tmnav ?
or to get a copy of it ? I need to iterate through it to check whether a
particular topic is already contained inside the currently opened topic
map ?
thanks in advance
On Thu, 28 Oct 2004, Christoph Froehlich wrote:
> Am Donnerstag, den 28.10.2004, 12:36 +1000 schrieb Rinalldo Yasahardja:
>> On Wed, 27 Oct 2004, Christoph Froehlich wrote:
>>
>>> Hi Rinalldo
>>>
>>> I'm pretty sure that the reason for this is the potential asynchronious
>>> behavior of the Preferences implementation.
>>>
>>> I guess you are still running TMNav-Applet with the -f option? And
>>> removed the call to System.exit(int);
>>>
>>> If so, please try to add a call to sync in TMNav.clearSessionData():
>>> After that the try - block should look roughly like this:
>>> try {
>>> String path = tmnavRootNode.absolutePath();
>>> tmnavRootNode.removeNode();
>>> tmnavRootNode.sync(); // new call to sync
>>> System.out.println("Removed Session Data from path " +
>>> ...
>>
>> using this method causes TMNav to crash even on the first attempt to run
>> it (the message is still the same)
>>
>>
>>>
>>> If this does not help, try to add the sync call also to
>>> TMNav.closeInstance(int), just after the line:
>>> session.storeSession();
>>>
>>> (For the latter case you need to access tmnavRootNode just as in
>>> clearSessionData().)
>>>
>>
>>
>> using this method still causes TMNav fail to load the second time.
>>
>>
>>> Hope that helps
>>> c
>>>
>>
>> any ideas ?
>
> ui. ui.
> not really.
>
> What happens,
> - if you're running the applet without the -f option?
> - if you're removing the line "session.storeSession();" from
> TMNav.closeInstance()?
>
>
> c
>
>>
>>
>> -------------------------------------------------------
>> This SF.Net email is sponsored by:
>> Sybase ASE Linux Express Edition - download now for FREE
>> LinuxWorld Reader's Choice Award Winner for best database on Linux.
>> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
>> _______________________________________________
>> Tm4j-tmnav-dev mailing list
>> Tm4...@li...
>> https://lists.sourceforge.net/lists/listinfo/tm4j-tmnav-dev
> --
> Christoph Froehlich <cf...@fo...>
>
|
|
From: Christoph F. <cf...@fo...> - 2004-10-28 08:36:23
|
Am Donnerstag, den 28.10.2004, 12:36 +1000 schrieb Rinalldo Yasahardja:
> On Wed, 27 Oct 2004, Christoph Froehlich wrote:
>
> > Hi Rinalldo
> >
> > I'm pretty sure that the reason for this is the potential asynchronious
> > behavior of the Preferences implementation.
> >
> > I guess you are still running TMNav-Applet with the -f option? And
> > removed the call to System.exit(int);
> >
> > If so, please try to add a call to sync in TMNav.clearSessionData():
> > After that the try - block should look roughly like this:
> > try {
> > String path = tmnavRootNode.absolutePath();
> > tmnavRootNode.removeNode();
> > tmnavRootNode.sync(); // new call to sync
> > System.out.println("Removed Session Data from path " +
> > ...
>
> using this method causes TMNav to crash even on the first attempt to run
> it (the message is still the same)
>
>
> >
> > If this does not help, try to add the sync call also to
> > TMNav.closeInstance(int), just after the line:
> > session.storeSession();
> >
> > (For the latter case you need to access tmnavRootNode just as in
> > clearSessionData().)
> >
>
>
> using this method still causes TMNav fail to load the second time.
>
>
> > Hope that helps
> > c
> >
>
> any ideas ?
ui. ui.
not really.
What happens,
- if you're running the applet without the -f option?
- if you're removing the line "session.storeSession();" from
TMNav.closeInstance()?
c
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Sybase ASE Linux Express Edition - download now for FREE
> LinuxWorld Reader's Choice Award Winner for best database on Linux.
> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
> _______________________________________________
> Tm4j-tmnav-dev mailing list
> Tm4...@li...
> https://lists.sourceforge.net/lists/listinfo/tm4j-tmnav-dev
--
Christoph Froehlich <cf...@fo...>
|
|
From: Rinalldo Y. <ry...@cs...> - 2004-10-28 02:36:41
|
On Wed, 27 Oct 2004, Christoph Froehlich wrote:
> Hi Rinalldo
>
> I'm pretty sure that the reason for this is the potential asynchronious
> behavior of the Preferences implementation.
>
> I guess you are still running TMNav-Applet with the -f option? And
> removed the call to System.exit(int);
>
> If so, please try to add a call to sync in TMNav.clearSessionData():
> After that the try - block should look roughly like this:
> try {
> String path = tmnavRootNode.absolutePath();
> tmnavRootNode.removeNode();
> tmnavRootNode.sync(); // new call to sync
> System.out.println("Removed Session Data from path " +
> ...
using this method causes TMNav to crash even on the first attempt to run
it (the message is still the same)
>
> If this does not help, try to add the sync call also to
> TMNav.closeInstance(int), just after the line:
> session.storeSession();
>
> (For the latter case you need to access tmnavRootNode just as in
> clearSessionData().)
>
using this method still causes TMNav fail to load the second time.
> Hope that helps
> c
>
any ideas ?
|
|
From: Christoph F. <cf...@fo...> - 2004-10-27 11:59:58
|
Hi Rinalldo
I'm pretty sure that the reason for this is the potential asynchronious
behavior of the Preferences implementation.
I guess you are still running TMNav-Applet with the -f option? And
removed the call to System.exit(int);
If so, please try to add a call to sync in TMNav.clearSessionData():
After that the try - block should look roughly like this:
try {
String path = tmnavRootNode.absolutePath();
tmnavRootNode.removeNode();
tmnavRootNode.sync(); // new call to sync
System.out.println("Removed Session Data from path " +
...
If this does not help, try to add the sync call also to
TMNav.closeInstance(int), just after the line:
session.storeSession();
(For the latter case you need to access tmnavRootNode just as in
clearSessionData().)
Hope that helps
c
Am Mittwoch, den 27.10.2004, 18:38 +1000 schrieb Rinalldo Yasahardja:
> The following is the exception TMNav threw when it is ran the second time
> from applet (remember I told you that TMNav ran successfully once, but the
> second time it was run, it crashed).
>
> You might wonder about the TMNavApplet.java
>
> This is the applet for TMNav and inside the init() function is what was
> originally inside of the main function in TMNav.java
>
> although there are slight changes, the changes are irrelevant...
>
> If you knew what was going on, that would help me greatly
>
> thanks
>
>
> java.lang.IllegalStateException: Node has been removed.
>
> at java.util.prefs.AbstractPreferences.get(Unknown Source)
>
> at java.util.prefs.AbstractPreferences.getInt(Unknown Source)
>
> at
> org.tm4j.tmnav.app.ui.util.PersistentJFrame.restore(PersistentJFrame.java:55
> )
>
> at
> org.tm4j.tmnav.app.TMNavMainFrame.resetSize(TMNavMainFrame.java:244)
>
> at org.tm4j.tmnav.app.TMNav.show(TMNav.java:203)
>
> at org.tm4j.tmnav.app.TMNavApplet.init(TMNavApplet.java:118)
>
> at sun.applet.AppletPanel.run(Unknown Source)
>
> at java.lang.Thread.run(Unknown Source)
>
--
Christoph Froehlich <cf...@fo...>
|
|
From: Rinalldo Y. <ry...@cs...> - 2004-10-26 08:11:33
|
On Sun, 24 Oct 2004, Christoph Froehlich wrote: > Hi Rinalldo > > Am Sonntag, den 24.10.2004, 15:36 +1000 schrieb Rinalldo Yasahardja: >> Sorry, a bit lenghty mail here... >> > a short one from me, on technical things only, since I'm a bit in a > hurry. But thanks for your detailed descripton. > > >> On Sat, 23 Oct 2004, Christoph Froehlich wrote: >> >>> Hi Rinalldo >>> >>> Am Sonntag, den 24.10.2004, 00:44 +1000 schrieb Rinalldo Yasahardja: >>>> Hi, I sent msgs previously regarding extending tmnav so it works on >>>> applet. It is now working until i clicked on the close button from the >>>> window (the cross shaped button). The applet closes but also closes the >>>> browser (which is NOT intended). >>>> >>> Congratulations. I would be very interested to hear how you have done >>> it. And, maybe there is a chance to see it running in public? >>> >> >> for what I did, in summary: >> create an Applet class (called TMNavApplet in my case), then override >> the init() function. That class should extends Applet. Inside the init() >> function, you then do what you normally do in your main function, that is, >> in case of TMNav, just move the content of main function inside the init() >> function. As you know, TMNav can be run with several options such as -f >> (which perform factory startup), etc. You then create a html page similar >> like this: >> >> <html> >> <applet code="org/tm4j/tmnav/app/TMNavApplet.class" archive="all.jar" >> height=200 width=200 >> alt="if this run, u see tmnav"> >> <param name=option value="-f"> >> >> <!-- put the path to the server here (URL) >> example: http://www.cse.unsw.edu.au/~ryas138/index.xtm --> >> <param name=filename value="pattern_v1.xtm"> >> Your browser is completely ignoring the <APPLET> tag! >> </applet> >> </html> >> >> you then call the getParameter function inside your TMNavApplet class to >> access the value passed by parameter (in this case, >> getParameter("option") would return "-f") >> >> the filename is for testing so TMNav can grab the file from the server. >> you should also modify the logging.properties file path so that it is >> grabbed from the server (rather than the client, like the current TMNav >> behaviour), that way you remove all security issues that took me 2 weeks >> to solve... =) > Oh. Dont't you get exceptions from the applet? No, because the applet has been signed and apparently, the one that is causing the IE to crash when TMNav is closed is because TMNav called System.exit System.exit is not allowed to be called normally on applet but since the applet is signed, then calling it causes the IE browser to be closed So, do you have any suggestion to close TMNav rather than calling System.exit(int) ? > >> I would love to let you see it works on public but I would have to ask >> permission first. Currently, since this is only for internal use, I doubt >> connection outside the working environment will be allowed. But I can >> always send you the development so you can play around with your own >> server. But I didnt do the integration with the server bit, so I wont have >> a clue about it. Let me fix this issue first though... =) >> >>> As consequence to clicking the window closing button, TMNav calls >>> System.exit(int). Maybe this is an overkill when running as an applet> >> >> I did searches and found that Applet does not normally allow >> System.exit(int) to be called. But I am still confused about this and will >> look into it this week. Do you implement window closing button with your >> custom listener ? If you do, do you know in which file ? >> > > - System.exit(int) is called in TMNav.closeInstance(int). The > customListener for window clsing is implemented in the constructor of > TMNavMainFrame. > >>> >>> >>>> Since my teammates are supposed to access TMNav when connected to the >>>> server, closing the browser would then force them to re-open browser and >>>> log in back to the server manually. >>>> >>>> Also, when starting TMNav, if I got msg saying "Node Removed" then TMNav >>>> doesnt launch, anyone know what is going on ? >>>> >>> Is it exactly what TMNav says? I searched the source code, but can't >>> find that string, neither in tmnav nor in panckoucke. >>> >>> Maybe it's not comming from TMNav but from third-party code, called by >>> tmnav. One thing which comes to my mind is, that TMNav stores session >>> data with the help of java.util.prefs-package (this package uses the >>> notion of a node as well). I don't know how the implementations react, >>> when called from an applets context. >> >> could be but I doubt it though. In my case, there are times when I close >> TMNav applet but it doesnt crash the browser. However, when I tried to >> invoke the applet again, it says Node Removed (may be it caught an >> exception or something). However, I am a little bit suspicious with the >> clearSessionData() in TMNav.java . In my case, I force TMNav to >> always run >> using "-f" parameter, which calls clearSessionData(). However, something >> just prevent of running TMNav more than once. There is also a chance that >> when the window close button is closed, the applet might not free the >> resources used properly, but I dont know about it too... >> >> but my suspicion is in the line that says TMNavRootNode.removeNode() >> in clearSessionData() since >> the msg said Node Removed and TMNav failed to start. >> > If removeNode() did not fail, you should see a message beginning with > "Removed Session data..." > If it fails, you should see a stack trace. But you see neither, correct? > > Another question. Did you try to run TMNavApplet without the -f option? > > And: If you don't need the session to be stored, you can remove > session.storeSession() from TMNav.closeInstance(). Just to see what > happens. > > >> In other words, users can now log in to the server, then run TMNav once, >> and hope that when they close TMNav, it doesnt crash the browser... > This is much more than last week :) > > bye > c > >> >> >>> >>> Do you have more hints? >>> >>> c >>> >>>> 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...> >>> > -- > Christoph Froehlich <cf...@fo...> > |
|
From: Christoph F. <cf...@fo...> - 2004-10-24 07:53:14
|
Hi Rinalldo Am Sonntag, den 24.10.2004, 15:36 +1000 schrieb Rinalldo Yasahardja: > Sorry, a bit lenghty mail here... > a short one from me, on technical things only, since I'm a bit in a hurry. But thanks for your detailed descripton. > On Sat, 23 Oct 2004, Christoph Froehlich wrote: > > > Hi Rinalldo > > > > Am Sonntag, den 24.10.2004, 00:44 +1000 schrieb Rinalldo Yasahardja: > >> Hi, I sent msgs previously regarding extending tmnav so it works on > >> applet. It is now working until i clicked on the close button from the > >> window (the cross shaped button). The applet closes but also closes the > >> browser (which is NOT intended). > >> > > Congratulations. I would be very interested to hear how you have done > > it. And, maybe there is a chance to see it running in public? > > > > for what I did, in summary: > create an Applet class (called TMNavApplet in my case), then override > the init() function. That class should extends Applet. Inside the init() > function, you then do what you normally do in your main function, that is, > in case of TMNav, just move the content of main function inside the init() > function. As you know, TMNav can be run with several options such as -f > (which perform factory startup), etc. You then create a html page similar > like this: > > <html> > <applet code="org/tm4j/tmnav/app/TMNavApplet.class" archive="all.jar" > height=200 width=200 > alt="if this run, u see tmnav"> > <param name=option value="-f"> > > <!-- put the path to the server here (URL) > example: http://www.cse.unsw.edu.au/~ryas138/index.xtm --> > <param name=filename value="pattern_v1.xtm"> > Your browser is completely ignoring the <APPLET> tag! > </applet> > </html> > > you then call the getParameter function inside your TMNavApplet class to > access the value passed by parameter (in this case, > getParameter("option") would return "-f") > > the filename is for testing so TMNav can grab the file from the server. > you should also modify the logging.properties file path so that it is > grabbed from the server (rather than the client, like the current TMNav > behaviour), that way you remove all security issues that took me 2 weeks > to solve... =) Oh. Dont't you get exceptions from the applet? > I would love to let you see it works on public but I would have to ask > permission first. Currently, since this is only for internal use, I doubt > connection outside the working environment will be allowed. But I can > always send you the development so you can play around with your own > server. But I didnt do the integration with the server bit, so I wont have > a clue about it. Let me fix this issue first though... =) > > > As consequence to clicking the window closing button, TMNav calls > > System.exit(int). Maybe this is an overkill when running as an applet> > > I did searches and found that Applet does not normally allow > System.exit(int) to be called. But I am still confused about this and will > look into it this week. Do you implement window closing button with your > custom listener ? If you do, do you know in which file ? > - System.exit(int) is called in TMNav.closeInstance(int). The customListener for window clsing is implemented in the constructor of TMNavMainFrame. > > > > > >> Since my teammates are supposed to access TMNav when connected to the > >> server, closing the browser would then force them to re-open browser and > >> log in back to the server manually. > >> > >> Also, when starting TMNav, if I got msg saying "Node Removed" then TMNav > >> doesnt launch, anyone know what is going on ? > >> > > Is it exactly what TMNav says? I searched the source code, but can't > > find that string, neither in tmnav nor in panckoucke. > > > > Maybe it's not comming from TMNav but from third-party code, called by > > tmnav. One thing which comes to my mind is, that TMNav stores session > > data with the help of java.util.prefs-package (this package uses the > > notion of a node as well). I don't know how the implementations react, > > when called from an applets context. > > could be but I doubt it though. In my case, there are times when I close > TMNav applet but it doesnt crash the browser. However, when I tried to > invoke the applet again, it says Node Removed (may be it caught an > exception or something). However, I am a little bit suspicious with the > clearSessionData() in TMNav.java . In my case, I force TMNav to > always run > using "-f" parameter, which calls clearSessionData(). However, something > just prevent of running TMNav more than once. There is also a chance that > when the window close button is closed, the applet might not free the > resources used properly, but I dont know about it too... > > but my suspicion is in the line that says TMNavRootNode.removeNode() > in clearSessionData() since > the msg said Node Removed and TMNav failed to start. > If removeNode() did not fail, you should see a message beginning with "Removed Session data..." If it fails, you should see a stack trace. But you see neither, correct? Another question. Did you try to run TMNavApplet without the -f option? And: If you don't need the session to be stored, you can remove session.storeSession() from TMNav.closeInstance(). Just to see what happens. > In other words, users can now log in to the server, then run TMNav once, > and hope that when they close TMNav, it doesnt crash the browser... This is much more than last week :) bye c > > > > > > Do you have more hints? > > > > c > > > >> 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...> > > -- Christoph Froehlich <cf...@fo...> |
|
From: Rinalldo Y. <ry...@cs...> - 2004-10-24 05:36:17
|
Sorry, a bit lenghty mail here...
On Sat, 23 Oct 2004, Christoph Froehlich wrote:
> Hi Rinalldo
>
> Am Sonntag, den 24.10.2004, 00:44 +1000 schrieb Rinalldo Yasahardja:
>> Hi, I sent msgs previously regarding extending tmnav so it works on
>> applet. It is now working until i clicked on the close button from the
>> window (the cross shaped button). The applet closes but also closes the
>> browser (which is NOT intended).
>>
> Congratulations. I would be very interested to hear how you have done
> it. And, maybe there is a chance to see it running in public?
>
for what I did, in summary:
create an Applet class (called TMNavApplet in my case), then override
the init() function. That class should extends Applet. Inside the init()
function, you then do what you normally do in your main function, that is,
in case of TMNav, just move the content of main function inside the init()
function. As you know, TMNav can be run with several options such as -f
(which perform factory startup), etc. You then create a html page similar
like this:
<html>
<applet code="org/tm4j/tmnav/app/TMNavApplet.class" archive="all.jar"
height=200 width=200
alt="if this run, u see tmnav">
<param name=option value="-f">
<!-- put the path to the server here (URL)
example: http://www.cse.unsw.edu.au/~ryas138/index.xtm -->
<param name=filename value="pattern_v1.xtm">
Your browser is completely ignoring the <APPLET> tag!
</applet>
</html>
you then call the getParameter function inside your TMNavApplet class to
access the value passed by parameter (in this case,
getParameter("option") would return "-f")
the filename is for testing so TMNav can grab the file from the server.
you should also modify the logging.properties file path so that it is
grabbed from the server (rather than the client, like the current TMNav
behaviour), that way you remove all security issues that took me 2 weeks
to solve... =)
I would love to let you see it works on public but I would have to ask
permission first. Currently, since this is only for internal use, I doubt
connection outside the working environment will be allowed. But I can
always send you the development so you can play around with your own
server. But I didnt do the integration with the server bit, so I wont have
a clue about it. Let me fix this issue first though... =)
> As consequence to clicking the window closing button, TMNav calls
> System.exit(int). Maybe this is an overkill when running as an applet>
I did searches and found that Applet does not normally allow
System.exit(int) to be called. But I am still confused about this and will
look into it this week. Do you implement window closing button with your
custom listener ? If you do, do you know in which file ?
>
>
>> Since my teammates are supposed to access TMNav when connected to the
>> server, closing the browser would then force them to re-open browser and
>> log in back to the server manually.
>>
>> Also, when starting TMNav, if I got msg saying "Node Removed" then TMNav
>> doesnt launch, anyone know what is going on ?
>>
> Is it exactly what TMNav says? I searched the source code, but can't
> find that string, neither in tmnav nor in panckoucke.
>
> Maybe it's not comming from TMNav but from third-party code, called by
> tmnav. One thing which comes to my mind is, that TMNav stores session
> data with the help of java.util.prefs-package (this package uses the
> notion of a node as well). I don't know how the implementations react,
> when called from an applets context.
could be but I doubt it though. In my case, there are times when I close
TMNav applet but it doesnt crash the browser. However, when I tried to
invoke the applet again, it says Node Removed (may be it caught an
exception or something). However, I am a little bit suspicious with the
clearSessionData() in TMNav.java . In my case, I force TMNav to
always run
using "-f" parameter, which calls clearSessionData(). However, something
just prevent of running TMNav more than once. There is also a chance that
when the window close button is closed, the applet might not free the
resources used properly, but I dont know about it too...
but my suspicion is in the line that says TMNavRootNode.removeNode()
in clearSessionData() since
the msg said Node Removed and TMNav failed to start.
In other words, users can now log in to the server, then run TMNav once,
and hope that when they close TMNav, it doesnt crash the browser...
>
> Do you have more hints?
>
> c
>
>> 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...>
>
|
|
From: Christoph F. <cf...@fo...> - 2004-10-23 19:27:31
|
Hi Rinalldo Am Sonntag, den 24.10.2004, 00:44 +1000 schrieb Rinalldo Yasahardja: > Hi, I sent msgs previously regarding extending tmnav so it works on > applet. It is now working until i clicked on the close button from the > window (the cross shaped button). The applet closes but also closes the > browser (which is NOT intended). > Congratulations. I would be very interested to hear how you have done it. And, maybe there is a chance to see it running in public? As consequence to clicking the window closing button, TMNav calls System.exit(int). Maybe this is an overkill when running as an applet? > Since my teammates are supposed to access TMNav when connected to the > server, closing the browser would then force them to re-open browser and > log in back to the server manually. > > Also, when starting TMNav, if I got msg saying "Node Removed" then TMNav > doesnt launch, anyone know what is going on ? > Is it exactly what TMNav says? I searched the source code, but can't find that string, neither in tmnav nor in panckoucke. Maybe it's not comming from TMNav but from third-party code, called by tmnav. One thing which comes to my mind is, that TMNav stores session data with the help of java.util.prefs-package (this package uses the notion of a node as well). I don't know how the implementations react, when called from an applets context. Do you have more hints? c > 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...> |
|
From: Rinalldo Y. <ry...@cs...> - 2004-10-23 14:44:17
|
Hi, I sent msgs previously regarding extending tmnav so it works on applet. It is now working until i clicked on the close button from the window (the cross shaped button). The applet closes but also closes the browser (which is NOT intended). Since my teammates are supposed to access TMNav when connected to the server, closing the browser would then force them to re-open browser and log in back to the server manually. Also, when starting TMNav, if I got msg saying "Node Removed" then TMNav doesnt launch, anyone know what is going on ? thanks heaps in advance |
|
From: Christoph F. <cf...@fo...> - 2004-10-18 08:28:51
|
Hi Rinalldo,
sorry. but I have no idea. As written before, I have absolutely no
experience with applets and all I can tell you is to start googling for
applet and JFrame. I bet, you got that idea already by your own :(
Did you consider using Hypergraph (which is already an applet and is
capable to display xtm-files) or - as George did suggest - deploying
TMNav via Java Web Start.
If you will choose the latter I would be really interested in hearing
about your experiences.
Sorry
c
Am Mo, den 18.10.2004 schrieb Rinalldo Yasahardja um 10:14:
> Hi Christoph, thank you for your reply
>
> Unfortunately I have tried that method before (should have told you
> earlier, sorry). I am not saying it is not working, but it still shows
> TMNav on its own window (rather than inside the applet window), however,
> the applet loads succesfully.
>
> So the main question will be how to display a stand alone application
> window on html page (since html displays applet but since TMNav runs on it
> s own window, the TMNav window is not displayed)...
>
> thanks heaps in advance
>
> On Sun, 17 Oct 2004, Christoph Froehlich wrote:
>
> > Hi Rinalldo
> >
> > You also need to call show() in TMNav. (Its not good design that this
> > mathod does initilisation stuff :().
> > And you probably need to comment out line 170 of TMNav where
> > TMNavMainFrame.show() is called.
> >
> > After commented out, try this:
> >
> > TMNav app = TMNav.getInstance();
> > app.show();
> > TMNavMainFrame frame = app.getFrame();
> > frame.show();
> >
> > Hope that helps
> > c
> >
> > Am So, den 17.10.2004 schrieb Rinalldo Yasahardja um 12:09:
> >> Hi Christoph, thank you for your reply
> >>
> >> Its just returning the TMNavMainFrame which is inside the TMNav.
> >>
> >> a simple method...
> >>
> >> in TMNav.java:
> >>
> >> public TMNavMainFrame getFrame(){
> >> return frame;
> >> }
> >>
> >> thanks heaps in advance
> >>
> >> On Sun, 17 Oct 2004, Christoph Froehlich wrote:
> >>
> >>> Hi Rinalldo
> >>>
> >>> could you send me your implementation of TMnav.getFrame()?
> >>> Thanks
> >>> c
> >>>
> >>>
> >>> Am So, den 17.10.2004 schrieb Rinalldo Yasahardja um 11:40:
> >>>> Hi Christoph, thank you for your reply
> >>>>
> >>>> This is also the first time for me to convert a stand alone application
> >>>> into applet, so I am still working out the solution.
> >>>>
> >>>> In my previous experience in using applet, basically all you have to do is
> >>>> have a frame or anything that you want to display gets constructed
> >>>> properly in the applet class. Then make the applet class "show" that
> >>>> frame. Since tmNav has a frame called TMNavMainFrame in which every panels
> >>>> and menus are included (based on my understanding of the source code), I
> >>>> assume all I have to do is create a TMNavMainFrame class variable in the
> >>>> applet class and constructs it exactly like the TMNavMainFrame is
> >>>> constructed in the tmNav.
> >>>>
> >>>> I assumed that all I had to do was to set the TMNavMainFrame in TMNav not
> >>>> to show anything and show TMNavMainFrame which is inside the applet
> >>>> class instead, however I kept getting NullPointerException.
> >>>>
> >>>> Even after I put additional method in TMNav class called getFrame() which
> >>>> returns TMNavMainFrame inside TMNav class, it still wouldnt work. So I
> >>>> have the following:
> >>>>
> >>>> class myApplet extends Applet{
> >>>> TMNavMainFrame test = null;
> >>>> TMNav application = null; // must have this
> >>>>
> >>>> //init must be overridden
> >>>> void init(){
> >>>> //basically contains what is inside of the main function in TMNav
> >>>> //most important are:
> >>>> // application.getInstance().makeInstance();
> >>>>
> >>>> // application.getInstance().show();
> >>>> // if the show function is called, then TMNav runs on separate window
> >>>> // since i want the frame to be displayed in the applet, it was turned
> >>>> // off
> >>>>
> >>>> test = application.getInstance().getFrame();
> >>>> test.show();
> >>>> }
> >>>> }
> >>>>
> >>>> with this way, the getFrame() method is somehow returning null and hence I
> >>>> got the NullPointerException (it is supposed to return TMNavMainFrame
> >>>> inside TMNav) and since I called it after everything was constructed
> >>>> properly (that is, after the show() function is normally called in the
> >>>> main function), that I have no idea why it is returning null.
> >>>>
> >>>> any comments ?
> >>>>
> >>>> On Sun, 17 Oct 2004, Christoph Froehlich wrote:
> >>>>
> >>>>> 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...>
> >>>>>
> >>>>
> >>>>
> >>>> -------------------------------------------------------
> >>>> 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...>
> >>>
> >>
> >>
> >> -------------------------------------------------------
> >> 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...>
> >
>
>
> -------------------------------------------------------
> 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...>
|
|
From: Rinalldo Y. <ry...@cs...> - 2004-10-18 08:14:25
|
Hi Christoph, thank you for your reply
Unfortunately I have tried that method before (should have told you
earlier, sorry). I am not saying it is not working, but it still shows
TMNav on its own window (rather than inside the applet window), however,
the applet loads succesfully.
So the main question will be how to display a stand alone application
window on html page (since html displays applet but since TMNav runs on it
s own window, the TMNav window is not displayed)...
thanks heaps in advance
On Sun, 17 Oct 2004, Christoph Froehlich wrote:
> Hi Rinalldo
>
> You also need to call show() in TMNav. (Its not good design that this
> mathod does initilisation stuff :().
> And you probably need to comment out line 170 of TMNav where
> TMNavMainFrame.show() is called.
>
> After commented out, try this:
>
> TMNav app = TMNav.getInstance();
> app.show();
> TMNavMainFrame frame = app.getFrame();
> frame.show();
>
> Hope that helps
> c
>
> Am So, den 17.10.2004 schrieb Rinalldo Yasahardja um 12:09:
>> Hi Christoph, thank you for your reply
>>
>> Its just returning the TMNavMainFrame which is inside the TMNav.
>>
>> a simple method...
>>
>> in TMNav.java:
>>
>> public TMNavMainFrame getFrame(){
>> return frame;
>> }
>>
>> thanks heaps in advance
>>
>> On Sun, 17 Oct 2004, Christoph Froehlich wrote:
>>
>>> Hi Rinalldo
>>>
>>> could you send me your implementation of TMnav.getFrame()?
>>> Thanks
>>> c
>>>
>>>
>>> Am So, den 17.10.2004 schrieb Rinalldo Yasahardja um 11:40:
>>>> Hi Christoph, thank you for your reply
>>>>
>>>> This is also the first time for me to convert a stand alone application
>>>> into applet, so I am still working out the solution.
>>>>
>>>> In my previous experience in using applet, basically all you have to do is
>>>> have a frame or anything that you want to display gets constructed
>>>> properly in the applet class. Then make the applet class "show" that
>>>> frame. Since tmNav has a frame called TMNavMainFrame in which every panels
>>>> and menus are included (based on my understanding of the source code), I
>>>> assume all I have to do is create a TMNavMainFrame class variable in the
>>>> applet class and constructs it exactly like the TMNavMainFrame is
>>>> constructed in the tmNav.
>>>>
>>>> I assumed that all I had to do was to set the TMNavMainFrame in TMNav not
>>>> to show anything and show TMNavMainFrame which is inside the applet
>>>> class instead, however I kept getting NullPointerException.
>>>>
>>>> Even after I put additional method in TMNav class called getFrame() which
>>>> returns TMNavMainFrame inside TMNav class, it still wouldnt work. So I
>>>> have the following:
>>>>
>>>> class myApplet extends Applet{
>>>> TMNavMainFrame test = null;
>>>> TMNav application = null; // must have this
>>>>
>>>> //init must be overridden
>>>> void init(){
>>>> //basically contains what is inside of the main function in TMNav
>>>> //most important are:
>>>> // application.getInstance().makeInstance();
>>>>
>>>> // application.getInstance().show();
>>>> // if the show function is called, then TMNav runs on separate window
>>>> // since i want the frame to be displayed in the applet, it was turned
>>>> // off
>>>>
>>>> test = application.getInstance().getFrame();
>>>> test.show();
>>>> }
>>>> }
>>>>
>>>> with this way, the getFrame() method is somehow returning null and hence I
>>>> got the NullPointerException (it is supposed to return TMNavMainFrame
>>>> inside TMNav) and since I called it after everything was constructed
>>>> properly (that is, after the show() function is normally called in the
>>>> main function), that I have no idea why it is returning null.
>>>>
>>>> any comments ?
>>>>
>>>> On Sun, 17 Oct 2004, Christoph Froehlich wrote:
>>>>
>>>>> 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...>
>>>>>
>>>>
>>>>
>>>> -------------------------------------------------------
>>>> 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...>
>>>
>>
>>
>> -------------------------------------------------------
>> 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...>
>
|
|
From: George T. <geo...@fr...> - 2004-10-17 14:38:37
|
Hello Rinaldo, Did you consider the JNLP (Java Web Start) solution? Technicaly it is easier, and it is more suitable (I think) Of course it depends on what you want to do. Cheers George > 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 > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 5/10/2004 ____________________________________________________________________ http://www.freemail.gr - äùñåÜí õðçñåóßá çëåêôñïíéêïý ôá÷õäñïìåßïõ. http://www.freemail.gr - free email service for the Greek-speaking. |
|
From: Christoph F. <cf...@fo...> - 2004-10-17 13:10:54
|
Hi Rinalldo
You also need to call show() in TMNav. (Its not good design that this
mathod does initilisation stuff :().
And you probably need to comment out line 170 of TMNav where
TMNavMainFrame.show() is called.
After commented out, try this:
TMNav app = TMNav.getInstance();
app.show();
TMNavMainFrame frame = app.getFrame();
frame.show();
Hope that helps
c
Am So, den 17.10.2004 schrieb Rinalldo Yasahardja um 12:09:
> Hi Christoph, thank you for your reply
>
> Its just returning the TMNavMainFrame which is inside the TMNav.
>
> a simple method...
>
> in TMNav.java:
>
> public TMNavMainFrame getFrame(){
> return frame;
> }
>
> thanks heaps in advance
>
> On Sun, 17 Oct 2004, Christoph Froehlich wrote:
>
> > Hi Rinalldo
> >
> > could you send me your implementation of TMnav.getFrame()?
> > Thanks
> > c
> >
> >
> > Am So, den 17.10.2004 schrieb Rinalldo Yasahardja um 11:40:
> >> Hi Christoph, thank you for your reply
> >>
> >> This is also the first time for me to convert a stand alone application
> >> into applet, so I am still working out the solution.
> >>
> >> In my previous experience in using applet, basically all you have to do is
> >> have a frame or anything that you want to display gets constructed
> >> properly in the applet class. Then make the applet class "show" that
> >> frame. Since tmNav has a frame called TMNavMainFrame in which every panels
> >> and menus are included (based on my understanding of the source code), I
> >> assume all I have to do is create a TMNavMainFrame class variable in the
> >> applet class and constructs it exactly like the TMNavMainFrame is
> >> constructed in the tmNav.
> >>
> >> I assumed that all I had to do was to set the TMNavMainFrame in TMNav not
> >> to show anything and show TMNavMainFrame which is inside the applet
> >> class instead, however I kept getting NullPointerException.
> >>
> >> Even after I put additional method in TMNav class called getFrame() which
> >> returns TMNavMainFrame inside TMNav class, it still wouldnt work. So I
> >> have the following:
> >>
> >> class myApplet extends Applet{
> >> TMNavMainFrame test = null;
> >> TMNav application = null; // must have this
> >>
> >> //init must be overridden
> >> void init(){
> >> //basically contains what is inside of the main function in TMNav
> >> //most important are:
> >> // application.getInstance().makeInstance();
> >>
> >> // application.getInstance().show();
> >> // if the show function is called, then TMNav runs on separate window
> >> // since i want the frame to be displayed in the applet, it was turned
> >> // off
> >>
> >> test = application.getInstance().getFrame();
> >> test.show();
> >> }
> >> }
> >>
> >> with this way, the getFrame() method is somehow returning null and hence I
> >> got the NullPointerException (it is supposed to return TMNavMainFrame
> >> inside TMNav) and since I called it after everything was constructed
> >> properly (that is, after the show() function is normally called in the
> >> main function), that I have no idea why it is returning null.
> >>
> >> any comments ?
> >>
> >> On Sun, 17 Oct 2004, Christoph Froehlich wrote:
> >>
> >>> 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...>
> >>>
> >>
> >>
> >> -------------------------------------------------------
> >> 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...>
> >
>
>
> -------------------------------------------------------
> 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...>
|
|
From: Rinalldo Y. <ry...@cs...> - 2004-10-17 10:09:14
|
Hi Christoph, thank you for your reply
Its just returning the TMNavMainFrame which is inside the TMNav.
a simple method...
in TMNav.java:
public TMNavMainFrame getFrame(){
return frame;
}
thanks heaps in advance
On Sun, 17 Oct 2004, Christoph Froehlich wrote:
> Hi Rinalldo
>
> could you send me your implementation of TMnav.getFrame()?
> Thanks
> c
>
>
> Am So, den 17.10.2004 schrieb Rinalldo Yasahardja um 11:40:
>> Hi Christoph, thank you for your reply
>>
>> This is also the first time for me to convert a stand alone application
>> into applet, so I am still working out the solution.
>>
>> In my previous experience in using applet, basically all you have to do is
>> have a frame or anything that you want to display gets constructed
>> properly in the applet class. Then make the applet class "show" that
>> frame. Since tmNav has a frame called TMNavMainFrame in which every panels
>> and menus are included (based on my understanding of the source code), I
>> assume all I have to do is create a TMNavMainFrame class variable in the
>> applet class and constructs it exactly like the TMNavMainFrame is
>> constructed in the tmNav.
>>
>> I assumed that all I had to do was to set the TMNavMainFrame in TMNav not
>> to show anything and show TMNavMainFrame which is inside the applet
>> class instead, however I kept getting NullPointerException.
>>
>> Even after I put additional method in TMNav class called getFrame() which
>> returns TMNavMainFrame inside TMNav class, it still wouldnt work. So I
>> have the following:
>>
>> class myApplet extends Applet{
>> TMNavMainFrame test = null;
>> TMNav application = null; // must have this
>>
>> //init must be overridden
>> void init(){
>> //basically contains what is inside of the main function in TMNav
>> //most important are:
>> // application.getInstance().makeInstance();
>>
>> // application.getInstance().show();
>> // if the show function is called, then TMNav runs on separate window
>> // since i want the frame to be displayed in the applet, it was turned
>> // off
>>
>> test = application.getInstance().getFrame();
>> test.show();
>> }
>> }
>>
>> with this way, the getFrame() method is somehow returning null and hence I
>> got the NullPointerException (it is supposed to return TMNavMainFrame
>> inside TMNav) and since I called it after everything was constructed
>> properly (that is, after the show() function is normally called in the
>> main function), that I have no idea why it is returning null.
>>
>> any comments ?
>>
>> On Sun, 17 Oct 2004, Christoph Froehlich wrote:
>>
>>> 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...>
>>>
>>
>>
>> -------------------------------------------------------
>> 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...>
>
|
|
From: Christoph F. <cf...@fo...> - 2004-10-17 09:54:47
|
Hi Rinalldo
could you send me your implementation of TMnav.getFrame()?
Thanks
c
Am So, den 17.10.2004 schrieb Rinalldo Yasahardja um 11:40:
> Hi Christoph, thank you for your reply
>
> This is also the first time for me to convert a stand alone application
> into applet, so I am still working out the solution.
>
> In my previous experience in using applet, basically all you have to do is
> have a frame or anything that you want to display gets constructed
> properly in the applet class. Then make the applet class "show" that
> frame. Since tmNav has a frame called TMNavMainFrame in which every panels
> and menus are included (based on my understanding of the source code), I
> assume all I have to do is create a TMNavMainFrame class variable in the
> applet class and constructs it exactly like the TMNavMainFrame is
> constructed in the tmNav.
>
> I assumed that all I had to do was to set the TMNavMainFrame in TMNav not
> to show anything and show TMNavMainFrame which is inside the applet
> class instead, however I kept getting NullPointerException.
>
> Even after I put additional method in TMNav class called getFrame() which
> returns TMNavMainFrame inside TMNav class, it still wouldnt work. So I
> have the following:
>
> class myApplet extends Applet{
> TMNavMainFrame test = null;
> TMNav application = null; // must have this
>
> //init must be overridden
> void init(){
> //basically contains what is inside of the main function in TMNav
> //most important are:
> // application.getInstance().makeInstance();
>
> // application.getInstance().show();
> // if the show function is called, then TMNav runs on separate window
> // since i want the frame to be displayed in the applet, it was turned
> // off
>
> test = application.getInstance().getFrame();
> test.show();
> }
> }
>
> with this way, the getFrame() method is somehow returning null and hence I
> got the NullPointerException (it is supposed to return TMNavMainFrame
> inside TMNav) and since I called it after everything was constructed
> properly (that is, after the show() function is normally called in the
> main function), that I have no idea why it is returning null.
>
> any comments ?
>
> On Sun, 17 Oct 2004, Christoph Froehlich wrote:
>
> > 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...>
> >
>
>
> -------------------------------------------------------
> 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...>
|
|
From: Rinalldo Y. <ry...@cs...> - 2004-10-17 09:39:33
|
Hi Christoph, thank you for your reply
This is also the first time for me to convert a stand alone application
into applet, so I am still working out the solution.
In my previous experience in using applet, basically all you have to do is
have a frame or anything that you want to display gets constructed
properly in the applet class. Then make the applet class "show" that
frame. Since tmNav has a frame called TMNavMainFrame in which every panels
and menus are included (based on my understanding of the source code), I
assume all I have to do is create a TMNavMainFrame class variable in the
applet class and constructs it exactly like the TMNavMainFrame is
constructed in the tmNav.
I assumed that all I had to do was to set the TMNavMainFrame in TMNav not
to show anything and show TMNavMainFrame which is inside the applet
class instead, however I kept getting NullPointerException.
Even after I put additional method in TMNav class called getFrame() which
returns TMNavMainFrame inside TMNav class, it still wouldnt work. So I
have the following:
class myApplet extends Applet{
TMNavMainFrame test = null;
TMNav application = null; // must have this
//init must be overridden
void init(){
//basically contains what is inside of the main function in TMNav
//most important are:
// application.getInstance().makeInstance();
// application.getInstance().show();
// if the show function is called, then TMNav runs on separate window
// since i want the frame to be displayed in the applet, it was turned
// off
test = application.getInstance().getFrame();
test.show();
}
}
with this way, the getFrame() method is somehow returning null and hence I
got the NullPointerException (it is supposed to return TMNavMainFrame
inside TMNav) and since I called it after everything was constructed
properly (that is, after the show() function is normally called in the
main function), that I have no idea why it is returning null.
any comments ?
On Sun, 17 Oct 2004, Christoph Froehlich wrote:
> 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...>
>
|
|
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...> |
|
From: Rinalldo Y. <ry...@cs...> - 2004-10-17 07:20:34
|
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 |
|
From: <ben...@id...> - 2004-05-22 12:10:54
|
Dear Open Source developer I am doing a research project on "Fun and Software Development" in which I kindly invite you to participate. You will find the online survey under http://fasd.ethz.ch/qsf/. The questionnaire consists of 53 questions and you will need about 15 minutes to complete it. With the FASD project (Fun and Software Development) we want to define the motivational significance of fun when software developers decide to engage in Open Source projects. What is special about our research project is that a similar survey is planned with software developers in commercial firms. This procedure allows the immediate comparison between the involved individuals and the conditions of production of these two development models. Thus we hope to obtain substantial new insights to the phenomenon of Open Source Development. With many thanks for your participation, Benno Luthiger PS: The results of the survey will be published under http://www.isu.unizh.ch/fuehrung/blprojects/FASD/. We have set up the mailing list fa...@we... for this study. Please see http://fasd.ethz.ch/qsf/mailinglist_en.html for registration to this mailing list. _______________________________________________________________________ Benno Luthiger Swiss Federal Institute of Technology Zurich 8092 Zurich Mail: benno.luthiger(at)id.ethz.ch _______________________________________________________________________ |
|
From: Yanli <lil...@ho...> - 2004-05-02 13:04:15
|
SGksIA0KSSBuZWVkIHRvIGZpbmQgYWxsIHRoZSByZXNvdXJjZXMgYW5kIHRvcGljcyB3aGljaCBo YXZlIGEgY2VydGFpbiB0aGVtZS4gQnV0IHRoZSBtZXRob2QgImdldFRvcGljc0luU2NvcGUoKSIg aXMgZGVwcmVjYXRlZCBhbmQgbm90IHN1Y2ggbWV0aG9kIGF2YWlsYWJsZSBmb3IgcmVzb3VyY2Vz LiBXaWxsIGFueWJvZHkgcGxlYXNlIHRlbGwgbWUgaG93IHRvIGRvIHRoYXQ/IFRoYW5rcyBhIGxv dC4NCg0KWWFubGk= |