private void launchEventPanel(String title) {
EventQueue.invokeLater(new Runnable(title) {
public void run() {
JFrame myFrame = new JFrame();
myFrame.setTitle(this.val$title);
myFrame.setIconImage(CrConference.this.mainCore.myPanel.myIconManager.getPromptIcon(Mart.class.toString()));
myFrame.getContentPane().add(Conference.this.myEventPanel, "Center");
myFrame.pack();
myFrame.setVisible(true);
}
});
}
i got some code that i am trying to compile and understand. help highly appreciated
This line:
Is simply setting the title of a
JFrameobject, using the value of the attributeval$titlefor doing so.val$titleis an instance attribute of the current class, its name is a bit unusual (because of the$) but nevertheless, valid for an identifier in Java.