removed lists now covered by tags, rearranged main menu

This commit is contained in:
aj 2018-04-06 00:35:07 -07:00
parent 57d2ec312c
commit 55b4ed625a
3 changed files with 31 additions and 32 deletions

View File

@ -80,12 +80,11 @@ public class MainMenu extends JFrame {
} }
}); });
add(viewLastTrack); add(viewLastTrack);
add(viewList);
add(viewTag);
add(getAlbum);
add(getArtist);
add(today); add(today);
add(viewTag);
add(viewList);
add(getArtist);
add(getAlbum);
} }
} }

View File

@ -35,13 +35,13 @@ public class RefListsView extends JFrame {
// add(view); // add(view);
// } // }
JButton viewTDE = new JButton("TDE"); // JButton viewTDE = new JButton("TDE");
viewTDE.addActionListener(new ActionListener() { // viewTDE.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) { // public void actionPerformed(ActionEvent arg0) {
Reference.getTDE().view(); // Reference.getTDE().view();
} // }
}); // });
add(viewTDE); // add(viewTDE);
JButton viewBPHQ = new JButton("BPHQ"); JButton viewBPHQ = new JButton("BPHQ");
viewBPHQ.addActionListener(new ActionListener() { viewBPHQ.addActionListener(new ActionListener() {
@ -86,24 +86,24 @@ public class RefListsView extends JFrame {
Reference.getEmoTrio().view(); Reference.getEmoTrio().view();
} }
}); });
add(viewEmoTrio); // add(viewEmoTrio);
//
JButton viewRockTag = new JButton("Rock Tag"); // JButton viewRockTag = new JButton("Rock Tag");
viewRockTag.addActionListener(new ActionListener() { // viewRockTag.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) { // public void actionPerformed(ActionEvent arg0) {
FMObjList list = Getter.getUserTag(Reference.getUserName(), "rock"); // FMObjList list = Getter.getUserTag(Reference.getUserName(), "rock");
list.view(); // list.view();
} // }
}); // });
add(viewRockTag); // add(viewRockTag);
//
JButton viewRapTag = new JButton("Rap Tag"); // JButton viewRapTag = new JButton("Rap Tag");
viewRapTag.addActionListener(new ActionListener() { // viewRapTag.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) { // public void actionPerformed(ActionEvent arg0) {
FMObjList list = Getter.getUserTag(Reference.getUserName(), "rap"); // FMObjList list = Getter.getUserTag(Reference.getUserName(), "rap");
list.view(); // list.view();
} // }
}); // });
add(viewRapTag); // add(viewRapTag);
} }
} }

View File

@ -163,7 +163,7 @@ public class URLBuilder {
} }
String date = String.format("%d-%s-%sT07:00:00.00Z", now.getYear(), month, day); String date = String.format("%d-%s-%sT07:00:00.00Z", now.getYear(), month, day);
System.out.println(date); // System.out.println(date);
// long midnight = Instant.parse("2018-04-05T07:00:00.00Z").getEpochSecond(); // long midnight = Instant.parse("2018-04-05T07:00:00.00Z").getEpochSecond();
long midnight = Instant.parse(date).getEpochSecond(); long midnight = Instant.parse(date).getEpochSecond();