GoogleCodeArchive / piccolo2d

Automatically exported from code.google.com/p/piccolo2d
0 stars 0 forks source link

ScrollingExample.java doesn't work #67

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile and execute 'ScrollingExample.java'
2.
3.

What is the expected output? What do you see instead?
It only shows a empty window
Error messages on console are followed
--------------
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: 
adding container's parent to itself
    at java.awt.Container.addImpl(Unknown Source)
    at java.awt.Container.add(Unknown Source)
    at ScrollingExample.initialize(ScrollingExample.java:81)
    at edu.umd.cs.piccolox.PFrame$1.run(PFrame.java:107)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown 
Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(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)
------------------------
This statement is the code that the error is occured
getContentPane().add(scrollPane); 

What version of the product are you using? On what operating system?
  I used the latest revision of piccolo2d(r400).
  jre1.6.0_07
  Windows XP SP3.

Please provide any additional information below.

Original issue reported on code.google.com by gigony on 26 Oct 2008 at 6:13

GoogleCodeExporter commented 9 years ago
I have the same problem working with netbeans 6.5
and jdk1.6.0_10 

Original comment by pepll...@gmail.com on 9 Mar 2009 at 9:53

GoogleCodeExporter commented 9 years ago
I tried with another versions of netbeans but doesnt work also.

Original comment by dnvr301...@gmail.com on 16 Mar 2009 at 5:31

GoogleCodeExporter commented 9 years ago
Thanks everyone for submitting and reproducing this issue.  Please submit a 
patch if
you have one, otherwise I will get to it this week.

Original comment by heue...@gmail.com on 16 Mar 2009 at 5:52

GoogleCodeExporter commented 9 years ago

Original comment by heue...@gmail.com on 16 Mar 2009 at 5:54

GoogleCodeExporter commented 9 years ago
commit -m "Issue 67 ; fixed issue with example, it was incorrectly adding the 
scroll
pane to the canvas" ...
Sending        ...
Transmitting file data ...
Committed revision 431.

Original comment by heue...@gmail.com on 16 Mar 2009 at 9:24

GoogleCodeExporter commented 9 years ago
Tanks for your work... now I can run this example.

Original comment by pepll...@gmail.com on 28 Mar 2009 at 11:17

GoogleCodeExporter commented 9 years ago
Thank you for fixing the bug.

Original comment by gigony on 28 Mar 2009 at 1:45

GoogleCodeExporter commented 9 years ago

Original comment by mr0...@mro.name on 25 Oct 2009 at 6:37