List of usage examples for javax.media.j3d Locale Locale
public Locale(VirtualUniverse universe)
From source file:SimpleMorph2.java
public SimpleMorph2() { VirtualUniverse myUniverse = new VirtualUniverse(); Locale myLocale = new Locale(myUniverse); myLocale.addBranchGraph(buildViewBranch(myCanvas3D)); myLocale.addBranchGraph(buildContentBranch()); setTitle("SimpleMorph"); setSize(400, 400);// ww w. j a v a 2 s . c om setLayout(new BorderLayout()); Panel bottom = new Panel(); bottom.add(exitButton); add(BorderLayout.CENTER, myCanvas3D); add(BorderLayout.SOUTH, bottom); exitButton.addActionListener(this); setVisible(true); }
From source file:SimpleSounds.java
public SimpleSounds() { VirtualUniverse myUniverse = new VirtualUniverse(); Locale myLocale = new Locale(myUniverse); // buildUniverse(myCanvas3D); myLocale.addBranchGraph(buildContentBranch()); myLocale.addBranchGraph(buildViewBranch(myCanvas3D)); setTitle("SimpleSounds"); setSize(400, 400);/*from w w w. j ava 2s.c o m*/ setLayout(new BorderLayout()); Panel bottom = new Panel(); bottom.add(sound1Button); bottom.add(sound2Button); bottom.add(exitButton); add(BorderLayout.CENTER, myCanvas3D); add(BorderLayout.SOUTH, bottom); exitButton.addActionListener(this); sound1Button.addActionListener(this); sound2Button.addActionListener(this); setVisible(true); }
From source file:SwingTest.java
/** * Create a Locale for the VirtualUniverse */ protected Locale createLocale(VirtualUniverse u) { return new Locale(u); }
From source file:SimpleCollision2.java
public SimpleCollision2() { VirtualUniverse myUniverse = new VirtualUniverse(); Locale myLocale = new Locale(myUniverse); myLocale.addBranchGraph(buildViewBranch(myCanvas3D)); myLocale.addBranchGraph(buildContentBranch()); setTitle("SimpleWorld"); setSize(400, 400);/*from w w w . j ava 2 s .c om*/ setLayout(new BorderLayout()); Panel bottom = new Panel(); bottom.add(exitButton); add(BorderLayout.CENTER, myCanvas3D); add(BorderLayout.SOUTH, bottom); exitButton.addActionListener(this); setVisible(true); }
From source file:SimpleCollision.java
public SimpleCollision() { VirtualUniverse myUniverse = new VirtualUniverse(); Locale myLocale = new Locale(myUniverse); myLocale.addBranchGraph(buildViewBranch(myCanvas3D)); myLocale.addBranchGraph(buildContentBranch()); setTitle("SimpleWorld"); setSize(400, 400);//from ww w. j ava 2s. co m setLayout(new BorderLayout()); Panel bottom = new Panel(); bottom.add(exitButton); add(BorderLayout.CENTER, myCanvas3D); add(BorderLayout.SOUTH, bottom); exitButton.addActionListener(this); setVisible(true); }
From source file:SimpleMorph.java
/** * Constructor that generates the content using the class methods *//* w ww. j ava 2 s.c om*/ public SimpleMorph() { VirtualUniverse myUniverse = new VirtualUniverse(); Locale myLocale = new Locale(myUniverse); myLocale.addBranchGraph(buildViewBranch(myCanvas3D)); myLocale.addBranchGraph(buildContentBranch()); setTitle("SimpleMorph"); setSize(400, 400); setLayout(new BorderLayout()); Panel bottom = new Panel(); bottom.add(pyraButton); bottom.add(cubeButton); bottom.add(exitButton); add(BorderLayout.CENTER, myCanvas3D); add(BorderLayout.SOUTH, bottom); pyraButton.addActionListener(this); cubeButton.addActionListener(this); exitButton.addActionListener(this); setVisible(true); }
From source file:SimpleCombine.java
public SimpleCombine() { VirtualUniverse myUniverse = new VirtualUniverse(); Locale myLocale = new Locale(myUniverse); myLocale.addBranchGraph(buildViewBranch(myCanvas3D)); myLocale.addBranchGraph(buildContentBranch(buildShape())); setTitle("SimpleWorld"); setSize(400, 400);/*from w w w . j av a2 s. c o m*/ setLayout(new BorderLayout()); add("Center", myCanvas3D); add("South", myButton); myButton.addActionListener(this); setVisible(true); }
From source file:SimpleGame.java
public SimpleGame() { VirtualUniverse myUniverse = new VirtualUniverse(); Locale myLocale = new Locale(myUniverse); myLocale.addBranchGraph(buildViewBranch(myCanvas3D)); myLocale.addBranchGraph(buildContentBranch()); setTitle("Duck Shoot!"); setSize(400, 400);//from w ww .j a v a2 s. co m setLayout(new BorderLayout()); add("Center", myCanvas3D); exitButton.addActionListener(this); add("South", exitButton); setVisible(true); }
From source file:MixedTest.java
protected Locale createLocale(VirtualUniverse u) { return new Locale(u); }