Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (497)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
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 949 times)
0 Members and 1 Guest are viewing this topic.
Offline kevglass

JGO Kernel


Medals: 164
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Posted 2004-02-29 16: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

JGO Kernel


Medals: 164
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #1 - Posted 2004-02-29 17: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 18: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.

 

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

The first screenshot will be displayed as a thumbnail.

BurntPizza (19 views)
2014-09-19 03:14:18

Dwinin (34 views)
2014-09-12 09:08:26

Norakomi (62 views)
2014-09-10 13:57:51

TehJavaDev (84 views)
2014-09-10 06:39:09

Tekkerue (42 views)
2014-09-09 02:24:56

mitcheeb (64 views)
2014-09-08 06:06:29

BurntPizza (47 views)
2014-09-07 01:13:42

Longarmx (35 views)
2014-09-07 01:12:14

Longarmx (39 views)
2014-09-07 01:11:22

Longarmx (36 views)
2014-09-07 01:10:19
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
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!