This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
installing and using netbeans, each time java has to draw a combo box control, on the terminal I can read the following errors: (<unknown>:7427): Gtk-WARNING **: Attempting to add a widget with type GtkButton to a GtkComboBoxEntry (need an instance of GtkEntry or of a subclass) (<unknown>:7427): Gtk-CRITICAL **: gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed (<unknown>:7427): Gtk-CRITICAL **: gtk_paint_box: assertion `style->depth == gdk_drawable_get_depth (window)' failed (<unknown>:7427): Gtk-CRITICAL **: gtk_paint_box: assertion `style->depth == gdk_drawable_get_depth (window)' failed andrea@tre21:~/netbeans-6.0beta1/bin$ ./netbeans (<unknown>:7582): Gtk-WARNING **: Attempting to add a widget with type GtkButton to a GtkComboBoxEntry (need an instance of GtkEntry or of a subclass) (<unknown>:7582): Gtk-CRITICAL **: gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed (<unknown>:7582): Gtk-CRITICAL **: gtk_paint_box: assertion `style->depth == gdk_drawable_get_depth (window)' failed (<unknown>:7582): Gtk-CRITICAL **: gtk_paint_box: assertion `style->depth == gdk_drawable_get_depth (window)' failed the combo box controls are not well drawn... the button is missing... netbeans 5.5.1 works fine. but it has a different appearance (I think it's drawn with swing theme, while netbeans 6 beta 1 uses gtk theme) thank you
Created attachment 50902 [details] this is how I see the combo box control with 6 beta 1
It looks like problem in Swing, in their java GTK L&F. Please tell me your java -version and exact OS version. Do you use 64 bit version of system and java? Is this problem specific to Ubuntu 7.10 gutsy gibbon? Btw, you can run with old UI if you run netbeans with --ui javax.swing.plaf.metal.MetalLookAndFeel Passing to Marek...
my java version is: java version "1.6.0_03" Java(TM) SE Runtime Environment (build 1.6.0_03-b05) Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing) I'm using Ubuntu 7.10 RC i386, my kernel is 2.6.22-14-generic (32 bit). I have the following java packages installed from ubuntu repositories: sun-java6-bin sun-java6-demo sun-java6-doc sun-java6-fonts sun-java6-jdk sun-java6-jre sun-java6-plugin all 6-03-0ubuntu2 version. I have not another OS to try with, so I don't know if the problem is specific to Ubuntu 7.10... I have tryed netbeans milestone 9 on feisty and it used to work fine with gtk UI... If you need further information... ask and I'll send you! bye
Confirmed. I passed this to GTK L&F maintainer in Swing to investigate it. It looks like some bug/change in GTK libs on Gutsy. I will update status. For now closing as we cannot handle/workaround this problem in NetBeans. It is reproducible with ComboBoxDemo.java from http://java.sun.com/docs/books/tutorial/uiswing/components/combobox.html. Thanks for report.
Sorry but I can't reproduce this bug with this link: http://java.sun.com/docs/books/tutorial/uiswing/components/combobox.html It uses the metal look and feel on my system! But with netbeans I can! thank you
I've just seen that I have the same problem if I launch Sun Java 6 Web Start from Applications-->Internet... The combo box on top left in the java cache viewer is corrupted... (as in my previous screenshot) I think I will file a bug at Ubuntu developers! bye
There is a workaround for NB. Just start NB with the option "--laf javax.swing.plaf.metal.MetalLookAndFeel" or add this option to netbeans_default_options in NB_install_dir/etc/netbeans.conf file.
It's a swing bug have a look at http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6624717 and vote for it
Created attachment 59855 [details] patch for openjdk to fix this
*** Issue 137208 has been marked as a duplicate of this issue. ***