package inquiricaoclient; import javax.swing.*; import java.awt.*; public class AppletResultados extends JApplet { private JLabel lblTitulo = new JLabel(); public static JTable tblResultados = new JTable(); public AppletResultados() { } public void init() { try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } public static void main(String[] args) { AppletResultados applet = new AppletResultados(); 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); tblResultados.setBounds(new Rectangle(0, 60, 690, 410)); this.getContentPane().add(tblResultados, null); this.getContentPane().add(lblTitulo, null); } static { try { // UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); // UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName()); } catch(Exception e) { } } }