Курсовая работа: Объектно-ориентированное программирование
e[i].writeData(out);
}
}
class ButtonFrame extends JFrame
{
public ButtonFrame()
{
Toolkit kit = Toolkit.getDefaultToolkit();
Dimension screenSize = kit.getScreenSize();
int screenHeight = screenSize.height;
int screenWidth = screenSize.width;
setSize(screenWidth/2,screenHeight/2);
setLocation(screenWidth/4,screenHeight/4);
Image img = kit.getImage("icon.gif");
setIconImage(img);
setTitle("CenteredFrame");
Container contantPane = getContentPane();
JMenuBar menuBar = new JMenuBar();
JMenu stMenu = new JMenu("Студент");
JMenuItem WorkSpace = new JMenuItem("Просмотретьматериал",new ImageIcon("page_bookmark.gif"));
stMenu.add(WorkSpace);
menuBar.add(stMenu);
JButton yellowButton = new JButton("WorkSpace");
JButton greenButton = new JButton("I_want_to_see");
JButton blueButton = new JButton("I am a teacher");
JButton redButton = new JButton("Check_Knowlarge");
JButton ExitButton = new JButton("Exit");
JPanel wer= new JPanel();
wer.add(yellowButton);