Guys,
Here is some code I use to get jmol into a JPanel. Don't know if it still
works with the new version! I also have an example of how to use an applet
in an application if you'd like me to send it.
However, this way is much easier, and much more efficient!
Take care,
Jacob Martin
University of Georgia
=================================================================
public void setGUI() {
moleculeViewer = new JmolSimpleBean();
moleculeViewer.setPickingMode("NOPICK");
if (urlAtomTypes == null) {
try {
urlAtomTypes = new java.net.URL(strAtomTypesURL);
moleculeViewer.setAtomPropertiesFromURL(urlAtomTypes);
}
catch (java.net.MalformedURLException e) {
throw new RuntimeException(("Got MalformedURL for Atomtypes: "
+ e.toString()));
}
}
setLayout(new java.awt.BorderLayout());
add(moleculeViewer, BorderLayout.CENTER);
}
=================================================================
####[ GNU/Linux One Stanza Tip (LOST) ]#######################
Sub : Capturing screen output under X [#2] LOST #312
If you have gimp installed, one of the easiest methods is:
Go to File -> Aquire-> screenshot
####[yash (at) delhicall.com]#################################
-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Jmol-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-developers