import javax.swing.*;
public class MyClass {
public static void main(String[] args)throws Exception {
new Extra();
}
}
class Extra extends JFrame
{
JMenuBar mb;
JMenu File,View,Settings,Audio,Video,Help;
JMenuItem OpenFile,OpenDirectory,OpenDisc,Exit,PlayList, Messages,SwitchInterface,AddInterface,Bookmarks,Pr eferences,About;
Extra()
{
super("VLC Player");
setLayout(null);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
mb=new JMenuBar();
File=new JMenu("File");
View=new JMenu("View");
Settings=new JMenu("Settings");
Audio=new JMenu("Audio");
Video=new JMenu("Video");
Help=new JMenu("Help");
OpenFile=new JMenuItem("Open File");
OpenDirectory=new JMenuItem("Open Directory");
OpenDisc=new JMenuItem("Open Disc");
Exit=new JMenuItem("Exit");
PlayList=new JMenuItem("PlayList");
Messages=new JMenuItem("Messages");
SwitchInterface=new JMenuItem("Switch Interface");
AddInterface=new JMenuItem("Add Interface");
Bookmarks=new JMenuItem("Bookmarks");
Preferences=new JMenuItem("Preferences");
About=new JMenuItem("About");
mb.add(File);
mb.add(View);
mb.add(Settings);
mb.add(Help);
File.setBounds(0, 0, 5,2 );
File.add(OpenFile);
File.add(OpenDirectory);
File.add(OpenDisc);
File.add(Exit);
View.add(PlayList);
View.add(Messages);
View.setBounds(5, 0, 5,2);
Settings.add(SwitchInterface);
Settings.add(AddInterface);
Settings.add(Bookmarks);
Settings.add(Preferences);
Settings.setBounds(10,0,5,2);
Help.add(About);
Help.setBounds(15, 0, 5, 2);
pack();
setVisible(true);
mb.setVisible(true);
File.setVisible(true);
View.setVisible(true);
setSize(600,600);
}
}