int 
                                LAX_air_trafic(PrintWriter out) { 
                                // This instantiates 
                                and initializes the Airplane-component. 
                                // To test, This lazy implementation using 
                                static data. 
                                // But, one could access the data to create 
                                a list of flights 
                                // in the Air space. Then write a for loop 
                                and create Airline 
                                // component 
                                for each flight in the Air space of the city.  
                                          
                                set_bg_image(out);  
                                            
                                Airplane Al2 = new 
                                Airplane(aci, "AA486","SF37", 
                                2, Flight_data_url); 
                                            
                                Al2.set_location 
                                (300, 80, 200); 
                                            
                                Al2.setCallBackName("flight_info_table.Display_info"); 
                                            
                                Al2.setSmallMessages("SFO-to-LAX", 
                                "Radio Ch#27"); 
                                            
                                Al2.CGM(out);  
                                 
                                            
                                Airplane Al3 = new 
                                Airplane(aci, "UA486","DC10", 
                                4, Flight_data_url); 
                                            
                                Al3.set_location 
                                (400, 400, 45); 
                                            
                                Al3.setCallBackName("flight_info_table.Display_info"); 
                                            
                                Al3.setSmallMessages("SFO-to-DFW", 
                                "Radio Ch#18"); 
                                            
                                Al3.CGM(out);  
                                 
                                            
                                Airplane Al4 = new 
                                Airplane(aci, "NW63","A330", 
                                3, Flight_data_url); 
                                            
                                Al4.set_location 
                                (130, 200, 80); 
                                            
                                Al4.setCallBackName("flight_info_table.Display_info"); 
                                            
                                Al4.setSmallMessages("LAG-to-SFO", 
                                "Radio Ch#45"); 
                                            
                                Al4.CGM(out); 
                                 
                                            
                                Airplane Al5 = new 
                                Airplane(aci, "SW36","B747", 
                                6, Flight_data_url); 
                                            
                                Al5.set_location 
                                (260, 200, 120); 
                                            
                                Al5.setCallBackName("flight_info_table.Display_info"); 
                                            
                                Al5.setSmallMessages("ATL-to-SFO", 
                                "Radio Ch#27"); 
                                            
                                Al5.CGM(out);  
                                 
                                            
                                Airplane Al6 = new 
                                Airplane(aci, "DEL36","B340", 
                                0, Flight_data_url); 
                                            
                                Al6.set_location 
                                (163, 280, 80); 
                                            
                                Al6.setCallBackName("flight_info_table.Display_info"); 
                                            
                                Al6.setSmallMessages("DUL-to-SFO", 
                                "Radio Ch#43"); 
                                            
                                Al6.CGM(out); 
                                 
                                            
                                return(0); 
                                }  |