diff --git a/lib/gluegen-java-src.zip b/lib/gluegen-java-src.zip deleted file mode 100644 index 2d6a93c..0000000 Binary files a/lib/gluegen-java-src.zip and /dev/null differ diff --git a/lib/gluegen-rt.jar b/lib/gluegen-rt.jar deleted file mode 100644 index 742fdb2..0000000 Binary files a/lib/gluegen-rt.jar and /dev/null differ diff --git a/lib/jogl-all.jar b/lib/jogl-all.jar deleted file mode 100644 index f73174f..0000000 Binary files a/lib/jogl-all.jar and /dev/null differ diff --git a/lib/jogl-java-src.zip b/lib/jogl-java-src.zip deleted file mode 100644 index ff74ccd..0000000 Binary files a/lib/jogl-java-src.zip and /dev/null differ diff --git a/lib/linux/gluegen-rt-natives-linux-amd64.jar b/lib/linux/gluegen-rt-natives-linux-amd64.jar deleted file mode 100644 index a2466f4..0000000 Binary files a/lib/linux/gluegen-rt-natives-linux-amd64.jar and /dev/null differ diff --git a/lib/linux/jogl-all-natives-linux-amd64.jar b/lib/linux/jogl-all-natives-linux-amd64.jar deleted file mode 100644 index e57b8c7..0000000 Binary files a/lib/linux/jogl-all-natives-linux-amd64.jar and /dev/null differ diff --git a/lib/mac/gluegen-rt-natives-macosx-universal.jar b/lib/mac/gluegen-rt-natives-macosx-universal.jar deleted file mode 100644 index 15df5e8..0000000 Binary files a/lib/mac/gluegen-rt-natives-macosx-universal.jar and /dev/null differ diff --git a/lib/mac/jogl-all-natives-macosx-universal.jar b/lib/mac/jogl-all-natives-macosx-universal.jar deleted file mode 100644 index c65ea99..0000000 Binary files a/lib/mac/jogl-all-natives-macosx-universal.jar and /dev/null differ diff --git a/lib/windows/desktop.ini b/lib/windows/desktop.ini deleted file mode 100644 index d9311ed..0000000 --- a/lib/windows/desktop.ini +++ /dev/null @@ -1,2 +0,0 @@ -[LocalizedFileNames] -gluegen-rt-natives-windows-amd64.jar=@gluegen-rt-natives-windows-amd64.jar,0 diff --git a/lib/windows/gluegen-rt-natives-windows-amd64.jar b/lib/windows/gluegen-rt-natives-windows-amd64.jar deleted file mode 100644 index 517fb84..0000000 Binary files a/lib/windows/gluegen-rt-natives-windows-amd64.jar and /dev/null differ diff --git a/lib/windows/jogl-all-natives-windows-amd64.jar b/lib/windows/jogl-all-natives-windows-amd64.jar deleted file mode 100644 index 9577bf1..0000000 Binary files a/lib/windows/jogl-all-natives-windows-amd64.jar and /dev/null differ diff --git a/src/jogl/MainFrame.java b/src/jogl/MainFrame.java new file mode 100644 index 0000000..58ccddf --- /dev/null +++ b/src/jogl/MainFrame.java @@ -0,0 +1,80 @@ +package jogl; + + +import java.awt.BorderLayout; +import java.awt.FlowLayout; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; + +import javax.swing.JButton; +import javax.swing.JFrame; +import javax.swing.JLabel; +import javax.swing.JPanel; +import javax.swing.JTabbedPane; +import javax.swing.JToolBar; +import javax.swing.SwingConstants; + + +public class MainFrame extends JFrame implements ActionListener{ + + + private static final long serialVersionUID = -7898079642230075807L; + private int nbTabs; + private JPanel basePanel; + private JTabbedPane tabs; + private JButton newGen; + private JButton help; + private JButton close; + + public MainFrame(){ + + nbTabs = 0; + basePanel = new JPanel(); + basePanel.setLayout(new FlowLayout(FlowLayout.CENTER)); + tabs = new JTabbedPane(SwingConstants.TOP); + + JToolBar toolBar = new JToolBar(); + newGen = new JButton("Nouvelle génération"); + newGen.addActionListener(this); + toolBar.add(newGen); + help = new JButton("Aide"); + help.addActionListener(this); + toolBar.add(help); + + this.setTitle("L-system interface"); + this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + this.setSize(600,400); + this.setLocationRelativeTo(null); + this.add(tabs); + this.add(toolBar, BorderLayout.NORTH); + + } + + @Override + public void actionPerformed(ActionEvent e) { + if(e.getSource() == newGen) + newTab(); + else if(e.getSource() == help) + newHelp(); + else if(e.getSource() == close) + closeTab(); + + } + public void newHelp() { + JPanel helpTab = new JPanel(); + JLabel helpText = new JLabel(); + helpText.setText("Aled"); + helpTab.add(helpText); + tabs.addTab("Oskour",helpTab); + + } + public void newTab() { + nbTabs ++; + JPanel tab = new JPanel(); + tabs.addTab("Génération"+String.valueOf(nbTabs), tab); + } + public void closeTab() { + + } +} +