String inputText = (Anonymous web server) textInputArea.getText(); if (inputText.length() > 0)
Wednesday, December 12th, 2007String inputText = textInputArea.getText(); if (inputText.length() > 0) playerModel.play(inputText); for the Speak button and textInputArea.setText(”"); for the Clear button. Figure 5.2 shows how the finished PlayerPanel looks in the Visual Editor. The large empty area in the center is reserved for the Face component; to the left and right of this area are spacers. 95 Project One: Duke Speaks Figure 5.2 Integration The graphical design of the user interface of your application is now nearly completed. What is still missing is the integration of the Face component, the initialization of the sliders, and making the content pane visible to the application. You need to embed the Face component into the centerPanel as follows: private javax.swing.JPanel getCenterPanel() { if(centerPanel == null) { centerPanel = new javax.swing.JPanel(); centerPanel.setLayout(new java.awt.GridLayout(1,1)); centerPanel.add(face); } return centerPanel; }
With our Unix hosting accounts you have total control of your Web site content from anywhere in the world.For more information please follow link Unix Web Hosting.