This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Jython and gij-4.0
- From: Sandor Bodo-Merle <sbodomerle at gmail dot com>
- To: java at gcc dot gnu dot org
- Date: Sun, 15 May 2005 15:49:46 +0200
- Subject: Jython and gij-4.0
- Reply-to: Sandor Bodo-Merle <sbodomerle at gmail dot com>
Hi
Using jython on top of gij-4.0 (gcc version 4.0.1 20050508
(prerelease) (Debian 4.0.0-6) ) i noticed that gij-4.0 has a different
behaviour than the jdk-1.5 from sun. Running the below code snippet
and closing the window from the window manager gave me this error. I
think that the peer object was destroyed. While using JDK-1.5 i can
close the window from the window manager and call its show() method
again.
Sanyi
sbodo@bucimaci:~$ jython
*sys-package-mgr*: processing new jar, '/usr/share/java/libgcj-4.0.1.jar'
Jython 2.1 on java1.4.2 (JIT: null)
Type "copyright", "credits" or "license" for more information.
>>> credits
Jython is maintained by the Jython developers (www.jython.org).
>>> import javax.swing as swing
>>> win = swing.JFrame('Jython on GIJ4')
>>> win.size = (100, 100)
>>> win.show()
>>>
(.:8315): GLib-GObject-WARNING **: invalid uninstantiatable type
`gint' in cast to `GtkWidget'
(.:8315): Gtk-CRITICAL **: gtk_widget_hide: assertion `GTK_IS_WIDGET
(widget)' failed
>>> win.show()
(.:8315): GLib-GObject-WARNING **: invalid unclassed pointer in cast
to `GtkWindow'
(.:8315): Gtk-CRITICAL **: gtk_window_move: assertion `GTK_IS_WINDOW
(window)' failed
(.:8315): GLib-GObject-WARNING **: invalid unclassed pointer in cast
to `GtkWidget'
(.:8315): GLib-GObject-WARNING **: invalid unclassed pointer in cast
to `GtkWidget'