Re: making a custom viewer

From: Jeff Mathis <jeff.mathis@biosgroup.com>
Date: Mon Sep 10 2001 - 12:02:41 EDT

martijn,

I'm using JBuilder (as well as xemacs and vi, on occasion) in creating my
own application as well. Since there is a lot of dynamic loading going on,
you often have to rebuild in several directories to get everything up to
date.

anyway, edit your project properties dialog. add the openmap source
directory, but make sure you keep the output path to YOUR source directory,
not openmaps. Then add the OpenMap/lib/contrib.jar to your required library
list.
Then, you'll need to go into each openmap directory from within jbuilder
and build.

I don't modify the openmap source. I only added it to my project so I could
better understand whats going on and so I could use the debugger.

I've made all my frame-specific changes in my frame source file, rather
than the properties file. never tried using the properties file for that.
you might need to add a setProperties method (?).

good luck

jeff

At 03:58 PM 9/10/2001 +0100, Martijn Cappel wrote:
>hiya all,
>
>im trying to make a custom viewer for openmap.
>To begin with i tried to import all the source files into Jbuilder and
>make my own project when i dint succeed at this i got wind of a .jpr file
>which had allrdy been posted on the openmap site. i dowloaded this but
>still i couldnt succeed in getting Jbuilder to make the project for sratch
>(the .java files).
>
>So i just inculuded the supplied .jar files (3) as libraries for my
>project and ran with it that way. But this gives a problem in that
>JBuilder uses the supplied .class files above the users compiled ones so
>if you edit for example the openmap.java file and recompile it, you wont
>see the modifications because the program still uses the old class file in
>the .jar
>
>So now im at the dillemma how to get my viewer to be started instead of
>the standard OpenMapFrame.java.
>So I tried to work around this problem by editing the openmap.properties file.
>I did the following.
>
>I changed the
>"frame.class=com.bbn.openmap.gui.OpenMapFrame" line into
>"frame.class=com.bbn.openmap.gui.MyFrame"
>
>and of course added a .java file at the specified path. In this file i
>made a new frame and set its size and title.
>The applivation now does make a new frame but it doesnt set its title or
>size correctly.
>
>Have you got any ideas as how to do this.
>
>Greetz Martijn
>
>
>
>
>Get 250 color business cards for FREE!
>http://businesscards.lycos.com/vp/fastpath/
>
>--
>[To unsubscribe to this list send an email to "majdart@bbn.com"
>with the following text in the BODY of the message "unsubscribe
>openmap-users"]

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Mon Sep 10 12:04:12 2001

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:31 EDT