From 8047076887b10a8aff91d3c85ba1bf31c200e679 Mon Sep 17 00:00:00 2001 From: Donald Shan Date: Sun, 21 Aug 2022 23:27:41 -0700 Subject: Added second preliminary screen for editing tags manually --- src/main/java/Main.java | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'src/main/java/Main.java') diff --git a/src/main/java/Main.java b/src/main/java/Main.java index ec95ad9..46723d3 100644 --- a/src/main/java/Main.java +++ b/src/main/java/Main.java @@ -20,7 +20,7 @@ public class Main extends JFrame { int progress = 0; FileUtility fileUtil = new FileUtility(); JProgressBar progressBar = new JProgressBar(); - JLabel title = new JLabel("SUPER JUICER DOWNLOAD MUSIC COVERS AND TAG NOW 100% SAFE"); + JLabel title = new JLabel("YouTube to MP3 Auto Tagging"); JButton startButton = new JButton("Set .txt File"); static JTextArea outputArea = new JTextArea("this is bery bery bery safe no worries no virus malwar ur monies back granteed"); @@ -33,7 +33,7 @@ public class Main extends JFrame { new Main().setVisible(true); } - private void initializeComponents(){ + private void initializeComponents(){//Initiate GUI components this.setDefaultCloseOperation(EXIT_ON_CLOSE); this.setLocationRelativeTo(null); this.add(panel); @@ -60,10 +60,11 @@ public class Main extends JFrame { panel.add(scrollPane); panel.add(Box.createVerticalStrut(5)); panel.add(editButton); - this.setSize(550,300); + this.setSize(550,450); + this.setTitle("amazing program to download and tag all mp3 files"); } - private void initializeActionsListeners(){ + private void initializeActionsListeners(){//Add all actionlisteners for buttons startButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { @@ -95,12 +96,12 @@ public class Main extends JFrame { editButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e){ - + new TagEditorScreen().setVisible(true); } }); } - private void downloadAndTag(){ + private void downloadAndTag(){ //Main loop ran for checking list of songs, downloading mp3 files, and applying tags ArrayList songs = fileUtil.txtToArrayList(textPath); progress = 0; for(int i = 0;i