Skip to content

Commit 85c7430

Browse files
Slightly edited margins on main page.
1 parent 905f7f0 commit 85c7430

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/main/java/frameworks_and_drivers/components/ListOfFlashcardSetsDataPanel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public ListOfFlashcardSetsDataPanel(Map<Integer, String[]> idsToFlashcardSetData
4646
}
4747
flashcardSets.setLayout(new GridLayout(rows, 2));
4848
Dimension flashcardSetPanelSize = flashcardSets.getPreferredSize();
49-
flashcardSets.setPreferredSize(new Dimension(flashcardSetPanelSize.width, flashcardSetPanelSize.height + 200));
49+
flashcardSets.setPreferredSize(new Dimension(flashcardSetPanelSize.width, flashcardSetPanelSize.height + 100));
5050

5151
this.add(flashcardSets);
5252
this.setLayout (new FlowLayout());

src/main/java/frameworks_and_drivers/screens/HomeScreen.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ public HomeScreen(UserLoginResponseModel user, DBGateway gateway) throws IOExcep
114114
}
115115
else {
116116
ListOfFlashcardSetsDataPanel listOfFCSet = new ListOfFlashcardSetsDataPanel(idsToFlashcardSetData, gateway, user, this);
117-
this.add(new JScrollPane(listOfFCSet));
117+
JScrollPane scrollPane = new JScrollPane(listOfFCSet);
118+
scrollPane.setPreferredSize(new Dimension(900,800));
119+
this.add(scrollPane);
118120
}
119121
this.setSize(1000, 800);
120122
this.setVisible(true);

0 commit comments

Comments
 (0)