相关疑难解决方法(0)

NSEvent中的断言失败?

感谢您抽时间阅读.我是JavaFX的新手,在我的编译器中有一个奇怪的错误,我想要一些见解.

这是错误:

2018-09-13 19:09:36.387 java[8040:660455] unrecognized type is 4294967295
2018-09-13 19:09:36.387 java[8040:660455] *** Assertion failure in -[NSEvent _initWithCGEvent:eventRef:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1652/AppKit.subproj/NSEvent.m:1969
Run Code Online (Sandbox Code Playgroud)

这是我正在使用的代码:这是一个名为applicationSettings的.java文件

public static double lookupUser(String name, String password) throws IOException {
    InputStream inputStream = applicationSettings.class.getResourceAsStream("/files/users.xlsx");
    XSSFWorkbook workbook = new XSSFWorkbook(inputStream);
    XSSFSheet sheet = workbook.getSheetAt(0);
    Integer lastRow = sheet.getPhysicalNumberOfRows();
    int currentRow = 1;

    while(currentRow < lastRow) {
        if(sheet.getRow(currentRow).getCell(0).getStringCellValue().toLowerCase().equals(name.toLowerCase())) {
            if(sheet.getRow(currentRow).getCell(1).getStringCellValue().toLowerCase().equals(password.toLowerCase())) {
                double accessLevel = sheet.getRow(currentRow).getCell(2).getNumericCellValue();
                System.out.println(accessLevel);
                return accessLevel;
            }
        }
        currentRow++;
    }
    return 4.0;
}

}
Run Code Online (Sandbox Code Playgroud)

这是一个名为loginScreen的.java文件

EventHandler<ActionEvent> …
Run Code Online (Sandbox Code Playgroud)

java javafx

12
推荐指数
1
解决办法
4711
查看次数

标签 统计

java ×1

javafx ×1