Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (416)
games submitted by our members
Games in WIP (306)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Accelerated Canvas & Swing Components  (Read 688 times)
0 Members and 1 Guest are viewing this topic.
Offline kevglass
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Posted 2004-02-29 17:11:01 »

I've got a window. In it I have a Canvas which displays an accelerated game area. Now, around it I'd like to put swing components in panels (which arn't accelerated).

However, when I add a text area and try to put some text in it I get the following error. Almost seems like the text area is trying to draw to the accelerated area.. wierd. Even so, does anyone know if this has been implemented yet and/or if this is something where I've made a mistake...

Cheers for any help,

Kev

EDIT: SDK1.4.2_03 btw.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55  
56  
57  
58  
59  
60  
61  
62  
63  
64  
65  
66  
67  
68  
69  
70  
71  
72  
73  
74  
75  
76  
77  
78  
79  
80  
81  
82  
83  
84  
85  
86  
87  
88  
89  
90  
91  
92  
93  
94  
95  
96  
97  
98  
99  
100  
101  
102  
103  
104  
105  
106  
107  
108  
109  
110  
111  
112  
113  
114  
115  
116  
117  
118  
119  
120  
121  
java.lang.InternalError: not implemented yet
      at sun.awt.windows.Win32OffScreenSurfaceData.getRaster(Unknown Source)
      at sun.java2d.loops.OpaqueCopyAnyToArgb.Blit(Unknown Source)
      at sun.java2d.loops.GraphicsPrimitive.convertFrom(Unknown Source)
      at sun.java2d.loops.MaskBlit$General.MaskBlit(Unknown Source)
      at sun.java2d.loops.MaskFill$General.MaskFill(Unknown Source)
      at sun.java2d.loops.DrawGlyphList$General.DrawGlyphList(Unknown Source)
      at sun.java2d.pipe.SolidTextRenderer.drawGlyphList(Unknown Source)
      at sun.java2d.pipe.GlyphListPipe.drawChars(Unknown Source)
      at sun.java2d.SunGraphics2D.drawChars(Unknown Source)
      at javax.swing.text.Utilities.drawTabbedText(Unknown Source)
      at javax.swing.text.PlainView.drawUnselectedText(Unknown Source)
      at javax.swing.text.PlainView.drawElement(Unknown Source)
      at javax.swing.text.PlainView.drawLine(Unknown Source)
      at javax.swing.text.PlainView.paint(Unknown Source)
      at javax.swing.plaf.basic.BasicTextUI$RootView.paint(Unknown Source)
      at javax.swing.plaf.basic.BasicTextUI.paintSafely(Unknown Source)
      at javax.swing.plaf.basic.BasicTextUI.paint(Unknown Source)
      at javax.swing.plaf.basic.BasicTextUI.update(Unknown Source)
      at javax.swing.JComponent.paintComponent(Unknown Source)
      at javax.swing.JComponent.paint(Unknown Source)
      at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source)
      at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
      at javax.swing.JComponent._paintImmediately(Unknown Source)
      at javax.swing.JComponent.paintImmediately(Unknown Source)
      at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
      at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
      at java.awt.event.InvocationEvent.dispatch(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)
java.lang.InternalError: not implemented yet
      at sun.awt.windows.Win32OffScreenSurfaceData.getRaster(Unknown Source)
      at sun.java2d.loops.OpaqueCopyAnyToArgb.Blit(Unknown Source)
      at sun.java2d.loops.GraphicsPrimitive.convertFrom(Unknown Source)
      at sun.java2d.loops.MaskBlit$General.MaskBlit(Unknown Source)
      at sun.java2d.loops.MaskFill$General.MaskFill(Unknown Source)
      at sun.java2d.loops.DrawGlyphList$General.DrawGlyphList(Unknown Source)
      at sun.java2d.pipe.SolidTextRenderer.drawGlyphList(Unknown Source)
      at sun.java2d.pipe.GlyphListPipe.drawChars(Unknown Source)
      at sun.java2d.SunGraphics2D.drawChars(Unknown Source)
      at javax.swing.text.Utilities.drawTabbedText(Unknown Source)
      at javax.swing.text.PlainView.drawUnselectedText(Unknown Source)
      at javax.swing.text.PlainView.drawElement(Unknown Source)
      at javax.swing.text.PlainView.drawLine(Unknown Source)
      at javax.swing.text.PlainView.paint(Unknown Source)
      at javax.swing.plaf.basic.BasicTextUI$RootView.paint(Unknown Source)
      at javax.swing.plaf.basic.BasicTextUI.paintSafely(Unknown Source)
      at javax.swing.plaf.basic.BasicTextUI.paint(Unknown Source)
      at javax.swing.plaf.basic.BasicTextUI.update(Unknown Source)
      at javax.swing.JComponent.paintComponent(Unknown Source)
      at javax.swing.JComponent.paint(Unknown Source)
      at javax.swing.JComponent.paintChildren(Unknown Source)
      at javax.swing.JComponent.paint(Unknown Source)
      at javax.swing.JViewport.paint(Unknown Source)
      at javax.swing.JComponent.paintChildren(Unknown Source)
      at javax.swing.JComponent.paint(Unknown Source)
      at javax.swing.JComponent.paintChildren(Unknown Source)
      at javax.swing.JComponent.paint(Unknown Source)
      at javax.swing.JComponent.paintChildren(Unknown Source)
      at javax.swing.JComponent.paint(Unknown Source)
      at javax.swing.JComponent.paintChildren(Unknown Source)
      at javax.swing.JComponent.paint(Unknown Source)
      at javax.swing.JLayeredPane.paint(Unknown Source)
      at javax.swing.JComponent.paintChildren(Unknown Source)
      at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source)
      at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
      at javax.swing.JComponent.paint(Unknown Source)
      at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
      at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
      at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
      at java.awt.Container.paint(Unknown Source)
      at sun.awt.RepaintArea.paint(Unknown Source)
      at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
      at java.awt.Component.dispatchEventImpl(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Window.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)
