From 17072def2fea8d6ef4e85c88a9d01d8045c74b35 Mon Sep 17 00:00:00 2001 From: mudabbir-ahmad Date: Tue, 4 Feb 2025 20:20:38 +0000 Subject: [PATCH] =?UTF-8?q?W1R6=20=E2=80=93=20Adding=20Additional=20Tabbed?= =?UTF-8?q?=20Panes=20for=20data=20in=20the=20'userprofile.csv'=20file=20-?= =?UTF-8?q?-=20started=20work=20on=20csv=20reader.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../userprofilebuilder/view/MainViewer.java | 25 ++++++++++++++++--- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/src/main/java/userprofilebuilder/view/MainViewer.java b/src/main/java/userprofilebuilder/view/MainViewer.java index c8c511a..b3460be 100644 --- a/src/main/java/userprofilebuilder/view/MainViewer.java +++ b/src/main/java/userprofilebuilder/view/MainViewer.java @@ -17,7 +17,21 @@ import java.awt.event.*; public class MainViewer { public JFrame viewer; - public int a = 3; // this represents a value that is to declare how many rows are to be made + public int a = 3; // this represents a value that is to declare how many rows are to be made -- to be changed by the amount of lines in csv. + + // start of reader creation + + public String Reader() + { + String text = "Default Text -- no reading done."; + //hi + + + return text; + } + + + // end of reader private void CreateRow(int count, JPanel jp, String Pname) // Function to create a row // holds all the data of a row in the grid layout below. { @@ -27,7 +41,7 @@ public class MainViewer { // Temporary row distinguishing rename - String name = "Row " + row + " Name"; + String name = Reader(); // end of temporary row rename @@ -38,7 +52,10 @@ public class MainViewer { jp.add(JR); jp.add(JEdit); jp.add(JDelete); - + + + // below are action listeners + System.out.println("Row number: "+ row + " Has been created!"); ActionListener EditListener = e -> { @@ -110,7 +127,7 @@ public class MainViewer { { viewer = new JFrame(); viewer.setTitle("User Profile Builder"); - viewer.setSize(500,400); + viewer.setSize(800,500); viewer.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JTabbedPane JT = new JTabbedPane();