Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #4422 > unrolled thread
| Started by | "Deepanshu" <deepanshu@THRWHITE.remove-dii-this> |
|---|---|
| First post | 2011-04-27 15:50 +0000 |
| Last post | 2011-04-27 15:50 +0000 |
| Articles | 11 — 7 participants |
Back to article view | Back to comp.lang.java.gui
Strange problem with JAVA "Deepanshu" <deepanshu@THRWHITE.remove-dii-this> - 2011-04-27 15:50 +0000
Re: Strange problem with "Hendrik Maryns" <hendrik.maryns@THRWHITE.remove-dii-this> - 2011-04-27 15:50 +0000
Re: Strange problem with "Deepanshu" <deepanshu@THRWHITE.remove-dii-this> - 2011-04-27 15:50 +0000
Re: Strange problem with "Nigel Wade" <nigel.wade@THRWHITE.remove-dii-this> - 2011-04-27 15:50 +0000
Re: Strange problem with "Thomas Kellerer" <thomas.kellerer@THRWHITE.remove-dii-this> - 2011-04-27 15:50 +0000
Re: Strange problem with "John B. Matthews" <john.b..matthews@THRWHITE.remove-dii-this> - 2011-04-27 15:50 +0000
Re: Strange problem with "Thomas Kellerer" <thomas.kellerer@THRWHITE.remove-dii-this> - 2011-04-27 15:50 +0000
Re: Strange problem with "Lew" <lew@THRWHITE.remove-dii-this> - 2011-04-27 15:50 +0000
Re: Strange problem with "Stefan Rybacki" <stefan.rybacki@THRWHITE.remove-dii-this> - 2011-04-27 15:50 +0000
Re: Strange problem with "Deepanshu" <deepanshu@THRWHITE.remove-dii-this> - 2011-04-27 15:50 +0000
Re: Strange problem with "Stefan Rybacki" <stefan.rybacki@THRWHITE.remove-dii-this> - 2011-04-27 15:50 +0000
| From | "Deepanshu" <deepanshu@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:50 +0000 |
| Subject | Strange problem with JAVA |
| Message-ID | <2ea23d94-03d4-4f99-a11b-26b7bb9a8a51@n33g2000pri.googlegroups.com> |
To: comp.lang.java.gui Hi All, I have a strange problem with my JAVA GUIs running on GNOME desktop. The GUIs appear broken(No static text is displayed) when I am running my application with Java 1.4 or 1.5 but appear to be running fine when I use Java1.6. The dialogs are created using JOptionDialog and the parent frame(JFrame) has a look and feel set by getSystemLookAndFeel. The issues got fixed to an extent by using metalLookAndFeel but still dialogs are not behaving correctly. When using Java 1.4 or 1.5 if I resize the dialog then the information on the dialog shows up but this is creating application entirely unusable. Unfortunately, I am unable to post any code on the forum :( In case anybody has come across such issue earlier or can point me to some way to fix it will be highly appreciated. Thanks in advance! ~Deepanshu --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [next] | [standalone]
| From | "Hendrik Maryns" <hendrik.maryns@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:50 +0000 |
| Subject | Re: Strange problem with |
| Message-ID | <geuv0g$u1v$1@newsserv.zdv.uni-tuebingen.de> |
| In reply to | #4422 |
To: comp.lang.java.gui -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Deepanshu schreef: > Hi All, > > I have a strange problem with my JAVA GUIs running on GNOME desktop. > The GUIs appear broken(No static text is displayed) when I am running > my application with Java 1.4 or 1.5 but appear to be running fine when > I use Java1.6. The dialogs are created using JOptionDialog and the > parent frame(JFrame) has a look and feel set by getSystemLookAndFeel. > The issues got fixed to an extent by using metalLookAndFeel but still > dialogs are not behaving correctly. > > When using Java 1.4 or 1.5 if I resize the dialog then the information > on the dialog shows up but this is creating application entirely > unusable. You probably use some API which has only been introduced in 1.6 and thus does not work, or only partially works in older versions. > Unfortunately, I am unable to post any code on the forum :( That will make it very difficult to help you. H. - -- Hendrik Maryns http://tcl.sfs.uni-tuebingen.de/~hendrik/ ================== Ask smart questions, get good answers: http://www.catb.org/~esr/faqs/smart-questions.html -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkkS/1AACgkQBGFP0CTku6NARwCfZYtR4uZWYf8ljpLqXsDZ2XS/ uX4AniAZpZFW5gb9gll7SfZTsDgeodyt =h1v5 -----END PGP SIGNATURE----- --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [next] | [standalone]
| From | "Deepanshu" <deepanshu@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:50 +0000 |
| Subject | Re: Strange problem with |
| Message-ID | <0583afac-6ed1-4f75-8028-9fd9159bd09c@j40g2000prh.googlegroups.com> |
| In reply to | #4423 |
To: comp.lang.java.gui The whole set of applications have been developed using Java 1.4. its only after trying on Gnome we found out that this does not work. I will try to create a prototype as fast as I can. On Nov 6, 7:29 pm, Hendrik Maryns <gtw37b...@sneakemail.com> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Deepanshu schreef: > > > Hi All, > > > I have a strange problem with my JAVA GUIs running on GNOME desktop. > > The GUIs appear broken(No static text is displayed) when I am running > > my application with Java 1.4 or 1.5 but appear to be running fine when > > I use Java1.6. The dialogs are created using JOptionDialog and the > > parent frame(JFrame) has a look and feel set by getSystemLookAndFeel. > > The issues got fixed to an extent by using metalLookAndFeel but still > > dialogs are not behaving correctly. > > > When using Java 1.4 or 1.5 if I resize the dialog then the information > > on the dialog shows up but this is creating application entirely > > unusable. > > You probably use some API which has only been introduced in 1.6 and thus > does not work, or only partially works in older versions. > > > Unfortunately, I am unable to post any code on the forum :( > > That will make it very difficult to help you. > > H. > - -- > Hendrik Marynshttp://tcl.sfs.uni-tuebingen.de/~hendrik/ > ================== > Ask smart questions, get good answers:http://www.catb.org/~esr/faqs/smart-questions.html > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.9 (GNU/Linux) > Comment: Using GnuPG with SUSE -http://enigmail.mozdev.org > > iEYEARECAAYFAkkS/1AACgkQBGFP0CTku6NARwCfZYtR4uZWYf8ljpLqXsDZ2XS/ > uX4AniAZpZFW5gb9gll7SfZTsDgeodyt > =h1v5 > -----END PGP SIGNATURE----- --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [next] | [standalone]
| From | "Nigel Wade" <nigel.wade@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:50 +0000 |
| Subject | Re: Strange problem with |
| Message-ID | <gev2p2$nu5$1@south.jnrs.ja.net> |
| In reply to | #4422 |
To: comp.lang.java.gui Deepanshu wrote: > Hi All, > > I have a strange problem with my JAVA GUIs running on GNOME desktop. > The GUIs appear broken(No static text is displayed) when I am running > my application with Java 1.4 or 1.5 but appear to be running fine when > I use Java1.6. The dialogs are created using JOptionDialog and the > parent frame(JFrame) has a look and feel set by getSystemLookAndFeel. > The issues got fixed to an extent by using metalLookAndFeel but still > dialogs are not behaving correctly. > > When using Java 1.4 or 1.5 if I resize the dialog then the information > on the dialog shows up but this is creating application entirely > unusable. > > Unfortunately, I am unable to post any code on the forum :( > > In case anybody has come across such issue earlier or can point me to > some way to fix it will be highly appreciated. > > Thanks in advance! > > ~Deepanshu Is all of the GUI creation, and updating, done on the EDT? Creating or updating any GUI component from any other thread is liable to cause unpredictable drawing problems. -- Nigel Wade --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [next] | [standalone]
| From | "Thomas Kellerer" <thomas.kellerer@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:50 +0000 |
| Subject | Re: Strange problem with |
| Message-ID | <6ngjd2FljpiuU1@mid.individual.net> |
| In reply to | #4422 |
To: comp.lang.java.gui Deepanshu, 06.11.2008 15:16: > Hi All, > > I have a strange problem with my JAVA GUIs running on GNOME desktop. > The GUIs appear broken(No static text is displayed) when I am running > my application with Java 1.4 or 1.5 but appear to be running fine when > I use Java1.6. The dialogs are created using JOptionDialog and the > parent frame(JFrame) has a look and feel set by getSystemLookAndFeel. > The issues got fixed to an extent by using metalLookAndFeel but still > dialogs are not behaving correctly. > > When using Java 1.4 or 1.5 if I resize the dialog then the information > on the dialog shows up but this is creating application entirely > unusable. > > Unfortunately, I am unable to post any code on the forum :( > > In case anybody has come across such issue earlier or can point me to > some way to fix it will be highly appreciated. > In my experience the GTK Look & Feel that is selected on the Gnome Desktop behaves completely different compared e.g. to the Metal Look & Feel. I had several cases were the order of events during creation of my Windows and Panels were different compared to other look and feels and thus certain objects were not yet initialized which led to NPEs during startup and opening of windows. Thomas --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [next] | [standalone]
| From | "John B. Matthews" <john.b..matthews@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:50 +0000 |
| Subject | Re: Strange problem with |
| Message-ID | <nospam-C8C450.14331006112008@news.motzarella.org> |
| In reply to | #4427 |
To: comp.lang.java.gui In article <6ngjd2FljpiuU1@mid.individual.net>, Thomas Kellerer <YQDHXVLMUBXG@spammotel.com> wrote: > Deepanshu, 06.11.2008 15:16: > > Hi All, > > > > I have a strange problem with my JAVA GUIs running on GNOME > > desktop. The GUIs appear broken(No static text is displayed) when I > > am running my application with Java 1.4 or 1.5 but appear to be > > running fine when I use Java1.6. The dialogs are created using > > JOptionDialog and the parent frame(JFrame) has a look and feel set > > by getSystemLookAndFeel. The issues got fixed to an extent by using > > metalLookAndFeel but still dialogs are not behaving correctly. > > > > When using Java 1.4 or 1.5 if I resize the dialog then the > > information on the dialog shows up but this is creating application > > entirely unusable. > > > > Unfortunately, I am unable to post any code on the forum :( > > > > In case anybody has come across such issue earlier or can point me > > to some way to fix it will be highly appreciated. > > In my experience the GTK Look & Feel that is selected on the Gnome > Desktop behaves completely different compared e.g. to the Metal Look > & Feel. I had several cases were the order of events during creation > of my Windows and Panels were different compared to other look and > feels and thus certain objects were not yet initialized which led to > NPEs during startup and opening of windows. This is a compelling observation. I wonder if it's related to Nigel Wade's reminder about constructing GUI components on the EDT: <http://groups.google.com/group/comp.lang.java.gui/msg/9981c8ae0278f242?h l=en&dmode=source> -- John B. Matthews trashgod at gmail dot com http://home.roadrunner.com/~jbmatthews/ --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [next] | [standalone]
| From | "Thomas Kellerer" <thomas.kellerer@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:50 +0000 |
| Subject | Re: Strange problem with |
| Message-ID | <6nil3mFlpc83U1@mid.individual.net> |
| In reply to | #4432 |
To: comp.lang.java.gui John B. Matthews, 06.11.2008 20:33: >>> In case anybody has come across such issue earlier or can point me >>> to some way to fix it will be highly appreciated. >> In my experience the GTK Look & Feel that is selected on the Gnome >> Desktop behaves completely different compared e.g. to the Metal Look >> & Feel. I had several cases were the order of events during creation >> of my Windows and Panels were different compared to other look and >> feels and thus certain objects were not yet initialized which led to >> NPEs during startup and opening of windows. > > This is a compelling observation. I wonder if it's related to Nigel > Wade's reminder about constructing GUI components on the EDT: > > <http://groups.google.com/group/comp.lang.java.gui/msg/9981c8ae0278f242?h > l=en&dmode=source> > The creation of the objects was done in the EDT but if memory serves me well (it's been a while since I hunted that down) this was also caused when adding listeners. The order in which certain events were dispatched to the listeners were completely different. I'm not talking about multiple listeners on the same event. Those were different types of listeners. Thomas --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [next] | [standalone]
| From | "Lew" <lew@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:50 +0000 |
| Subject | Re: Strange problem with |
| Message-ID | <gf1d85$9nd$3@aioe.org> |
| In reply to | #4433 |
To: comp.lang.java.gui John B. Matthews, 06.11.2008 20:33: >> This is a compelling observation. I wonder if it's related to Nigel >> Wade's reminder about constructing GUI components on the EDT: >> >> <http://groups.google.com/group/comp.lang.java.gui/msg/9981c8ae0278f242?h >> l=en&dmode=source> Thomas Kellerer wrote: > The creation of the objects was done in the EDT but if memory serves me > well (it's been a while since I hunted that down) this was also caused > when adding listeners. The order in which certain events were dispatched > to the listeners were completely different. I'm not talking about > multiple listeners on the same event. Those were different types of > listeners. Perhaps listeners were using a published 'this' from the constructor? WAG given I have no data. -- Lew --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [next] | [standalone]
| From | "Stefan Rybacki" <stefan.rybacki@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:50 +0000 |
| Subject | Re: Strange problem with |
| Message-ID | <4913fa3d$1@news.uni-rostock.de> |
| In reply to | #4422 |
To: comp.lang.java.gui Deepanshu schrieb: > Hi All, > > I have a strange problem with my JAVA GUIs running on GNOME desktop. > The GUIs appear broken(No static text is displayed) when I am running > my application with Java 1.4 or 1.5 but appear to be running fine when > I use Java1.6. The dialogs are created using JOptionDialog and the > parent frame(JFrame) has a look and feel set by getSystemLookAndFeel. > The issues got fixed to an extent by using metalLookAndFeel but still > dialogs are not behaving correctly. > > When using Java 1.4 or 1.5 if I resize the dialog then the information > on the dialog shows up but this is creating application entirely > unusable. > > Unfortunately, I am unable to post any code on the forum :( > > In case anybody has come across such issue earlier or can point me to > some way to fix it will be highly appreciated. > > Thanks in advance! > > ~Deepanshu Besides the reasons others already mentioned: - EDT - AWT/Swing mixture - ... I also would consider something like Compiz/Beryl to be a reasonable candidate that might be in your way. I experienced a lot of weird GUI behaviour (basically not drawing components or entire windows) with compiz enabled. If you have Desktop effects enabled via compiz try to deactivate them and try again. Stefan --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [next] | [standalone]
| From | "Deepanshu" <deepanshu@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:50 +0000 |
| Subject | Re: Strange problem with |
| Message-ID | <9cc032c1-86c6-4327-bf8e-02173f4b4086@c36g2000prc.googlegroups.com> |
| In reply to | #4429 |
To: comp.lang.java.gui On Nov 7, 1:20=A0pm, Stefan Rybacki <noem...@noemail.foobar> wrote: > Deepanshu schrieb: > > > Hi All, > > > =A0 I have a strange problem with my JAVA GUIs running on GNOME desktop= . > > The GUIs appear broken(No static text is displayed) when I am running > > my application with Java 1.4 or 1.5 but appear to be running fine when > > I use Java1.6. The dialogs are created using JOptionDialog and the > > parent frame(JFrame) has a look and feel set by getSystemLookAndFeel. > > The issues got fixed to an extent by using metalLookAndFeel but still > > dialogs are not behaving correctly. > > > When using Java 1.4 or 1.5 if I resize the dialog then the information > > on the dialog shows up but this is creating application entirely > > unusable. > > > Unfortunately, I am unable to post any code on the forum :( > > > In case anybody has come across such issue earlier or can point me to > > some way to fix it will be highly appreciated. > > > Thanks in advance! > > > ~Deepanshu > > Besides the reasons others already mentioned: > > - EDT > - AWT/Swing mixture > - ... > > I also would consider something like Compiz/Beryl to be a reasonable cand= idate > that might be in your way. I experienced a lot of weird GUI behaviour (ba= sically > not drawing components or entire windows) with compiz enabled. If you hav= e > Desktop effects enabled via compiz try to deactivate them and try again. > > Stefan HI Stefan, Could you please point me to how can I disable these. Thanks, Deepanshu --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [next] | [standalone]
| From | "Stefan Rybacki" <stefan.rybacki@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:50 +0000 |
| Subject | Re: Strange problem with |
| Message-ID | <4915c366$1@news.uni-rostock.de> |
| In reply to | #4431 |
To: comp.lang.java.gui Deepanshu schrieb: > On Nov 7, 1:20 pm, Stefan Rybacki <noem...@noemail.foobar> wrote: >... >> >> I also would consider something like Compiz/Beryl to be a reasonable candidate >> that might be in your way. I experienced a lot of weird GUI behaviour (basically >> not drawing components or entire windows) with compiz enabled. If you have >> Desktop effects enabled via compiz try to deactivate them and try again. >> >> Stefan > > HI Stefan, > Could you please point me to how can I disable these. > System->Appearance there on Visual Effects click on None > Thanks, > Deepanshu --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.gui
csiph-web