try { ClientSurvey survey = new Survey("surveyGettingStarted.xml"); SurveyPanel surveyPanel = new SurveyPanel(survey); survey.addSurveyListener(this); frame.setLayout(new BorderLayout()); frame.add(surveyPanel, BorderLayout.CENTER); frame.setJMenuBar(new SurveyMenu(survey, frame)); } catch (Exception e) { e.printStackTrace(); }
The Survey, ClientSurvey, SurveyPanel and the SurveyAdapter are the ONLY objects that the client should interact with directly. Even then, there may be public methods in this class that are marked "for internal use only". Methods marked "for internal use only" may be renamed, removed or replaced in future versions. Because of this uncertain future, it is highly recommended you don't use these methods: Your application may not compile when you upgrade. Most other classes are marked "for internal use only" but even if they aren't, these are the only classes that you should be interacting with. Copyright (c)2007, Daniel Kaplan
@author Daniel Kaplan
@since 7.10.4
|
|