Advanced Java 2 Platform HOW TO PROGRAM phần 7 pps
... ); 21 8 21 9 // empty ShoppingCart for further shopping 22 0 orderProductModels = new ArrayList(); 22 1 22 2 // return Order EJB that was created 22 3 return order; 22 4 22 5 } // end try 22 6 22 7 ... double getTotal() 23 6 { 23 7 double total = 0.0; 23 8 Iterator iterator = orderProductModels.iterator(); 23 9 24 0 // calculate Order's total cost 24 1 while ( iterato...
Ngày tải lên: 09/08/2014, 12:23
... 6 .21 Fig. 6 .21 Fig. 6 .21 Swing tab of the Component Palette. Fig. 6 .22 Fig. 6 .22 Fig. 6 .22 Fig. 6 .22 JButton icon in the Component Palette. Fig. 6 .23 Fig. 6 .23 Fig. 6 .23 Fig. 6 .23 Adding a JButton to AnimationWindow. Fig. ... InternalFrameEvent event ) 27 2 { 27 3 DrawingInternalFrame frame = 27 4 ( DrawingInternalFrame ) event.getSource(); 27 5 27 6 // set saveMen...
Ngày tải lên: 09/08/2014, 12:22
... name; 17 public String filter; Fig. 23 .20 Fig. 23 .20 Fig. 23 .20 Fig. 23 .20 ImageEntry defines the Entrys to store in the JavaSpaces service (part 1 of 2) . Chapter 23 JavaSpaces 128 7 23 .11 .2 Discovering ... net.jini.lookup.ServiceIDListener; 22 Fig. 22 . 37 Fig. 22 .37Fig. 22 . 37 Fig. 22 . 37 SeminarInfoJoinService uses class JoinManager to facilitate reg...
Ngày tải lên: 09/08/2014, 12:23
Advanced Java 2 Platform HOW TO PROGRAM phần 1 pptx
... Accessibility package. 72 2.19 Actions sampleAction and exitAction of ActionSample2 .77 2. 20 AccessibleDescription of sampleButton .77 2. 21 AccessibleDescription of exitButton .78 2. 22 Sample Action menu ... lookup services. 122 0 22 .22 UnicastSeminarInfoClient is a client for the SeminarInfo service. 122 4 22 .23 SeminarService.jar contents. 122 8 22 .24 SeminarClient.jar conten...
Ngày tải lên: 09/08/2014, 12:22
Advanced Java 2 Platform HOW TO PROGRAM phần 2 ppsx
... imagePanel; 21 22 // image filters 23 private Java2 DImageFilter invertFilter; 24 private Java2 DImageFilter sharpenFilter; 25 private Java2 DImageFilter blurFilter; 26 private Java2 DImageFilter ... ); 36 37 } // end method processImage 38 } Fig. 4. 12 Fig. 4.12Fig. 4. 12 Fig. 4. 12 ColorFilter changes the colors in a BufferedImage (part 2 of 2) . 1 52 Graphics Programming...
Ngày tải lên: 09/08/2014, 12:22
Advanced Java 2 Platform HOW TO PROGRAM phần 4 potx
... ) 27 0 { 27 1 // get currently active window 27 2 AddressBookEntryFrame currentFrame = 27 3 ( AddressBookEntryFrame ) desktop.getSelectedFrame(); 27 4 27 5 // get AddressBookEntry from window 27 6 ... Method actionPerformed (lines 26 9–309) obtains a reference to the active internal frame (lines 27 2 27 3) and gets the currently displayed AddressBookEntry (lines 27 6 27...
Ngày tải lên: 09/08/2014, 12:22
Advanced Java 2 Platform HOW TO PROGRAM phần 5 ppt
... request.getSession(); 26 9 27 0 // store correct answer in session 27 1 session.setAttribute( "correctAnswer", 27 2 new Integer( correctAnswer ) ); 27 3 27 4 // store correct tip name 27 5 session.setAttribute( ... are returned to the Add Files to .WAR - Add Class Files window. In that window, you should be able to locate the com directory (Fig. 11 .23 ). Fig. 11...
Ngày tải lên: 09/08/2014, 12:22
Advanced Java 2 Platform HOW TO PROGRAM phần 6 pptx
... 22 0 22 1 // add inputPanel and buttonPanel to new JPanel 22 2 JPanel controlPanel = 22 3 new JPanel( new GridLayout( 2, 2 ) ); 22 4 22 5 controlPanel.add( inputPanel ); 22 6 controlPanel.add( buttonPanel ... ); 21 5 21 6 // add JButton components to new JPanel 21 7 JPanel buttonPanel = new JPanel( new FlowLayout() ); 21 8 buttonPanel.add( factorialButton ); 21 9 buttonPa...
Ngày tải lên: 09/08/2014, 12:23
Advanced Java 2 Platform HOW TO PROGRAM phần 9 ppt
... called when server shuting down 20 void serverStopping(); 21 }; 22 }; 23 24 module server { 25 interface StoppableChatServer { 26 void stopServer(); 27 }; 28 29 interface ChatServer { 30 const ... seq ); 25 void arrayMethod( int[] array ); 26 void intOutMethod( org.omg.CORBA.IntHolder intValue ); 27 } // interface InterfaceNameOperations Fig. 26 . 12 Fig. 26 .12Fig. 26 . 12...
Ngày tải lên: 09/08/2014, 12:23
Advanced Java 2 Platform HOW TO PROGRAM phần 10 pdf
... java XMLInfo input.xml" ); 21 System.exit( 1 ); 22 } 23 24 try { 25 26 // create DocumentBuilderFactory 27 DocumentBuilderFactory factory = 28 DocumentBuilderFactory.newInstance(); 29 30 ... document; 20 21 public ReplaceText() 22 { 23 // parse document, find/replace element, output result 24 try { 25 26 // obtain default parser 27 DocumentBuilderFactory factory =...
Ngày tải lên: 09/08/2014, 12:23