Hi Jeff and Martin,
On Monday, September 10, 2001, at 12:02 PM, Jeff Mathis wrote:
> 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 (?).
If your class implements the PropertyConsumer interface, its
setProperties() method will be called with the System properties and the
contents of the openmap.properties file.
In Martin's case, the prefix would be "frame", so all his properties for
his frame object should be like frame.title, frame.whatever.
I got the impression that Martin was hardcoding the title and size
within his frame, tho.
- Don
> 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"]
>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Donald F. Dietrick, dietrick@bbn.com
BBN Technologies, 10 Moulton Street, Cambridge, MA 02138
617.873.3031 FAX 2794
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-- [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:25:07 2001
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:31 EDT