package jsp.tutoriais.tutorial_003_001_jsp; /* * AppletPesquisa.java * * Created on 7 de Janeiro de 2001, 13:37 */ /** * * @author unknown * @version */ public class AppletPesquisa extends java.applet.Applet { /** Initializes the applet AppletPesquisa */ public void init () { initComponents (); } /** This method is called from within the init() method to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the FormEditor. */ private void initComponents() {//GEN-BEGIN:initComponents button1 = new java.awt.Button(); setLayout(new java.awt.BorderLayout()); button1.setFont(new java.awt.Font ("Dialog", 0, 11)); button1.setLabel("button1"); button1.setName("button1"); button1.setBackground(java.awt.Color.lightGray); button1.setForeground(java.awt.Color.black); button1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { button1ActionPerformed(evt); } } ); add(button1, java.awt.BorderLayout.CENTER); }//GEN-END:initComponents private void button1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_button1ActionPerformed // Add your handling code here: (new AplicPesquisa()).show(); }//GEN-LAST:event_button1ActionPerformed // Variables declaration - do not modify//GEN-BEGIN:variables private java.awt.Button button1; // End of variables declaration//GEN-END:variables }