Package club.beans

Examples of club.beans.ConfigBean


        float duration = Float.parseFloat(tfTime.getText());
        String venue = tfVenue.getText();
        int type = ((EventTypeBean)cbbEventType.getSelectedItem()).getEventType();
        double fee = Double.parseDouble(tfFee.getText());
        DataConfig dataConfig = new DataConfig();
        ConfigBean config = dataConfig.readConfigFile();
        int adminID = config.getAdminID();
       
        int status = ((EventStatusBean)cbbStatus.getSelectedItem()).getID();
        double cost = 1;
        String name = tfName.getText();
        if (status == -1 && dataEvent.isRemovable(currentID)==false){
View Full Code Here


    //Check if the config file is exist or not and work with it
    private boolean initConfig() {
        DataConfig dataConfig = new DataConfig();
        if (dataConfig.isConfigFileExist()) {
            //System.out.println("Exist, now should try to read the config File");
            ConfigBean configBean;
            //read object from config file
            configBean = dataConfig.readConfigFile();
            if (configBean != null) {
                //start checking object
                // System.out.println("not null");
                if (DataConfig.IsValidDBInfo(configBean)) {
                    //db info is ok, now check the admin
                    if (dataConfig.IsValidAdminInfo(configBean)) {
                        //admin info ok, now we should clear ther admin info then open the main form
                        //configBean.setAdminID(-1);
                        configBean.setAdminAccount("");
                        dataConfig.writeConfigFile(configBean);
                        return true;
                    } else {
                        //admin info is not ok, open login dialog
                        (new Login()).setVisible(true);
View Full Code Here

    private void CheckfeeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CheckfeeActionPerformed
        // TODO add your handling code here:
        DataMember dt=new DataMember();
        DataConfig dataConfig = new DataConfig();
        ConfigBean config = dataConfig.readConfigFile();
        int adminID = config.getAdminID();
        dt.checkfee(adminID);
    }//GEN-LAST:event_CheckfeeActionPerformed
View Full Code Here

TOP

Related Classes of club.beans.ConfigBean

Copyright © 2018 www.massapicom. 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.