Package org.resmedicinae.resmedlib.term

Examples of org.resmedicinae.resmedlib.term.String.substring()


            if (returnVal == JFileChooser.APPROVE_OPTION) {
                String curFile = chooser.getSelectedFile().getAbsolutePath();
                System.out.println("B: curfile: " + curFile);
                curFile = curFile.replace('\\', '/');
                setIndexFile(curFile);
                setGlobalPath(curFile.substring(0, curFile.lastIndexOf("/") + 1));
                // setUpdateAfterChangingHealthRecordData();
                System.out.println("You choose to open this file: " + curFile);
            } else
                System.out.println("returnVal: " + returnVal);
        } catch (Exception e) {
View Full Code Here


        int returnVal = chooser.showSaveDialog(new JFrame());
        if (returnVal == JFileChooser.APPROVE_OPTION) {
            String curFile = chooser.getSelectedFile().getAbsolutePath();
            curFile = curFile.replace('\\', '/');
            setIndexFile(curFile);
            setGlobalPath(curFile.substring(0, curFile.lastIndexOf("/") + 1));
            System.out.println("You choose to save this file: " + curFile);
            System.out.println("save index...");
            saveHealthRecordIndex(healthRecordIndex);
            saveAllHealthRecords(loadedHealthRecords);
            System.out.println("healthRecord index saved");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.