What is "val$title" (dollar sign in expression) in Java?
java, swing
Solution
This line:
myFrame.setTitle(this.val$title);
Is simply setting the title of a `JFrame` object, using the value of the attribute `val$title` for doing so. `val$title` is an instance attribute of the current class, its name is a bit unusual (because of the `$`) but nevertheless, valid for an identifier in Java.
Problem
``` 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