More Related Content
Similar to Gwt Techtalk Präsentation
Similar to Gwt Techtalk Präsentation (20)
Gwt Techtalk Präsentation
- 6. Hallo, AJAX vs. Hallo, Swing public class MyApplication implements EntryPoint { public void onModuleLoad() { Button b = new Button ("Click me" , new ClickListener() { public void onClick(Widget sender) { Window.alert( "Hello, AJAX" ); } }); RootPanel.get().add(b); } } public class MyApplication { public static void main(String[] args) { final JFrame frame = new JFrame( "Hallo, Swing" ); JButton b = new JButton( "Click me" ); b.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { JOptionPane. showMessageDialog (frame, "Hallo, Swing" ); } }); frame.getContentPane().add(b); frame.setSize(200, 100); frame.setVisible( true ); } }