Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

help in using jlink RetrieveMaterial

jruffsr

New member
I am trying to assign material using the RetrieveMaterial method but it
will not compile in java. The documentation for this is not clear to
me. Any help would be appreciated.

Jeff Ruff



h:\proe_nt\jlink\TepsMenu.java:340: cannot resolve symbol

symbol : method RetrieveMaterial (java.lang.String)

location: interface com.ptc.pfc.pfcModel.Model

&nbs p;
model.RetrieveMaterial ( (String) materialCombo.getSelectedItem() );



&nbs p; ^

1 error
 
It turns out that when this method is called from within an action
listener, it hangs. If I move it to a method called by the action
listener it still hangs. Any ideas on what in Java or Jlink is causing
this?



Thanks

Jeff Ruff
 
PTC Help came through on this one. I had created a JPanel which spawned
a new thread, which gave undesireable results. Changing to a JDialog
set to modal fixed the problem.
 

Sponsor

Articles From 3DCAD World

Back
Top