black box in MViewPane with empty RxnMolecule

User c23c5e9da4

17-01-2007 03:53:42

If you have an MViewPane and you call MViewPane.add(0, new RxnMolecule()) you get a black box in the MViewPane. It would be better to just show an arrow in the middle of the screen.

User f359e526a1

17-01-2007 18:30:32

Hello, will check what is going on.

ChemAxon 7c2d26e5cf

21-01-2007 12:16:04

Which method did you call exactly? MViewPane.add(int,Molecule) method does not exits in Marvin API. Although MViewPane is inherited several add methods from java.awt.Container (like any other Swing component) but these methods expects GUI components as parameters.


chemaxon.marvin.beans.MViewPane


java.awt.Container

User c23c5e9da4

22-01-2007 22:28:25

setM(0, rxn)

ChemAxon 7c2d26e5cf

23-01-2007 16:14:57

Thanks for the bug report. We will fix it.


Until then, I suggest the following workaround:


Use RgMolecule instead of RxnMolecule for reactions.


Code:
MViewPane viewpanel = ...


viewpanel.setM(0, new RgMolecule());

ChemAxon 7c2d26e5cf

24-08-2007 14:52:57

This bug is already fixed. Reaction arrow is drawn fine in current release.