box2d-editor icon indicating copy to clipboard operation
box2d-editor copied to clipboard

JDK 1.7 is used by some methods

Open GoogleCodeExporter opened this issue 10 years ago • 6 comments

What steps will reproduce the problem?
1. create first rigid body with Bg image, create some polygons
2. create second rigid body with bg image, create some polygons
3. try to move or delete created objects in the left menu

What is the expected output? What do you see instead?
I was hoping I will be able to delete or move created objects. :)


What version of the product are you using? On what operating system?
v2.9.2

Please provide any additional information below.
Windows 7 x64, latest jre

Original issue reported on code.google.com by [email protected] on 24 May 2012 at 2:49


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

GoogleCodeExporter avatar Oct 01 '15 16:10 GoogleCodeExporter

Just select your objects and click on the cross button to delete them or on the 
up/bottom arrow buttons to move them in the list. The buttons are the ones next 
to "new" and "rename" buttons.

If it doesn't work, report it and I'll reopen the issue.

Original comment by aurelien.ribon on 29 May 2012 at 8:36

  • Changed state: Invalid

GoogleCodeExporter avatar Oct 01 '15 16:10 GoogleCodeExporter

I have upload video to YouTube with bug happening. Here is the link: 
http://youtu.be/ah6cc_lbyFY

Hope it helps!

Original comment by [email protected] on 29 May 2012 at 4:28

GoogleCodeExporter avatar Oct 01 '15 16:10 GoogleCodeExporter

I can't reproduce the bug on my computer, following the exact same steps as 
shown in the video.
However, since the canvas stopped responding, it seems an uncaught exception 
has been thrown and the libgdx renderer crashed. Can you launch the jar with 
your command line ("java -jar physics-body-editor.jar") and try again? It 
should write the exception in the console so we can see where is the problem.

Original comment by aurelien.ribon on 29 May 2012 at 4:35

GoogleCodeExporter avatar Oct 01 '15 16:10 GoogleCodeExporter

I was able to catch exception. Attached it to the comment.

Original comment by [email protected] on 29 May 2012 at 5:02

Attachments:

GoogleCodeExporter avatar Oct 01 '15 16:10 GoogleCodeExporter

Thanks! The bug was due to the use of the 
javax.swing.JList.getSelectedValuesList method, which is only available in JDK 
1.7. I guess you have a 1.6 JDK... :)

I compile with 1.6 compatibility enforced, but I guess Netbeans has some issues 
with that. I'll downlaod the JDK 1.6 to be sure that future developments are 
compatible with it.

Thanks for reporting.

Original comment by aurelien.ribon on 29 May 2012 at 5:08

  • Changed title: JDK 1.7 is used by some methods
  • Changed state: Started

GoogleCodeExporter avatar Oct 01 '15 16:10 GoogleCodeExporter

Thank you! I appreciate your work on this project! Fell free to mail me. :)

Original comment by [email protected] on 29 May 2012 at 5:13

GoogleCodeExporter avatar Oct 01 '15 16:10 GoogleCodeExporter