LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-22-2005, 08:53 AM   #1
Lobais
Member
 
Registered: Jan 2004
Location: Denmark
Distribution: Fedora Core 6
Posts: 224

Rep: Reputation: 30
Java GTK+ plaf


Hi, I've installed java 1.5.0, and I've written a very small swing program as a test. I've tried to use the java GTK+ lookandfeel, but when I tries to run it, it gives me the following error.
Is it me, who has forgot to install some thing, or is the java GTK just not quite ready for use?
Code:
[thomas@ahle java]$ /bin/java SwingApplication
/usr/share/themes/Glider/gtk-2.0/gtkrc:125: Engine "smooth" is unsupported, ignoring
/usr/share/themes/Glider/gtk-2.0/gtkrc:197: Engine "smooth" is unsupported, ignoring
/usr/share/themes/Glider/gtk-2.0/gtkrc:221: Engine "smooth" is unsupported, ignoring
/usr/share/themes/Glider/gtk-2.0/gtkrc:275: Engine "smooth" is unsupported, ignoring
/usr/share/themes/Glider/gtk-2.0/gtkrc:327: Engine "smooth" is unsupported, ignoring
/usr/share/themes/Glider/gtk-2.0/gtkrc:352: Engine "smooth" is unsupported, ignoring
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 0
        at com.sun.java.swing.plaf.gtk.GTKEngine._paintFocus(GTKEngine.java:593)        at com.sun.java.swing.plaf.gtk.GTKEngine.paintFocus(GTKEngine.java:575)
        at com.sun.java.swing.plaf.gtk.GTKPainter.paintButtonBackground(GTKPainter.java:405)
        at com.sun.java.swing.plaf.gtk.GTKPainter.paintButtonBackground(GTKPainter.java:323)
        at javax.swing.plaf.synth.SynthButtonUI.paintBackground(SynthButtonUI.java:184)
        at javax.swing.plaf.synth.SynthButtonUI.update(SynthButtonUI.java:157)
        at javax.swing.JComponent.paintComponent(JComponent.java:740)
        at javax.swing.JComponent.paint(JComponent.java:1003)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JLayeredPane.paint(JLayeredPane.java:559)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4930)        at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4883)
        at javax.swing.JComponent._paintImmediately(JComponent.java:4826)
        at javax.swing.JComponent.paintImmediately(JComponent.java:4633)
        at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:451)        at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:114)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 0
        at com.sun.java.swing.plaf.gtk.GTKEngine._paintFocus(GTKEngine.java:593)        at com.sun.java.swing.plaf.gtk.GTKEngine.paintFocus(GTKEngine.java:575)
        at com.sun.java.swing.plaf.gtk.GTKPainter.paintButtonBackground(GTKPainter.java:405)
        at com.sun.java.swing.plaf.gtk.GTKPainter.paintButtonBackground(GTKPainter.java:323)
        at javax.swing.plaf.synth.SynthButtonUI.paintBackground(SynthButtonUI.java:184)
        at javax.swing.plaf.synth.SynthButtonUI.update(SynthButtonUI.java:157)
        at javax.swing.JComponent.paintComponent(JComponent.java:740)
        at javax.swing.JComponent.paint(JComponent.java:1003)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JLayeredPane.paint(JLayeredPane.java:559)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4930)        at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4883)
        at javax.swing.JComponent._paintImmediately(JComponent.java:4826)
        at javax.swing.JComponent.paintImmediately(JComponent.java:4633)
        at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:451)        at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:114)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 0
        at com.sun.java.swing.plaf.gtk.GTKEngine._paintFocus(GTKEngine.java:593)        at com.sun.java.swing.plaf.gtk.GTKEngine.paintFocus(GTKEngine.java:575)
        at com.sun.java.swing.plaf.gtk.GTKPainter.paintButtonBackground(GTKPainter.java:405)
        at com.sun.java.swing.plaf.gtk.GTKPainter.paintButtonBackground(GTKPainter.java:323)
        at javax.swing.plaf.synth.SynthButtonUI.paintBackground(SynthButtonUI.java:184)
        at javax.swing.plaf.synth.SynthButtonUI.update(SynthButtonUI.java:157)
        at javax.swing.JComponent.paintComponent(JComponent.java:740)
        at javax.swing.JComponent.paint(JComponent.java:1003)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JLayeredPane.paint(JLayeredPane.java:559)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4930)        at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4883)
        at javax.swing.JComponent._paintImmediately(JComponent.java:4826)
        at javax.swing.JComponent.paintImmediately(JComponent.java:4633)
        at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:451)        at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:114)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 0
        at com.sun.java.swing.plaf.gtk.GTKEngine._paintFocus(GTKEngine.java:593)        at com.sun.java.swing.plaf.gtk.GTKEngine.paintFocus(GTKEngine.java:575)
        at com.sun.java.swing.plaf.gtk.GTKPainter.paintButtonBackground(GTKPainter.java:405)
        at com.sun.java.swing.plaf.gtk.GTKPainter.paintButtonBackground(GTKPainter.java:323)
        at javax.swing.plaf.synth.SynthButtonUI.paintBackground(SynthButtonUI.java:184)
        at javax.swing.plaf.synth.SynthButtonUI.update(SynthButtonUI.java:157)
        at javax.swing.JComponent.paintComponent(JComponent.java:740)
        at javax.swing.JComponent.paint(JComponent.java:1003)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JLayeredPane.paint(JLayeredPane.java:559)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4930)        at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4883)
        at javax.swing.JComponent._paintImmediately(JComponent.java:4826)
        at javax.swing.JComponent.paintImmediately(JComponent.java:4633)
        at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:451)        at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:114)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 0
        at com.sun.java.swing.plaf.gtk.GTKEngine._paintFocus(GTKEngine.java:593)        at com.sun.java.swing.plaf.gtk.GTKEngine.paintFocus(GTKEngine.java:575)
        at com.sun.java.swing.plaf.gtk.GTKPainter.paintButtonBackground(GTKPainter.java:405)
        at com.sun.java.swing.plaf.gtk.GTKPainter.paintButtonBackground(GTKPainter.java:323)
        at javax.swing.plaf.synth.SynthButtonUI.paintBackground(SynthButtonUI.java:184)
        at javax.swing.plaf.synth.SynthButtonUI.update(SynthButtonUI.java:157)
        at javax.swing.JComponent.paintComponent(JComponent.java:740)
        at javax.swing.JComponent.paint(JComponent.java:1003)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JLayeredPane.paint(JLayeredPane.java:559)
        at javax.swing.JComponent.paintChildren(JComponent.java:840)
        at javax.swing.JComponent.paint(JComponent.java:1012)
        at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4930)        at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4883)
        at javax.swing.JComponent._paintImmediately(JComponent.java:4826)
        at javax.swing.JComponent.paintImmediately(JComponent.java:4633)
        at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:451)        at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:114)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
