MCPcopy Create free account
hub / github.com/beanshell/beanshell / init

Method init

src/bsh/util/JRemoteApplet.java:44–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 InputStream in;
43
44 public void init()
45 {
46 getContentPane().setLayout(new BorderLayout());
47
48 try {
49 URL base = getDocumentBase();
50
51 // connect to session server on port (httpd + 1)
52 Socket s = new Socket(base.getHost(), base.getPort() + 1);
53 out = s.getOutputStream();
54 in = s.getInputStream();
55 } catch(IOException e) {
56 getContentPane().add("Center",
57 new Label("Remote Connection Failed", Label.CENTER));
58 return;
59 }
60
61 Component console = new JConsole(in, out);
62 getContentPane().add("Center", console);
63 }
64}
65

Callers

nothing calls this directly

Calls 3

getOutputStreamMethod · 0.80
getInputStreamMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected