my following codes are not compiled
frame.setLayout(flow) and
frame.add(menubar);
The full codes are as follows:-
static Frame frame = new Frame("This is frame");
public static void main(String[]args){
frame.setBounds(100,200,500,500);
frame.add(menubar);
Button button1 = new Button("Button # 1");
frame.add(button1);
Button button2 = new Button("Button # 2");
frame.add(button2);
MenuBar menubar = new MenuBar();
frame.add(menubar);