JPanel mainPanel = new JPanel(new BorderLayout());
JTextArea messageArea = new JTextArea("Close this window to shut down the naming service");
mainPanel.add(messageArea, BorderLayout.CENTER);
getContentPane().add(mainPanel);
setSize(250, 100);
private void
startBaseContext()
try {
BaseContextImpl baseContext = new BaseContextImpl();
baseContext.vendStubViaSocket();
} catch (RemoteException e) {
System.out.println("Couldn't Create Base Context.");
System.out.println("Error was " + e);
e.printStackTrace();
}