JComboBox causing GTK-WARNING and GTK-CRITICAL on Ubuntu 8.04

I was wondering why whenever I use the GTK Look and Feel, my JComboBox's cause GTK issues. They also don't display right...
Here is the code I am using....
import javax.swing.*;
public class ComboBoxDisplayTest extends JFrame
  public ComboBoxDisplayTest()
    try
      UIManager.setLookAndFeel("com.sun.java.swing.plaf.gtk.GTKLookAndFeel");
      SwingUtilities.updateComponentTreeUI(this);
    catch(Exception ex)
      ex.printStackTrace();
    JComboBox cb = new JComboBox();
    this.add(cb);
    cb.addItem("Item 1");
    cb.addItem("Item 2");
  public static void main(String[] args)
    ComboBoxDisplayTest c = new ComboBoxDisplayTest();
    c.pack();
    c.setVisible(true);
}This is what get's printed onto the terminal when I run the program:
java ComboBoxDisplayTest
(<unknown>:7078): Gtk-WARNING **: Attempting to add a widget with type GtkButton to a GtkComboBoxEntry (need an instance of GtkEntry or of a subclass)
(<unknown>:7078): Gtk-CRITICAL **: gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(<unknown>:7078): Gtk-CRITICAL **: gtk_paint_box: assertion `style->depth == gdk_drawable_get_depth (window)' failed
(<unknown>:7078): Gtk-CRITICAL **: gtk_paint_box: assertion `style->depth == gdk_drawable_get_depth (window)' failed
(<unknown>:7078): Gtk-CRITICAL **: gtk_paint_box: assertion `style->depth == gdk_drawable_get_depth (window)' failed
(<unknown>:7078): Gtk-CRITICAL **: gtk_paint_box: assertion `style->depth == gdk_drawable_get_depth (window)' failed
(<unknown>:7078): Gtk-CRITICAL **: gtk_paint_box: assertion `style->depth == gdk_drawable_get_depth (window)' failed
(<unknown>:7078): Gtk-CRITICAL **: gtk_paint_box: assertion `style->depth == gdk_drawable_get_depth (window)' failedWhat exactly is going on?
Is there something wrong with my code?
Is there any way to fix this?
Any answers are much appreciated...
Thanks

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6624717
as far as i know (i am using Ubuntu 7.10 & OpenJDK 1.6.0_0-b11 & Sun JDK) not fixed yet ....
Ronald

