package inquiricaoclient; import javax.swing.*; import java.awt.*; public class AppletResultados2 extends JApplet { private JLabel lblTitulo = new JLabel(); private JScrollPane jScrollPane1 = new JScrollPane(); private static JTable tblResultados = new JTable(); public AppletResultados2() { } public void init() { try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } public static void main(String[] args) { AppletResultados2 applet = new AppletResultados2(); JFrame frame = new JFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane().add(applet, BorderLayout.CENTER); frame.setTitle("Inquirição de Génere - WASP Server"); applet.init(); applet.start(); frame.setSize(700, 500); Dimension d = Toolkit.getDefaultToolkit().getScreenSize(); Dimension frameSize = frame.getSize(); frame.setLocation((d.width - frameSize.width) / 2, (d.height - frameSize.height) / 2); frame.setVisible(true); } public void start() { } public void stop() { } public void destroy() { } private void jbInit() throws Exception { this.getContentPane().setLayout(null); this.setSize(new Dimension(552, 412)); lblTitulo.setText("Pesquisa detalhada de processos"); lblTitulo.setBounds(new Rectangle(80, 30, 420, 25)); lblTitulo.setFont(new Font("Dialog", 1, 23)); lblTitulo.setHorizontalAlignment(SwingConstants.CENTER); jScrollPane1.setBounds(new Rectangle(0, 80, 690, 385)); jScrollPane1.getViewport().add(tblResultados, null); this.getContentPane().add(jScrollPane1, null); this.getContentPane().add(lblTitulo, null); } public static JTable getTabelaResultados() { return tblResultados; } }