We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db06ee5 commit 3f5bd3eCopy full SHA for 3f5bd3e
src/main/java/MainPage/HomePage.java
@@ -74,8 +74,14 @@ public HomePage(UserLoginResponseModel user) throws IOException {
74
Map<Integer, String[]> idsToFlashcardSetData = user.getFlashcardSets();
75
76
int numSets = idsToFlashcardSetData.size();
77
+ System.out.println(numSets);
78
if (numSets==0){
- this.add(new JLabel("You have no Flashcard Sets!"));
79
+ JLabel label = new JLabel("You have no Flashcard Sets!");
80
+ label.setHorizontalAlignment(SwingConstants.CENTER);
81
+ label.setVerticalAlignment(SwingConstants.TOP);
82
+ JPanel labelPanel = new JPanel();
83
+ labelPanel.add(label);
84
+ this.add(labelPanel);
85
}
86
else {
87
this.add(new ListOfFlashcardSetsDataPanel(idsToFlashcardSetData, gateway, true));
0 commit comments