- Joined
- Nov 19, 2020
- Posts
- 2,684
- Reaction
- 4,446
- Points
- 1,548
How to automatically transfer data entered from the inputs from JFrame Form to Excel?
XSSFWorkbook workbook = new XSSFWorkbook();
XSSFSheet sheet = workbook.createSheet("Sheet1");
XSSFRow row = sheet.createRow(rowNum);
XSSFCell cell = row.createCell(colNum);
cell.setCellValue(inputData);
FileOutputStream outputStream = new FileOutputStream("path/to/excel/file.xlsx");
workbook.write(outputStream);
workbook.close();