[ale] OT: InternalError when using Java's JTree.
Michael D. Hirsch
mhirsch at nubridges.com
Wed Feb 12 09:14:22 EST 2003
On Tuesday 11 February 2003 07:39 pm, Joe wrote:
> Denny Chambers <dchambers at bugfixer.net> writes:
> > I have never seen this. Can you publish some example code, or at least
> > explain more about the operation that you were trying to do when this
> > exception occurred.
>
> Yep. Pretty minimal: make a JTree, put it in a container, paint it,
> Boom! Code follows. OS is Linux kernel 2.4.19. Distro is Slack. JVM
> and all Java tools are Sun's latest J2SE 1.4.1 (though I tried with
> 1.4.0 too, no joy). Display is pretty ordinary: 800x600x8bits.
>
> Thanks for looking.
This is strange. I have no problems running and compiling with both the
1.4 jdk and the 1.3.1 jdk. It compiles and runs without problem.
--Michael
> -- Joe Knapka
>
> ---cut here---
> import java.awt.*;
> import java.awt.event.*;
> import javax.swing.*;
> import javax.swing.tree.*;
>
> public class Junk {
>
> public static void main(String[] args) {
> new Junk().go();
> }
>
> void go() {
> JFrame fr = new JFrame("JTree test.");
> fr.getContentPane().setLayout(new FlowLayout());
>
> JTree jt = new JTree();
> fr.getContentPane().add(jt);
>
> fr.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
> fr.pack();
> fr.setVisible(true);
> }
> }
> ---cut here---
>
> And for a hefty dose of additional fun and excitement, we bring you....
> the backtrace!
>
> java.lang.InternalError: not implemented yet
> at sun.awt.X11SurfaceData.getRaster(X11SurfaceData.java:155)
> at sun.java2d.loops.OpaqueCopyAnyToArgb.Blit(CustomComponent.java:67)
> at
> sun.java2d.loops.GraphicsPrimitive.convertFrom(GraphicsPrimitive.java:45
>2) at sun.java2d.loops.MaskBlit$General.MaskBlit(MaskBlit.java:186) at
> sun.java2d.loops.Blit$GeneralMaskBlit.Blit(Blit.java:170)
> at sun.java2d.pipe.DrawImage.blitSurfaceData(DrawImage.java:627)
> at sun.java2d.pipe.DrawImage.renderSurfaceData(DrawImage.java:355)
> at
> sun.java2d.pipe.DrawImage.clipAndRenderSurfaceData(DrawImage.java:333)
> at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:64)
> at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:48)
> at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:715)
> at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:2782)
> at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:2772)
> at
> javax.swing.plaf.metal.MetalIconFactory$FolderIcon16.paintIcon(MetalIcon
>Factory.java:1417) at
> javax.swing.plaf.basic.BasicLabelUI.paint(BasicLabelUI.java:152) at
> javax.swing.plaf.ComponentUI.update(ComponentUI.java:142)
> at javax.swing.JComponent.paintComponent(JComponent.java:537)
> at javax.swing.JComponent.paint(JComponent.java:804)
> at
> javax.swing.tree.DefaultTreeCellRenderer.paint(DefaultTreeCellRenderer.j
>ava:397) at
> javax.swing.CellRendererPane.paintComponent(CellRendererPane.java:134)
> at javax.swing.plaf.basic.BasicTreeUI.paintRow(BasicTreeUI.java:1380) at
> javax.swing.plaf.basic.BasicTreeUI.paint(BasicTreeUI.java:1171) at
> javax.swing.plaf.metal.MetalTreeUI.paint(MetalTreeUI.java:143) at
> javax.swing.plaf.ComponentUI.update(ComponentUI.java:142)
> at javax.swing.JComponent.paintComponent(JComponent.java:537)
> at javax.swing.JComponent.paint(JComponent.java:804)
> at
> javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4735) at
> javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4688) at
> javax.swing.JComponent._paintImmediately(JComponent.java:4632) at
> javax.swing.JComponent.paintImmediately(JComponent.java:4464) at
> javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410) at
> javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEve
>ntQueueUtilities.java:117) at
> java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178) at
> java.awt.EventQueue.dispatchEvent(EventQueue.java:443)
> at
> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThrea
>d.java:191) at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.
>java:144) at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130) at
> java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
>
> > Denny
> >
> > Joe wrote:
> > >Before I start trying to debug Sun's lowlevel AWT code { ;-) },
> > >I thought I'd ask: has anyone ever seen a
> > >java.lang.InternalError: Not implemented yet
> > > at sun.awt.X11SurfaceData.getRaster(X11SurfaceData.java:155)
> > >when using the javax.swing.tree stuff? Google is no help
> > >thus far. I guess it works fine almost everywhere...
> > >Oh, BTW, I'm developing under Linux (excellent!) for deployment
> > >under Win2K (bogus!); I've not tested the code on Windows
> > >yet, though I'll do so soon.
> > >
> > >Thanks,
> > >
> > >-- Joe Knapka
> > >_______________________________________________
> > >Ale mailing list
> > >Ale at ale.org
> > >http://www.ale.org/mailman/listinfo/ale
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list