View Full Version : Newbie Question
hsvmoon
06-08-2007, 08:43 PM
I followed the NetBeans setup guide for Mac OS X (PPC). Everything seems to work (except for WorldWindowGLJPanel known issue), but I get the below screen. Any ideas what is wrong?
patmurris
06-08-2007, 10:04 PM
Dual core processor with one of them on strike ? :p
Does the webstart version (http://worldwind.arc.nasa.gov/java/index.html) do the same ?
hsvmoon
06-09-2007, 12:39 AM
The webstart demo works perfectly on my system. Below is the important part of the code. The main method justs calls the constructor and then sets the frame visible.
/*
* MainGUI.java
*
* Created on June 8, 2007, 1:35 PM
*/
package com.aptresearch.safeearth.gui;
import gov.nasa.worldwind.AVKey;
import gov.nasa.worldwind.Model;
import gov.nasa.worldwind.WorldWind;
/**
*
*
*/
public class MainGUI extends javax.swing.JFrame
{
/** Creates new form MainGUI */
public MainGUI()
{
initComponents();
Model m = (Model) WorldWind.createConfigurationComponent(A VKey.MODEL_CLASS_NAME);
world.setModel(m);
}//end of constructor
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
// <editor-fold defaultstate="collapsed" desc=" Generated Code ">
private void initComponents()
{
world = new gov.nasa.worldwind.awt.WorldWindowGLCanv as();
setDefaultCloseOperation(javax.swing.Win dowConstants.EXIT_ON_CLOSE);
world.setRealized(false);
world.setPreferredSize(new java.awt.Dimension(800, 600));
getContentPane().add(world, java.awt.BorderLayout.CENTER);
pack();
}// </editor-fold>
// Variables declaration - do not modify
private gov.nasa.worldwind.awt.WorldWindowGLCanv as world;
// End of variables declaration
}//end of mainGUI
I tried your code and it works fine (on my windows-system)
But sometimes the same error occured in my own little programs. Is the globe always shown in this strange way?
hsvmoon
06-11-2007, 02:52 PM
With the above code it happened 95% of the time. When I modifed the code to create the layers before the WorldWindow the problem seems to go away. I have seen the issue maybe one more time since then. It almost seems like a thread race condition or safety issue.
hsvmoon
06-11-2007, 08:56 PM
After looking some more, I belive this to be a compatibility issue for WWJ on OS X. It seems to happen some of the time. As I make changes to the constructor the problem becomes more or less frequent.
hsvmoon
06-12-2007, 11:38 PM
Has anyone else tried this on OS X 10.4 for PPC?
vBulletin® v3.7.1, Copyright ©2000-2013, Jelsoft Enterprises Ltd.