Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JenWarman committed Mar 3, 2024
1 parent ff3a5f3 commit b5a2818
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ This file is part of Universal Gcode Sender (UGS).
import com.willwinder.universalgcodesender.model.BackendAPI;
import com.willwinder.universalgcodesender.model.Position;
import com.willwinder.universalgcodesender.services.KeyboardService;
import com.willwinder.universalgcodesender.uielements.components.RequestFocusListener;
import net.miginfocom.swing.MigLayout;
import org.apache.commons.lang3.RegExUtils;
import org.apache.commons.lang3.StringUtils;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.willwinder.universalgcodesender;
package com.willwinder.universalgcodesender.uielements.components;

import java.awt.Component;
import java.awt.Window;
Expand All @@ -8,6 +8,11 @@
import java.awt.event.WindowEvent;
import javax.swing.SwingUtilities;

/**
* Used for focusing a field in an JOptionDialog.
*
* Source from: https://tips4java.wordpress.com/2010/03/14/dialog-focus/
*/
public class RequestFocusListener implements HierarchyListener {

@Override
Expand Down

0 comments on commit b5a2818

Please sign in to comment.