-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDisplayFrame.java
More file actions
37 lines (31 loc) · 1.12 KB
/
DisplayFrame.java
File metadata and controls
37 lines (31 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package j3d;
import j3d.panels.*;
import javax.swing.*;
import java.awt.*;
/**
* Created by tekrei on 06-May-17
*/
public class DisplayFrame extends JFrame {
private DisplayFrame() {
setLayout(new BorderLayout());
JTabbedPane tabs = new JTabbedPane();
tabs.addTab("Cube", new InteractiveCubeExample());
tabs.addTab("Cone", new ConeExample());
tabs.addTab("Sphere", new SphereExample());
tabs.addTab("Colored Box", new ColoredBoxExample());
tabs.addTab("Cylinder", new CylinderExample());
tabs.addTab("Texture", new TextureExample());
tabs.addTab("Texture 2", new TexturedBox());
tabs.addTab("3D Text", new Text3DExample());
tabs.addTab("Animated Text", new TextAnimationExample());
tabs.addTab("Lightning", new LightningExample());
tabs.addTab("Loading Object", new ObjectLoadingExample());
add(tabs, BorderLayout.CENTER);
setSize(800, 600);
setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
setVisible(true);
}
public static void main(String[] args) {
new DisplayFrame();
}
}