Compare commits

..

No commits in common. "5e93294c386edafb6f921d58d3bc42edafc563d1" and "ff0c3f0b989f35a3cbd2c21cd29603d614485f9d" have entirely different histories.

2 changed files with 304 additions and 315 deletions

View file

@ -29,7 +29,6 @@ import java.util.Set;
* @version 2.04 2021/9/11 Test as plugin
*/
public class ExBoxFrame extends JFrame implements ActionListener, ItemListener {
private final Dimension UHDTHRESHOLD = new Dimension(2000, 1500);
private final String STANDARDENCODING = "UTF-8";
private JMenuItem connect, exit, open, test, retest, textView, graphicView, clear;
@ -155,18 +154,8 @@ public class ExBoxFrame extends JFrame implements ActionListener, ItemListener {
ex.printStackTrace();
}
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
double scale = (
screenSize.getWidth() > UHDTHRESHOLD.getWidth() &&
screenSize.getHeight() > UHDTHRESHOLD.getHeight()) ? 2 : 1;
scale = Math.max(scale, Toolkit.getDefaultToolkit().getScreenResolution() / 96.0);
setFontSize((int) (11 * scale));
setSize(
new Dimension((int)(400 * scale), (int)(400 * scale)));
setFontSize(11);
setSize(new Dimension(400, 400));
setTitle("ExBox");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
initComponents();

View file

@ -63,7 +63,7 @@ public class MyCompetitor implements Comparable<MyCompetitor> {
@Override
public int hashCode() {
int hashCode = 13;
hashCode += getName().hashCode();
hashCode += name.hashCode();
hashCode *= 17;
return hashCode + rank;
}