Skip to content

Commit

Permalink
Fix UI issue of components crooked
Browse files Browse the repository at this point in the history
  • Loading branch information
MilkBiscuit committed Apr 10, 2021
1 parent 2acf7d2 commit 858985a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/com/cheng/rostergenerator/util/NavigateUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ public class NavigateUtil {
public static void toNameTable(Component c) {
var frame = UIUtil.getParentFrame(c);
var nameTable = new NameTable();
frame.getContentPane().removeAll();;
frame.getContentPane().add(nameTable);
frame.getContentPane().removeAll();
frame.setContentPane(nameTable);
frame.pack();
frame.setVisible(true);
}
Expand All @@ -30,8 +30,8 @@ public static void toRosterTable() {
public static void toNameCollector(Component c) {
var frame = UIUtil.getParentFrame(c);
var nameCollector = new NameCollector();
frame.getContentPane().removeAll();;
frame.getContentPane().add(nameCollector);
frame.getContentPane().removeAll();
frame.setContentPane(nameCollector);
frame.pack();
frame.setVisible(true);
}
Expand Down

0 comments on commit 858985a

Please sign in to comment.