Similar Messages

  • Cannot run shaman and got a GTK-Warning

    $ shaman
    (process:5744): Gtk-WARNING **: This process is currently running setuid or setgid.
    This is not a supported use of GTK+. You must create a helper
    program instead. For further details, see:
    http://www.gtk.org/setuid.html
    Refusing to initialize GTK+.
    And I have qgtkstyle-svn installed for QT themestyle.
    Hope the authors of shaman to know this.
    Last edited by riverscn (2008-08-14 08:32:03)

    Allan wrote:
    kumyco wrote:
    as super user do
    chmod -s /usr/bin/shaman
    i assume the command to run it is /usr/bin/shaman
    maybe report a bug to the shaman packager if
    it came that way in a pkg
    That will cause shaman to stop working: http://shaman.iskrembilen.com/trac/wiki … ged%20user
    So it looks like that theme is just not compatible.  Report a bug on the shaman bug tracker (http://shaman.iskrembilen.com/trac/report) for the shaman devs to see this.
    Hi everyone, i had the same problem as riverscn, i solved it thanks to kumyco tip, it worked for me, but only if i launch Shaman with gksu, otherwise, it brakes like Allan said.
    Thanks kumyco and Allan.
    See ya.
    Last edited by kernel_script (2008-08-30 23:59:30)

  • Gtk-WARNING org.gnome.SessionManager not provided by any ,service file

    hello,
    I get this warning when I run gedit :
    Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
    gedit works fine but I am just afraid that this might cause other bigger problems .
    thanks

    [offtopic]great replies so far[/offopic]
    If you're running a gnome-session and you get that warning, then something might be wrong, but if you're running gedit without gnome it's kinda obvious why there is no session manager.
    It says it's trying to call the Inhibit method. That's probably to buy some time from the session manager at the end of the session in case there are any unsaved documents (and maybe other user data such as preferences). So if you close gedit yourself (or at least save your changes) before logging out/shutting down, you should be fine. (gedit will probably try to save changes when it gets SIGTERM anyway, but if SIGKILL follows very quickly, that can fail.)
    Last edited by Raynman (2014-02-15 09:21:00)

  • Gtk-WARNING **: cannot open display [Solved]

    Hello,
    I've just installed openbox and experimenting with it. But I'am unable to run any panel. Ive already install lxpanel, fbpanel, plank, but each time I try to launch them from the terminal I get the same error massages. Firefox, leafpad, terminal, all launch properly, only the panels I can't make them run. Any idea how to solve this?
    [mak@myhost ~]$ fbpanel
    (fbpanel:688): Gtk-WARNING **: cannot open display:
    [mak@myhost ~]$
    [mak@myhost ~]$ plank
    [INFO 19:09:21.484514] [AbstractMain:170] Plank version: 0.7.1
    [INFO 19:09:21.484627] [AbstractMain:171] Kernel version: 3.17.6-1-ARCH
    [INFO 19:09:21.484704] [AbstractMain:172] GLib version: 2.42.1
    [INFO 19:09:21.484784] [AbstractMain:173] GTK+ version: 3.14.6
    [INFO 19:09:21.484850] [AbstractMain:175] + HiDPI support enabled
    [INFO 19:09:21.484915] [AbstractMain:177] Wnck version: 3.4.9
    [INFO 19:09:21.485001] [AbstractMain:178] Cairo version: 1.14.0
    [INFO 19:09:21.485081] [AbstractMain:179] Pango version: 1.36.8
    Unable to init server: Could not connect: Connection refused
    [WARN 19:09:21.493039] [Gtk] cannot open display:
    [mak@myhost ~]$
    Last edited by jmak (2014-12-19 00:25:02)

    karol wrote:
    The display should be set on its own. It's
    $ echo $DISPLAY
    :0
    for my first X server and
    $ echo $DISPLAY
    :1
    for the other one I'm running.
    How exactly do you start X?
    I start manually,
    startx

  • How to compile and install glib and gtk+?

    Hi,
    I am trying to "configure", a "make", and "sudo make install" on the package glib-2.26.0.
    I type ./configure which works fine but then when I type 'make' it gets to a certain point and then gives the following error message:
    *#error GNU libiconv not in use but included iconv.h is from libiconv*
    What does this mean? I've already installed iconv under /usr/bin so what exactly is going on here?
    Thanks in advance,
    Mark
    PS: I originally had Leopard on my machine, and now I have Snow Leopard; does that mean that I have to rebuild every package from scratch?? Could this be causing the problem?

    Actually this is not necessarily the wrong place to ask such a question (or was it moved to the unix forum? My head hurts). In my experience, gtk+2 and the associated software is not completely trivial to compile on OS X and to get working properly. I make fairly heavy daily use of it. I let fink do this for me.
    One immediate suggestion: Try not to put this stuff in /usr/bin. If you can put it in /usr/local, or using fink, put it in /sw, or macports (a fink alternative some prefer), in /opt/local, it has the advantage of (a) not clobbering anything distributed with OS X, and (b) won't get clobbered by OS X updates.
    I maintain precompiled versions of gtk+2 and all that other stuff, informally, to be installed via fink if you are interested.
    If so, start here: My pre-compiled packages
    Use the 64-bit version if you are able to.

  • Firefox 8.01 on Debian 6.03 GTK warning problems

    Folks: just installed Firefox 8.01 on Debian 6.03/xfce. I decompressed the tar.gz file to /usr/local/bin, and typed:
    kcredden@equuleus:/usr/local/bin/firefox$ ./firefox
    (process:2466): Gtk-WARNING **: This process is currently running setuid or setgid.
    This is not a supported use of GTK+. You must create a helper
    program instead. For further details, see:
    http://www.gtk.org/setuid.html
    Refusing to initialize GTK+.
    kcredden@equuleus:/usr/local/bin/firefox$ WARNING: Application calling GLX 1.3 function "glXCreatePixmap" when GLX 1.3 is not supported! This is an application bug!
    WARNING: Application calling GLX 1.3 function "glXDestroyPixmap" when GLX 1.3 is not supported! This is an application bug!
    I'm getting a similar error in Thunderbird, but it runs. I'll post info about it in the tbird forums.

    You may be infected with malware.
    Do a malware check with some malware scanning programs.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br />
    <br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    * "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked
    * https://support.mozilla.com/kb/Searches+are+redirected+to+another+site
    If using the above listed scanners does not fix it or if you are blocked from installing those scanners then ask advice on one of the forums that specialize in malware removal mentioned in the <i>Popups_not_blocked</i> article.
    * "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • [SOLOVED]Gtk-WARNING **: Overriding tab label for notebook

    My issue: VPN tab label is missing when I configure VPN in nm-connection-editor gui.
    Here is my log:
    startx >startx.log 2>&1
    (gnome-control-center:1145): Gtk-WARNING **: Overriding tab label for notebook
    Gkr-Message: secret service operation failed: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
    Window manager warning: Log level 8: meta_window_raise: assertion `!window->override_redirect' failed
    Any ideas?
    Btw: My gnome-shell 3.4.2-1 (gnome), 3.6.2-1-ARCH x86_64
    Last edited by hilojack (2012-11-04 15:16:46)

    I shouldn't have exec gnome-keyring for the second time,because gnome-keyring is a default startup program in gnome-session-properties.
    $ cat .xinitrc
    # Start GNOME Keyring
    source /etc/X11/xinit/xinitrc.d/30-dbus
    eval $(/usr/bin/gnome-keyring-daemon --start --components=gpg,pkcs11,secrets,ssh)
    # You probably need to do this too:
    export SSH_AUTH_SOCK
    export GPG_AGENT_INFO
    xport GNOME_KEYRING_CONTROL
    export GNOME_KEYRING_PID
    exprot GNOME_KEYRING_SOCKET
    It works well as soon as I uncommented the Contents above.

  • Gtk-WARNING

    Why in common user i can run gedit (or another appl graphic) and in mode root i cant?
    I connect Solaris with Putty using Xming in client Windows.
    The message in root mode:
    (gedit:1254): Gtk-WARNING **: cannot open display:
    I've modified the ssh configuration file:
    # pwd
    /etc/ssh
    # cat sshd_config | grep X11
    # X11 tunneling options
    X11Forwarding yes
    X11DisplayOffset 10
    X11UseLocalhost yes
    The most curious is who on another client machine that normally runs Solaris server via X11.
    And it gets worse: this client machine that is crashing the X11 in server Solaris 'X', normally runs on a Solaris machine 'Y'.

    You have to have X11 running and the DISPLAY environment variable set in your shell in order to run any program that uses x11 graphics. Try running your command from an xterm started via your X11 application.

  • KDE 4.4: GTK Styles and Fonts missing [SOLVED]

    Hi,
    I use qtcurve for kde/gtk uniformity; after the upgrade to KDE 4.4 the styles look fine, but System Settings->Appearance-GTK Styles and Fonts tab is missing. Is it OK ?
    Last edited by Llama (2010-02-11 15:38:27)

    Llama wrote:Yes, it's gtk-qt-engine. Thanks! There has never been any trouble with FF, though.
    Good to know. Just warned you about this:
    http://bbs.archlinux.org/viewtopic.php?id=90813
    This is a common bug and I have experienced it too.

  • [Solved] Gtk-WARNING **: Locale not supported by C library

    Hi all,
    Since the gnome 3.2 update I have the following error while working on the terminal:
    "Gtk-WARNING **: Locale not supported by C library"
    I have follow the wiki but nothing change, any idea?
    Regards,
    Last edited by sweetthdevil (2011-10-07 16:48:52)

    fixed - the problem was with the system settings > Region and language
    All needed to be set there...

  • Gtk-WARNING **: Locale not supported by C library.

    Hi, I'm pretty new to Linux and I could really use some help on this one! This is my second Arch install. After the first, which I installed to learn about Linux,  I figured there'd be more user-friendly and complete distro's (like SUSE, Debian, etc.). I was wrong
    Anyway, this is my second install, but ever since I installed it (and X11, ati-fglrx, gnome and gnome-extra) certain apps give my this error when run from a console. All of them start and work perfectly, except one: gnome-keyboard-properties. I fails to run and starts a bug buddy report window, while outputting the following messages on the console:
    [***@*** ~]$ gnome-keyboard-properties
    (gnome-keyboard-properties:4727): Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale.
    (gnome-keyboard-properties:4727): Gdk-WARNING **: locale not supported by C library
    (gnome_segv2:4728): Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale.
    (gnome_segv2:4728): Gdk-WARNING **: locale not supported by C library
    (bug-buddy:4729): Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale.
    (bug-buddy:4729): Gdk-WARNING **: locale not supported by C library
    ** (bug-buddy:4729): WARNING **: Couldn't load icon for Open Folder
    Failed to read a valid object file image from memory.
    I've generated the en_US.utf8 locale using locale-gen, edited rc.conf accordingly and I used the hwd-generated keyboard entry for xorg.conf that worked on my previous install.
    I've been trying things with my xorg.conf. I used to leave XkbLayout and XkbVariant empty, like in the hwd-generated example, but now I'm using this:
    Section "InputDevice"
    Identifier "Cherry"
    Driver "keyboard"
    Option "CoreKeyboard"
    Option "XkbRules" "xorg"
    Option "XkbModel" "pc105"
    Option "XkbLayout" "us"
    Option "XkbVariant" "intl"
    EndSection
    This has a noticable effect: both ' and " require an extra spacebar hit. Pretty anoying, but this at least shows is had effect on gnome. Also, the Keyboard Indicator Applet shows the layout correctly.
    I've tried other things, like uninstalling gnome and gnome-extra using pacman -Rnd as to leave no trace, and reïnstalling it. And I can't find anything on Google...
    PS I'm running this on an athlon64 with a radeon x700, ftp-install from a 0.7.2 i686 base CD.

    I've done a total reïnstall - again. gnome-keyboard-properties works again! However, I still get these errors when opening Gtk-apps:
    (gksu:4669): Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale.
    I've left xorg.conf's XkbLayout emply, which defaults to "us". There's a related option called "KEYMAP" in rc.conf, which has "us" as default, too. As I said, gnome-keyboard-properties now works and correctly displays "Generic 105-key.." etc. and "U.S. English".
    I think I now have /etc/hosts' loopback correctly setup:
    127.0.0.1 localhost.localdomain myhostname
    192.168.x.xxx myhostname.localdomain myhostname
    I'm really out of ideas here. Does anyone know whether this is normal or harmful?
    [[ EDIT ]]
    Solved. I actually forgot to generate the locales this time. I don't know what it was last time...
    Last edited by ppvg (2007-02-05 21:21:21)

  • (gnome-session:4336): Gtk-WARNING **: cannot open display.

    I'm having troble getting gnome running on my system.
    When I'm running gnome-session Im getting (gnome-session:4336): Gtk-WARNING **: cannot open display.
    The exact same setup will allow me to run xfce4 without any problem.
    I did manage to start gnome once with gdm, but then nothing but rightclick on the mouse and the desktop icons would work, and after that one time both gdm and gnome wont work.
    I just did a base install of arch 0.7, xorg, gnome, nvidia and sound drivers.
    Also, if I put exec gnome-session in my .xinitrc file I get a Fatal server error: Requested entity already in use.

    the .xinitrc it is executed by the X window system after the X Server is started
    if you run gnome-session from a console shell and there is no X server started, it cannot open the display...
    the X server is normally started during "startx" or "xinit"
    Last edited by danielsoft (2008-04-03 10:18:40)

  • Installing 3.6.8 get error (firefox-bin:15570): Gtk-WARNING **: Whoever translated default:LTR did so wrongly.

    Get info to install fromfirefox 2.0. to3.6.8
    Down ok, delete folders "firefox"
    command tar ok
    script firefox goes wrong
    (firefox-bin:15570): Gtk-WARNING **: Whoever translated default:LTR did so wrongly.
    What isproblem?

    Does your Linux distro meet Firefox 3.6 system requirements?
    http://www.mozilla.com/en-US/firefox/system-requirements.html
    Most Linux distros from 2008 and earlier have an older GTK+ package than what Firefox 3+ versions require. It is usually easiest to install a newer version of Linux than it is to merely update the GTK+ package.
    ''Any chance you are running Asus Xandros on a EeePC?''

  • UK Keyboard Map / Gtk-WARNING

    Hi,
    I'm busy configuring an Arch/ratpoison install and am finding that I repeatedly get this same message while running programs. It does not seem to affect the way they function, but it is highly annoying. I also can't seem to figure out how to change the X keyboard layout into the UK style, and thought maybe the two problems were related (or not). Any suggestions? Thanks
    Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale.
    Regards,
    Chris

    To change the X keyboard layout to the UK style, use
    setxkbmap gb
    Regarding your locale warning, have you read this wiki page?

  • How to apply XP and GTK look and feel??

    hi..
    please tell me how can I apply XP and GTK look and Feel in my Swing applications??

    hi
    Please visit
    http://www.l2fprod.com/
    Ashish

Maybe you are looking for