All pastes #2074686 Raw Edit

Anonymous

public text v1 · immutable
#2074686 ·published 2011-06-04 18:12 UTC
rendered paste body
public class MyApplet extends JApplet {
	public void init() {
		super.init();
		JButton btnLaunch = new JButton("Launch");
		btnLaunch.addActionListener(new ActionListener() {
			@Override public void actionPerformed(ActionEvent e) {
				new FakeMainWindow(getParameter("server"));
			}
		});
		getContentPane().add(btnLaunch);
	}
}

---

public class FakeMainWindow extends JFrame {
	private static final long serialVersionUID = -2398748084588857421L;

	public FakeMainWindow(String x) {
		super("test: " + x);
		setVisible(true);
	}
}