V
V S Rawat
Of a piece of code is written after the closing } of
previous method and before the { of the next one, when will
it get executed, if ever.
When will the "menu things" will get assigned in the
following description, mentioned after c2 and before c3?
-Rawat
---------------
class C1 extends JPanel implements ActionListener,
DocumentListener,
MouseListener, KeyListener {
code....
public static void main (String[] args) {
code....
}
public C1 () {
code....
} // end of constructor
private void c2 () {
} //c2
private String[] menubar_info;
private JMenuBar menubar = new JMenuBar();
private JMenu menu1 = new JMenu();
private JMenu menu2 = new JMenu();
private JMenu menu3 = new JMenu();
private void c3 () {
} //c3
-----------------------------
previous method and before the { of the next one, when will
it get executed, if ever.
When will the "menu things" will get assigned in the
following description, mentioned after c2 and before c3?
-Rawat
---------------
class C1 extends JPanel implements ActionListener,
DocumentListener,
MouseListener, KeyListener {
code....
public static void main (String[] args) {
code....
}
public C1 () {
code....
} // end of constructor
private void c2 () {
} //c2
private String[] menubar_info;
private JMenuBar menubar = new JMenuBar();
private JMenu menu1 = new JMenu();
private JMenu menu2 = new JMenu();
private JMenu menu3 = new JMenu();
private void c3 () {
} //c3
-----------------------------