diff --git a/src/main/java/userprofilebuilder/view/MainViewer.java b/src/main/java/userprofilebuilder/view/MainViewer.java index 277882d..bdd2064 100644 --- a/src/main/java/userprofilebuilder/view/MainViewer.java +++ b/src/main/java/userprofilebuilder/view/MainViewer.java @@ -15,7 +15,10 @@ import javax.swing.JFrame; */ public class MainViewer { private JFrame viewer; - + + + public int a = 3; // this represents a value that is to declare how many rows are to be made + private void CreateRow(int count, JPanel jp) // Function to create a row // holds all the data of a row in the grid layout below. { @@ -34,30 +37,43 @@ public class MainViewer { System.out.println("Row number: "+ count + " Has been created!"); } - + + + public void TabMaker(String Pname, JTabbedPane JT) + { + + JPanel page = new JPanel(); + + page.setLayout(new GridLayout(a,3)); // Because i cant remember the orientation of grid layout params it's (x,y) AKA rows , columns + + JT.addTab(Pname, page); + + for (int i=0; i