All pastes #734857 Raw Edit

Mine

public text v1 · immutable
·published 2007-10-13 02:23 UTC
rendered paste body
public StartGui() {
        
         //lanuch Status window to keep user happy. *** THIS SHOULD LOAD FIRST BUT IT DOESN't *****
        statusFrame = new StatusFrame("Loading Blackout Player..");
        this.center(statusFrame);
        statusFrame.setVisible(true);
       
        
        
        //Initialize the Main player window and it's components
        initComponents();       
        
        //Setup & Display Main Player Frame
        this.setPreferredSize(new Dimension(1142, 900));
        this.setSize(new Dimension(1142, 850));
        this.center(this);
        this.setVisible(true); /* THIS LOADS AT SAME TIME AS statusFrame ABOVE!! ****/
        
        //Access the config files.
        FileAccess fileAccess = new FileAccess("config.xml");      
       
        //Check for non registered users
        if(fileAccess.countUsersInConfig() == 0){
            //display registration panel
            NewAccountFrame accountFrame = new NewAccountFrame(this);
            this.center(accountFrame);
            accountFrame.setVisible(true);
        }
        else{
            //Display Login panel
            LoginWindow loginWindow = new LoginWindow(this);
            center(loginWindow);
            loginWindow.setVisible(true);
        }
        
               
        //Start CacheManager Engine For media access
        cacheManager = new CacheManager();
        
        //Connect The Advertisement logic to display panel 
        adCore = new AdvertisementCore(this, adImagePanel);
        adCore.startAdRoatation(); 
        
    }