[thomas@ahle java]$
 
Old 09-08-2006, 11:59 PM   #2
kmtaylor
LQ Newbie
 
Registered: Sep 2006
Posts: 1

Rep: Reputation: 0
Hi there, I had exactly the same problem running several java programmes and found that the problem has something to do with the "Smooth" engine. Changing my GTK theme to something else fixed the problem. I have no idea what actually causes the problem, but for me changing themes is an easy workaround.
 
Old 09-10-2006, 11:53 AM   #3
Lobais
Member
 
Registered: Jan 2004
Location: Denmark
Distribution: Fedora Core 6
Posts: 224

Original Poster
Rep: Reputation: 30
Fixed in java 1.6

In the new java 1.6 beta, everything works good.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Freerock uninstall stole GTK looking for up-to-date pango, atk, gtk, glib and xft tgz Oholiab Slackware 8 09-18-2005 11:57 AM
GTK source install doesn't give gtk-config Feebles Linux - Software 4 06-15-2005 12:51 PM
cant find gtk-config file or gtk-devel to install happychappy Linux - Software 2 02-16-2005 12:46 AM
compiling gaim/ gtk error (two versions of gtk) webazoid Linux - Software 0 07-06-2004 06:05 PM
Bluecurve plaf Lobais Linux - Software 0 03-19-2004 07:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration