Skip to content

Commit

Permalink
Removed login interfaces and events
Browse files Browse the repository at this point in the history
  • Loading branch information
focus1691 committed Nov 22, 2022
1 parent 976dab4 commit 09e5e7f
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 305 deletions.
32 changes: 0 additions & 32 deletions src/gui/login/LoginEvent.java

This file was deleted.

227 changes: 0 additions & 227 deletions src/gui/login/LoginFrame.java

This file was deleted.

10 changes: 0 additions & 10 deletions src/gui/login/LoginListener.java

This file was deleted.

22 changes: 0 additions & 22 deletions src/gui/login/LoginPanel.java

This file was deleted.

11 changes: 0 additions & 11 deletions src/gui/login/LogoutEvent.java

This file was deleted.

2 changes: 0 additions & 2 deletions src/gui/subliminal/SubliminalFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ public void setMessage(Message message) {
subliminalMessage.setActiveBackground(activeBackground);
subliminalMessage.setBackgroundSelected(isBackgroundSelected);
subliminalMessage.repaint();
System.out.println(message);
System.out.println();
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion src/gui/util/SetScreenLocation.java
Original file line number Diff line number Diff line change
@@ -1 +1 @@
package gui.util;import java.awt.Dimension;import java.awt.Toolkit;import javax.swing.JDialog;import javax.swing.JFrame;import gui.login.LoginFrame;public class SetScreenLocation { public static final Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); /** * A general-purpose method to vertically and horizontally center a window. * http://stackoverflow.com/questions/144892/how-to-center-a-window-in-java */ public static void centerFrame(JFrame frame) { int x = (int) ((screenSize.getWidth() - frame.getWidth()) / 2); int y = (int) ((screenSize.getHeight() - frame.getHeight()) / 2); frame.setLocation(x, y); } public static void centerFrame(JDialog dialog) { int x = (int) ((screenSize.getWidth() - dialog.getWidth()) / 2); int y = (int) ((screenSize.getHeight() - dialog.getHeight()) / 2); dialog.setLocation(x, y); } public static void centerFrame(LoginFrame loginFrame) { int x = (int) ((screenSize.getWidth() - loginFrame.getWidth()) / 2); int y = (int) ((screenSize.getHeight() - loginFrame.getHeight()) / 2); loginFrame.setLocation(x, y); } public static void center(JDialog message) { int x = (int) ((screenSize.getWidth() - message.getWidth()) / 2); int y = (int) ((screenSize.getHeight() - message.getHeight()) / 2); message.setLocation(x, y); } public static void topLeft(JDialog message) { message.setLocation(0, 0); } public static void topRight(JDialog message) { int x = (int) ((screenSize.getWidth() - message.getWidth())); message.setLocation(x, 0); } public static void botLeft(JDialog message) { int y = (int) ((screenSize.getHeight() - message.getHeight())); message.setLocation(0, y); } public static void botRight(JDialog message) { int x = (int) ((screenSize.getWidth() - message.getWidth())); int y = (int) ((screenSize.getHeight() - message.getHeight())); message.setLocation(x, y); }}
package gui.util;import java.awt.Dimension;import java.awt.Toolkit;import javax.swing.JDialog;import javax.swing.JFrame;public class SetScreenLocation { public static final Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); /** * A general-purpose method to vertically and horizontally center a window. * http://stackoverflow.com/questions/144892/how-to-center-a-window-in-java */ public static void centerFrame(JFrame frame) { int x = (int) ((screenSize.getWidth() - frame.getWidth()) / 2); int y = (int) ((screenSize.getHeight() - frame.getHeight()) / 2); frame.setLocation(x, y); } public static void centerFrame(JDialog dialog) { int x = (int) ((screenSize.getWidth() - dialog.getWidth()) / 2); int y = (int) ((screenSize.getHeight() - dialog.getHeight()) / 2); dialog.setLocation(x, y); } public static void center(JDialog message) { int x = (int) ((screenSize.getWidth() - message.getWidth()) / 2); int y = (int) ((screenSize.getHeight() - message.getHeight()) / 2); message.setLocation(x, y); } public static void topLeft(JDialog message) { message.setLocation(0, 0); } public static void topRight(JDialog message) { int x = (int) ((screenSize.getWidth() - message.getWidth())); message.setLocation(x, 0); } public static void botLeft(JDialog message) { int y = (int) ((screenSize.getHeight() - message.getHeight())); message.setLocation(0, y); } public static void botRight(JDialog message) { int x = (int) ((screenSize.getWidth() - message.getWidth())); int y = (int) ((screenSize.getHeight() - message.getHeight())); message.setLocation(x, y); }}
Expand Down

0 comments on commit 09e5e7f

Please sign in to comment.