Re: Java problem; is this Linux-related?
Quoth Kevin O'Gorman: I've recently received the Java source code for an application I've been using for a while, and want to fix some of the glitches that have been bugging me. I've gotten most of them, but two are being obstinate. The original author was on a Mac, and did not have the problems I'm having. I wonder how to fix these, and wonder if I'm facing something inherent in recent versions of Java for Linux. I say recent, because the problems are not present in earlier JDKs or SDKs. Some things I've fixed because the original code wasn't quite doing the portable thing. Some I fixed by putting in preferences. These two remain unsolved. My Java is 1.4.1_02-b06, it says. Anyway, the problems: 1) The File Open dialogs now show files in the native order, unsorted. This makes it quite hard to find files in some of my directories with hundreds of files. This is almost definitely a Java issue. We use some Java apps at work and they Do The Right Thing vis-a-vis directory displays. I suppose you could implement your own file system browser using fstat(), getdirentries(), and friends, but that could become tedious and non-portable in a hurry. 2) I'm having trouble making the GridBag thingy work. I've got one sub-window that's way narrow, and can only get it to widen a small amount, despite giving *500 weight to its constraint. The overall layout is like this: [...] Haven't a clue here. wagPerhaps it is related to the windowing toolkit in use?/wag Kurt -- Children aren't happy without something to ignore, And that's what parents were created for. -- Ogden Nash ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users
Re: Java problem; is this Linux-related?
early AWT implementations were very different. Some still are. Unfortunately, AWT leaves a lot up to the JRE implementation. SWING (JFC) classes do the rendering in Java, which makes them a lot more consistent. Unix, Mac and Windows all have their quirks for AWT layout, still (as far as I know). HTH. On Thu, 3 Jul 2003 16:08:44 -0700 (PDT) Kevin O'Gorman [EMAIL PROTECTED] wrote: I've recently received the Java source code for an application I've been using for a while, and want to fix some of the glitches that have been bugging me. I've gotten most of them, but two are being obstinate. The original author was on a Mac, and did not have the problems I'm having. I wonder how to fix these, and wonder if I'm facing something inherent in recent versions of Java for Linux. I say recent, because the problems are not present in earlier JDKs or SDKs. Some things I've fixed because the original code wasn't quite doing the portable thing. Some I fixed by putting in preferences. These two remain unsolved. My Java is 1.4.1_02-b06, it says. Anyway, the problems: 1) The File Open dialogs now show files in the native order, unsorted. This makes it quite hard to find files in some of my directories with hundreds of files. 2) I'm having trouble making the GridBag thingy work. I've got one sub-window that's way narrow, and can only get it to widen a small amount, despite giving *500 weight to its constraint. The overall layout is like this: | 1| 4 | | | | |---| | | 2| | | | | |---| | | 3| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |--| | 5 | | | | | |--| My problems are the width of panel 4 and the height of panel 5. Panels 1 and 2 are single rows of buttons. Panel 3 has some scalable graphics but don't seem to be the problem, because they have a fixed aspect ratio and I can keep them narrow or short. Panels 4 and 5 are text. Panel 3 seems to suck up all the available space in spite of the contents remaining in that fixed aspect ratio. Anybody know where to get help with this, or even better, have a clue what the answer will be? ++ kevin ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users
Re: Java problem
On Sat, Mar 29, 2003 at 09:31:34PM -0700, Andrew Mathews wrote: I have it working under Netscape 7.02 without a problem. I downloaded the j2re package from http://java.sun.com/j2se/1.4.1/download.html called j2re-1_4_1_02-linux-i586-rpm.bin. Did the following: chmod +x j2re-1_4_1_02-linux-i586-rpm.bin ./j2re-1_4_1_02-linux-i586-rpm.bin rpm -ivh j2re-1_4_1_02-fcs-linux-i586.rpm ln -s /usr/java/j2re1.4.1_02/plugin/i386/ns610/libjavaplugin_oji.so /usr/local/netscape7.02/plugins/ After that, it worked fine. It was one of those small projects I'd never gotten around to, but it was a simple fix. Here is what I get with java -showversion on my new lindows box: java version 1.3.1_02 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_02-b02) Java HotSpot(TM) Client VM (build 1.3.1_02-b02, mixed mode) The newest version of java available with synaptic that I find is version jkd 1.1. Is there a place I can get a newer/better version of java with synaptic? Joel ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users
Re: Java problem
Works for me under Mozilla 1.3b (haven't had a chance to upgrade yet). Running RH 7.0 on a Compaq Presario AMD duron 700 mhz. But the display is a little wierd. The graph below looks scrunched to the right. Alan Jackson wrote: Doesn't work at all under Mozilla 1.3 Displays the map, but the buttons don't work in Netscape 7.0 Both in Col 3.1.1 On Sat, 29 Mar 2003 20:28:44 -0500 Joel Hammer [EMAIL PROTECTED] wrote: Does anybody get this link to work properly in linux? http://www.ghcc.msfc.nasa.gov/temperature/ Even with my new lindows box and netscape, this link performs poorly. I would like to know if anybody using linux can navigate this page properly. It displays almost OK in XP, but some buttons don't seem too work well and overall this page is a bit of a pain to navigate in any OS for me. Joel = _ Susan Macchia mailto:[EMAIL PROTECTED] _ - Running Linux - because life is too short for reboots... ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users
Re: Java problem
$ java -version java version 1.4.0_03 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_03-b04) Java HotSpot(TM) Client VM (build 1.4.0_03-b04, mixed mode) On Sat, 29 Mar 2003 23:22:59 -0500 Tim Wunder [EMAIL PROTECTED] wrote: Which JRE? According to http://plugindoc.mozdev.org/whichjava.html I needed Blackdown's JRE for Moz 1.3 under RH 8.0. Blackdown also had 2 versions of 1.4.1, one for gcc-3.2 and one for gcc-2.95 On Saturday 29 March 2003 11:09 pm, someone claiming to be Alan Jackson wrote: Doesn't work at all under Mozilla 1.3 Displays the map, but the buttons don't work in Netscape 7.0 Both in Col 3.1.1 On Sat, 29 Mar 2003 20:28:44 -0500 Joel Hammer [EMAIL PROTECTED] wrote: Does anybody get this link to work properly in linux? http://www.ghcc.msfc.nasa.gov/temperature/ Even with my new lindows box and netscape, this link performs poorly. I would like to know if anybody using linux can navigate this page properly. It displays almost OK in XP, but some buttons don't seem too work well and overall this page is a bit of a pain to navigate in any OS for me. Joel ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users -- RedHat Psyche 8.0, stock kernel, KDE 3.1.CVS, Xfree86 4.2.1 11:15pm up 3 days, 16:24, 3 users, load average: 0.75, 0.84, 0.92 It's what you learn after you know it all that counts ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users -- --- | Alan K. Jackson| To see a World in a Grain of Sand | | [EMAIL PROTECTED] | And a Heaven in a Wild Flower, | | www.ajackson.org | Hold Infinity in the palm of your hand | | Houston, Texas | And Eternity in an hour. - Blake | --- ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users
Re: Java problem
Perhaps you should try: $ /opt/j2re1.4.1/bin/java -version java version 1.4.1 Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.1-01) Java HotSpot(TM) Client VM (build Blackdown-1.4.1-01, mixed mode) And make sure there's a link to javaplugin_oji.so in the plugins directory that mozilla sees (according to the documentation I've read, it needs to be a link, and not a copy of the file). Regards, Tim On Sunday 30 March 2003 11:44 pm, someone claiming to be Alan Jackson wrote: $ java -version java version 1.4.0_03 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_03-b04) Java HotSpot(TM) Client VM (build 1.4.0_03-b04, mixed mode) On Sat, 29 Mar 2003 23:22:59 -0500 Tim Wunder [EMAIL PROTECTED] wrote: Which JRE? According to http://plugindoc.mozdev.org/whichjava.html I needed Blackdown's JRE for Moz 1.3 under RH 8.0. Blackdown also had 2 versions of 1.4.1, one for gcc-3.2 and one for gcc-2.95 On Saturday 29 March 2003 11:09 pm, someone claiming to be Alan Jackson wrote: Doesn't work at all under Mozilla 1.3 Displays the map, but the buttons don't work in Netscape 7.0 Both in Col 3.1.1 On Sat, 29 Mar 2003 20:28:44 -0500 Joel Hammer [EMAIL PROTECTED] wrote: Does anybody get this link to work properly in linux? http://www.ghcc.msfc.nasa.gov/temperature/ Even with my new lindows box and netscape, this link performs poorly. I would like to know if anybody using linux can navigate this page properly. It displays almost OK in XP, but some buttons don't seem too work well and overall this page is a bit of a pain to navigate in any OS for me. Joel ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users -- RedHat Psyche 8.0, stock kernel, KDE 3.1.CVS, Xfree86 4.2.1 11:15pm up 3 days, 16:24, 3 users, load average: 0.75, 0.84, 0.92 It's what you learn after you know it all that counts ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users -- RedHat Psyche 8.0, stock kernel, KDE 3.1.CVS, Xfree86 4.2.1 11:45pm up 4 days, 16:54, 4 users, load average: 0.09, 0.18, 0.24 It's what you learn after you know it all that counts ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users
Re: Java problem
On Sunday 30 March 2003 01:28 am, Joel Hammer wrote: Does anybody get this link to work properly in linux? http://www.ghcc.msfc.nasa.gov/temperature/ Even with my new lindows box and netscape, this link performs poorly. I would like to know if anybody using linux can navigate this page properly. It displays almost OK in XP, but some buttons don't seem too work well and overall this page is a bit of a pain to navigate in any OS for me. Joel Hmmm... works ok here with Konqueror from today's KDE CVS, blackdown jdk 1.4.1, and my freshly compiled 2.5.66-ac1 (hmm.. just noticed.. looks like alan's been forgetting to change kernel number lately- 2.5.65-ac3 got called -ac2...) all on Gentoo, however the numbers of the years do seem to be a bit squished together. All buttons work tho. Bob Raymond -- Linux EPoX 2.5.65-ac4 #1 Sat Mar 29 12:12:41 UTC 2003 i686 AMD Athlon(tm) processor AuthenticAMD GNU/Linux 01:38:36 up 9:18, 2 users, load average: 0.67, 0.46, 0.33 I gained nothing at all from Supreme Enlightenment, and for that very reason it is called Supreme Enlightenment. -- Gotama Buddha ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users
Re: Java problem
Yes and no, and it does seem a bit flakey. On linux with mozilla 1.2 the only thing that works is clicking on the graph changes the map and it took forever to resolve and load. On my NT box with IE6 it works as it is intended to, kinda slick at that, and it loaded fast. On Sat, 29 Mar 2003 20:28:44 -0500 - Joel Hammer [EMAIL PROTECTED] wrote the following Re: Java problem nasa ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users
Re: Java problem
On Saturday 29 March 2003 8:28 pm, someone claiming to be Joel Hammer wrote: Does anybody get this link to work properly in linux? http://www.ghcc.msfc.nasa.gov/temperature/ Even with my new lindows box and netscape, this link performs poorly. I would like to know if anybody using linux can navigate this page properly. It displays almost OK in XP, but some buttons don't seem too work well and overall this page is a bit of a pain to navigate in any OS for me. Works with Mozilla 1.3, Blackdown JRE 1.4.1, RH 8.0. The graph thingy is a little funk looking, compressed too much so the legends at the bottom aren't legible. But most of the buttons work and I can highlight areas of the graphic and get details on that area. Haven't tried it under Windows (don't have a Windows PC connected to the internet here at home...). I can't seem to get Konqueror to find the java pligin for some reason :-( -- RedHat Psyche 8.0, stock kernel, KDE 3.1.CVS, Xfree86 4.2.1 11:05pm up 3 days, 16:14, 3 users, load average: 1.16, 1.04, 1.03 It's what you learn after you know it all that counts ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users
Re: Java problem
Doesn't work at all under Mozilla 1.3 Displays the map, but the buttons don't work in Netscape 7.0 Both in Col 3.1.1 On Sat, 29 Mar 2003 20:28:44 -0500 Joel Hammer [EMAIL PROTECTED] wrote: Does anybody get this link to work properly in linux? http://www.ghcc.msfc.nasa.gov/temperature/ Even with my new lindows box and netscape, this link performs poorly. I would like to know if anybody using linux can navigate this page properly. It displays almost OK in XP, but some buttons don't seem too work well and overall this page is a bit of a pain to navigate in any OS for me. Joel ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users -- --- | Alan K. Jackson| To see a World in a Grain of Sand | | [EMAIL PROTECTED] | And a Heaven in a Wild Flower, | | www.ajackson.org | Hold Infinity in the palm of your hand | | Houston, Texas | And Eternity in an hour. - Blake | --- ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users
Re: Java problem
Which JRE? According to http://plugindoc.mozdev.org/whichjava.html I needed Blackdown's JRE for Moz 1.3 under RH 8.0. Blackdown also had 2 versions of 1.4.1, one for gcc-3.2 and one for gcc-2.95 On Saturday 29 March 2003 11:09 pm, someone claiming to be Alan Jackson wrote: Doesn't work at all under Mozilla 1.3 Displays the map, but the buttons don't work in Netscape 7.0 Both in Col 3.1.1 On Sat, 29 Mar 2003 20:28:44 -0500 Joel Hammer [EMAIL PROTECTED] wrote: Does anybody get this link to work properly in linux? http://www.ghcc.msfc.nasa.gov/temperature/ Even with my new lindows box and netscape, this link performs poorly. I would like to know if anybody using linux can navigate this page properly. It displays almost OK in XP, but some buttons don't seem too work well and overall this page is a bit of a pain to navigate in any OS for me. Joel ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users -- RedHat Psyche 8.0, stock kernel, KDE 3.1.CVS, Xfree86 4.2.1 11:15pm up 3 days, 16:24, 3 users, load average: 0.75, 0.84, 0.92 It's what you learn after you know it all that counts ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users
Re: Java problem
Alan Jackson wrote: Doesn't work at all under Mozilla 1.3 Displays the map, but the buttons don't work in Netscape 7.0 Both in Col 3.1.1 On Sat, 29 Mar 2003 20:28:44 -0500 Joel Hammer [EMAIL PROTECTED] wrote: Does anybody get this link to work properly in linux? http://www.ghcc.msfc.nasa.gov/temperature/ Even with my new lindows box and netscape, this link performs poorly. I would like to know if anybody using linux can navigate this page properly. It displays almost OK in XP, but some buttons don't seem too work well and overall this page is a bit of a pain to navigate in any OS for me. Joel I have it working under Netscape 7.02 without a problem. I downloaded the j2re package from http://java.sun.com/j2se/1.4.1/download.html called j2re-1_4_1_02-linux-i586-rpm.bin. Did the following: chmod +x j2re-1_4_1_02-linux-i586-rpm.bin ./j2re-1_4_1_02-linux-i586-rpm.bin rpm -ivh j2re-1_4_1_02-fcs-linux-i586.rpm ln -s /usr/java/j2re1.4.1_02/plugin/i386/ns610/libjavaplugin_oji.so /usr/local/netscape7.02/plugins/ After that, it worked fine. It was one of those small projects I'd never gotten around to, but it was a simple fix. -- Andrew Mathews - 9:27pm up 13 days, 6:57, 11 users, load average: 2.09, 1.61, 1.44 - If the path be beautiful, let us not ask where it leads. -- Anatole France ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users