Skip to content

Commit

Permalink
Source code for 3D tutorials
Browse files Browse the repository at this point in the history
  • Loading branch information
javatutorials101 committed Jun 4, 2015
1 parent 9cbed16 commit 93dc880
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
20 changes: 20 additions & 0 deletions 3D - Tutorial 2/DDDTutorial.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import java.awt.Toolkit;
import javax.swing.JFrame;

public class DDDTutorial extends JFrame{
static JFrame F = new DDDTutorial();
Screen ScreenObject = new Screen();

public DDDTutorial()
{
add(ScreenObject);
setUndecorated(true);
setSize(Toolkit.getDefaultToolkit().getScreenSize());
setVisible(true);
}

public static void main(String[] args)
{

}
}
9 changes: 9 additions & 0 deletions 3D - Tutorial 2/Screen.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import java.awt.Graphics;
import javax.swing.JPanel;

public class Screen extends JPanel{
public void paintComponent(Graphics g)
{
g.fillOval(10, 10, 500, 500);
}
}
18 changes: 18 additions & 0 deletions DDDTutorial.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import java.awt.Toolkit;
import javax.swing.JFrame;

public class DDDTutorial extends JFrame{
static JFrame F = new DDDTutorial();

public DDDTutorial()
{
setUndecorated(true);
setSize(Toolkit.getDefaultToolkit().getScreenSize());
setVisible(true);
}

public static void main(String[] args)
{

}
}

0 comments on commit 93dc880

Please sign in to comment.