[jsword-devel] BibleDesktop and Persistent window positioning
Neil Short
neshort at yahoo.com
Sat Jul 26 08:50:26 MST 2008
My question of the day is this:
Where is this file LayoutPersistence.properties ?
If you simply specify a location thin your code will not be cross-platform. If you use the function System.getProperty("user.home") then your code WILL be cross-platform.
======
If not us, who? And if not now, when?
Ronald Reagan
--- On Fri, 7/25/08, DM Smith <dmsmith555 at yahoo.com> wrote:
> From: DM Smith <dmsmith555 at yahoo.com>
> Subject: Re: [jsword-devel] BibleDesktop and Persistent window positioning
> To: "J-Sword Developers Mailing List" <jsword-devel at crosswire.org>
> Date: Friday, July 25, 2008, 4:59 AM
> I really appreciate your eagerness to help!!
>
> But I guess I didn't specify clearly what "after
> the nightly build"
> means. I was really tired last night. Sorry. The nightly
> build runs at
> midnight in Arizona, USA. Which is about 3am my time, but
> about 9am in
> Europe.
>
> If you look in the folder that holds desktop.properties (on
> linux this
> should be ~/.jsword) you will have a file named:
> org.crosswire.common.swing.desktop.LayoutPersistence.properties
> If it is not there, you were too eager. If you delete this
> file, you
> can test again.
>
> Would you mind trying again?
>
> You should notice that the first time you run it, the
> program will be
> 75% the screen size and centered. When you close the
> program it will
> write out the current size and position to the
> LayoutPersistence.properties file.
>
> When you subsequently start the program, it will use this
> information
> to size and position the window.
>
> The other test I'm going to try is to see how it works
> with Portable
> BibleDesktop (www.crosswire.org/~dmsmith/bd). This is not
> released
> yet, but I was hoping to do so this release. The purpose of
> Portable
> BD is that one runs BD on a USB stick on whatever computer
> the user
> has access to.
>
> The test would be to place the app at a reasonable size on
> a big
> monitor but located on the right and bottom part of the
> screen. And
> then open it up on a much smaller screen.
>
> In Christ's Service,
> DM
>
> On Jul 24, 2008, at 11:22 PM, DM Smith wrote:
>
> > I have checked in Adam Thomas' code to persist the
> position and size
> > of the main BibleDesktop window. After the nightly
> build, please test
> > it.
> >
> > Adam has found a tremendously simpler way to center
> the window that is
> > used for first run of BD. I'd like to know how it
> does in different
> > Linux window managers.
> >
> > It does very well on Windows and Mac. I'll be
> testing Gnome on Fedora
> > 9 tomorrow.
> >
> > Many thanks to Adam!!!
> >
> > In Christ,
> > DM
> >
> >
> > _______________________________________________
> > jsword-devel mailing list
> > jsword-devel at crosswire.org
> >
> http://www.crosswire.org/mailman/listinfo/jsword-devel_______________________________________________
> jsword-devel mailing list
> jsword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/jsword-devel
More information about the jsword-devel
mailing list