java.lang.InternalError: not implemented yet
      at sun.awt.windows.Win32OffScreenSurfaceData.getRaster(Unknown Source)
      at sun.java2d.loops.OpaqueCopyAnyToArgb.Blit(Unknown Source)
      at sun.java2d.loops.GraphicsPrimitive.convertFrom(Unknown Source)
      at sun.java2d.loops.MaskBlit$General.MaskBlit(Unknown Source)
      at sun.java2d.loops.MaskFill$General.MaskFill(Unknown Source)
      at sun.java2d.loops.DrawGlyphList$General.DrawGlyphList(Unknown Source)
      at sun.java2d.pipe.SolidTextRenderer.drawGlyphList(Unknown Source)
      at sun.java2d.pipe.GlyphListPipe.drawChars(Unknown Source)
      at sun.java2d.SunGraphics2D.drawChars(Unknown Source)
      at javax.swing.text.Utilities.drawTabbedText(Unknown Source)
      at javax.swing.text.PlainView.drawUnselectedText(Unknown Source)
      at javax.swing.text.PlainView.drawElement(Unknown Source)
      at javax.swing.text.PlainView.drawLine(Unknown Source)
      at javax.swing.text.PlainView.paint(Unknown Source)
      at javax.swing.plaf.basic.BasicTextUI$RootView.paint(Unknown Source)
      at javax.swing.plaf.basic.BasicTextUI.paintSafely(Unknown Source)
      at javax.swing.plaf.basic.BasicTextUI.paint(Unknown Source)
      at javax.swing.plaf.basic.BasicTextUI.update(Unknown Source)
      at javax.swing.JComponent.paintComponent(Unknown Source)
      at javax.swing.JComponent.paint(Unknown Source)
      at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source)
      at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
      at javax.swing.JComponent._paintImmediately(Unknown Source)
      at javax.swing.JComponent.paintImmediately(Unknown Source)
      at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
      at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
      at java.awt.event.InvocationEvent.dispatch(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)

Offline kevglass
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Reply #1 - Posted 2004-02-29 18:25:03 »

Argh, found it.. this problem above was cause by setting

sun.java2d.accthreshold=0

Kev

Offline Java Cool Dude

Senior Member




Java forever


« Reply #2 - Posted 2004-02-29 19:40:28 »

Glad I could be of some help.
/me walks away whistling and looking all innocent Grin
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Browse for soundtracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
NegativeZero (7 views)
2013-06-19 03:31:52

NegativeZero (9 views)
2013-06-19 03:24:09

Jesse_Attard (16 views)
2013-06-18 22:03:02

HeroesGraveDev (59 views)
2013-06-15 23:35:23

Vermeer (59 views)
2013-06-14 20:08:06

davedes (58 views)
2013-06-14 16:03:55

alaslipknot (52 views)
2013-06-13 07:56:31

Roquen (73 views)
2013-06-12 04:12:32

alaslipknot (58 views)
2013-06-10 19:30:18

HeroesGraveDev (75 views)
2013-06-09 04:36:03
Smoothing Algorithm Question
by UprightPath
2013-05-28 02:58:26

Smoothing Algorithm Question
by UprightPath
2013-05-28 02:57:33

Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!