[jsword-devel] Odd bug in BD
DM Smith
dmsmith at crosswire.org
Mon Mar 18 06:25:51 MST 2013
Was able to reproduce it. Compiling with JDK 5 did not prevent the problem.
Turns out that Ubuntu default install is not Gnome 3, but Unity. Not at all obvious to a non-ubuntu, non gnome3 user. Very used to gnome2. Strongly dislike Gnome 3. So when I saw Unity I mistook it for Gnome3. One seemed as bad as the other. Took a half gig to install Gnome 3. Ouch. The launcher I mentioned below works for Gnome 3, but not quite the same icon and name experience.
The problem is that if you maximize the program under Gnome 3 then the mouse is off. If you merely make the window big, but not full window, the mouse works fine.
Unity works fine too.
Also, if you run Bible Desktop using openJDK 6 it doesn't have the problem. I'm not aware of any programs that require Java 7. (I uninstalled openJDK 7 and installed openJDK 6.)
I'll work on getting a bug workaround into Bible Desktop.
On Mar 18, 2013, at 8:41 AM, DM Smith <dmsmith at crosswire.org> wrote:
> Did find a bug report regarding the problem:
> http://stackoverflow.com/questions/10572934/java-swing-mouse-pointer-shifted-on-context-menu-when-jframe-is-maximized
>
> Still hopeful that building with Java 5 avoids the problem.
> -- DM
>
> On Mar 17, 2013, at 10:04 PM, DM Smith <dmsmith at crosswire.org> wrote:
>
>> Peter,
>>
>> This is in the category of "It works for me"
>>
>> I installed Ubuntu 12.10 64-bit and openJDK 7.
>>
>> The nightly build is now created using Java 5 (which it should have been all along). Hopefully, this was the problem's fix.
>> http://www.crosswire.org/ftpmirror/pub/jsword/nightly/bibledesktop-latest-bin.zip
>>
>> I saved this on my desktop. Created a launcher for it, named "BibleDesktop.desktop" with the following contents:
>> [Desktop Entry]
>> Version=2.0
>> Name=Bible Desktop
>> Comment=Bible Study
>> Exec=/home/dm/Desktop/bibledesktop-2.0-beta/BibleDesktop.sh
>> Icon=/home/dm/Desktop/bibledesktop-2.0-beta/bibledesktop_icon_512.png
>> Terminal=false
>> Type=Application
>> Categories=Utility;Application;
>>
>> I then made it executable and double clicked on it. You'll obviously have to adjust this to your path.
>>
>> I also ran BibleDesktop.sh in a terminal, which did the same thing but picked an ugly icon for the dock.
>>
>> I found no mouse problems.
>>
>> Let me know if it is any better for you.
>>
>> -- DM
>>
>> On Mar 16, 2013, at 10:30 AM, DM Smith <dmsmith at crosswire.org> wrote:
>>
>>> On Mar 6, 2013, at 12:40 AM, Peter von Kaehne <refdoc at gmx.net> wrote:
>>>
>>>> On Tue, 2013-03-05 at 22:33 -0500, DM Smith wrote:
>>>>> Is this the release build or the nightly build?
>>>>
>>>> Nightly build.
>>>>
>>>> I just now tried the 1.6 release, but it has no such problem
>>>
>>> This is strange. I wasn't able to reproduce the problem. It should have.
>>>
>>> I'm curious whether the Oracle supplied Java has the same problems.
>>>
>>> Either way, I'd like BD to work well with openJDK on Ubuntu.
>>>
>>> Recently I found out that if we use a more recent version of Java to target an earlier Java that we have to do it carefully to avoid problems. Currently we use Java 6 to build a Java 5 nightly build. We should use Java 5 to build it.
>>>
>>> At runtime the version of Java can be more recent. It is best to use the most recent Java.
>>>
>>> The BD code has not changed much. Only to accommodate the changes in JSword. That didn't touch the drawing or painting of the screens. I'll get back to you when I have sorted out the build. Right now it is broken.
>>>
>>> In Him,
>>> 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
>
> _______________________________________________
> jsword-devel mailing list
> jsword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/jsword-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/jsword-devel/attachments/20130318/3b68fcb6/attachment-0001.html>
More information about the jsword-devel
mailing list