This discussion is archived
7 Replies Latest reply: Dec 22, 2010 2:23 AM by FrançoisDegrelle RSS

Java Version Causes VBean to Not Display

440705 Newbie
Currently Being Moderated
Hi,

We have a VBean that we embed in Forms to display CAD drawings within the application. This has been working fine for a long time now. However, we have started to get problems once the version of the JRE goes above 1.6.13. As soon as this happens the bean area in the form is blank. We have stripped the code right back so the bean is just a showing a panel with the cad file on it. In v1.6.13 it works fine, in 1.6.21 no image is shown. The bean is loading as the cursor can be clicked in the bean area and the activity we would expect still occurs, but no display. The full code for the stripped down version is below. If, in JDeveloper, I change VBean to JFrame, it all works fine as well.
Has any one experienced this or am I doing something wrong?

Thanks

Chris


public class ATRIUMcad_stripped extends VBean
{
private ViewerAWT_ObjectNode viewerAWT;

public static void main(String[] args)
{

System.out.println("Main");
ATRIUMcad_stripped cv = new ATRIUMcad_stripped();

}
public ATRIUMcad_stripped()
{
super();
System.out.println("ATRIUMcad_stripped");
this.CADContainerInit("http://spilgrim.atrium.local:8889/j2ee/", "DEBUG",
"c:\\temp\\", "c:\\temp\\ax2007.exe");
}

public void CADContainerInit(String cadViewerJar,
String strMode,
String strFCMTempDir, String strFCMEXE)
{
viewerAWT = new ViewerAWT_ObjectNode(cadViewerJar);
viewerAWT.SetAppletParameter("codeBase", cadViewerJar);
try
{
jbInit();
setVisible(true);
}
catch (Exception e)
{
System.out.println("Exception =" + e.toString());
}


}

private void jbInit()
throws Exception
{

this.setSize(new Dimension(800, 800));
this.add(viewerAWT.getPanel(), BorderLayout.CENTER);
URL url = new URL("http://spilgrim.atrium.local:8889/j2ee/Arlesey_Nursery.dwf");
byte[] fileBytes = viewerAWT.getData(url);
viewerAWT.OpenFile(fileBytes);

}
}

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points