Re: Undecorated JFrame

From: Dances With Crows (danSPANceswitTRAPhcrows_at_usa.net)
Date: 12/09/03


Date: 9 Dec 2003 00:28:00 GMT


["Followup-To:" header set to comp.os.linux.x.] On Mon, 08 Dec 2003
23:22:31 GMT, samantha staggered into the Black Sun and said:
> I was so hoping someone could help me. I saw a question like this a
> few weeks ago. If I'm asking something that's already been answered
> or is in a FAQ or something, I'm really sorry.
>
> None of my Java applications have frame decorations when run under
> Linux. The exact same program will look "proper" on Win98SE, NT, and
> XP. This affects *all* my Java applications - including 3rd-party and
> JDK demos. And it doesn't matter if the application is AWT or Swing
> based. It doesn't matter if I run the program on the console, from
> telnet, or through xterm. I never had this problem with previous
> versions of Java or Linux.
>
> Here are all the specifics I can think of ...
> RH7.x, kernel 2.4.20-24.8

What's the x? Redhat 7.0 is very different from Redhat 7.3, and they're
both kinda obsolete (end RPM Dependency Hell, move to Debian or Gentoo
today!)

> GNOME desktop
> j2sdk-1.4.2-01

I think it's a problem with your GNOME config, not an X problem, not
really a Java problem. I compiled the code on my Linux desktop using
the Blackdown 1.4.1 JDK/JRE and saw perfect window decorations and
titles (but I'm using KDE 3.1; I'm not a big fan of GNOME.) Which window
manager are you using? Check its control panel/look-n-feel and see if
there's something about "apply GNOME look-n-feel to non-GNOME
applications", or anything about handling window manager hints, or
something.

> Even this simple little program can demonstrate my problem ...
[snip code]

Hm. There's no exit handler, and I had to kill -HUP it. Oh well...
HTH anyway.

-- 
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin /    mail: TRAP + SPAN don't belong
http://www.brainbench.com     /                Hire me! 
-----------------------------/ http://crow202.dyndns.org/~mhgraham/resume


Relevant Pages

  • Re: Undecorated JFrame
    ... > versions of Java or Linux. ... I think it's a problem with your GNOME config, not an X problem, not ... I compiled the code on my Linux desktop using ... titles Which window ...
    (comp.lang.java.gui)
  • Re: Manage in unmanaged easier or unmanaged in managed
    ... Can someone comment on V, X Windows, KDE on embedded window OS? ... I understand that GNOME is for Linux OS ... powerful system for easy-to-use desktop environment. ... GNOME, ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: OT: Linux 3D-Desktop XGL
    ... I've been running Linux exclusively at home for about 4 years. ... The latest release of Mandriva, my Linux of choice, includes XGL. ... If you drag a window to the edge of the current desktop, the desktop 'cube' rotates and allows you to drop the window on another desktop. ... there is an incompatibility between XGL and Java which causes any Java application window to appear as an empty gray square. ...
    (comp.cad.solidworks)
  • Re: Gnome file window keeps popping up
    ... I revived it I use the Gnome desktop and normally there ... For the last few days, whenever I log in, a terminal window and a Gnome file ... "Gnome For Linux For Dummies" and it says how to solve ...
    (comp.os.linux.misc)
  • Re: Borland and Java obsession.
    ... > And Java does not work well on any Linux distro. ... I do not know what Linux version/distro you are using, ... There were some problems with JDK 1.3.1 and KDE 2.0. ... nor KDE 2.2 or KDE 3.x, nor any version of Gnome we have tried. ...
    (borland.public.delphi.non-technical)