(main_menu);
/ / -----------------------------------------
/ / Вкладка допомогаmenu_help=new JMenu («Допомога»); _help. setFont (font);
/ / кнопка довідкова інформаціяinfo_prog_item=new JMenuItem («Довідкова інформація»); _prog_item. setFont (font); _help. add (info_prog_item); _prog_item. addActionListener (new ActionListener () {void actionPerformed (ActionEvent e) {Main. info_program ();
}});
/ / кнопка про розробнікаabout_info_item=new JMenuItem («Про розробник»); _info_item. setFont (font); _help. add (about_info_item); _info_item. addActionListener (new ActionListener () {void actionPerformed (ActionEvent e) {about_info ();
}});
/ / -------------------------------_menu. add (menu_help); _menu. setJMenuBar (main_menu);
/ / ------------------------------- _menu. setLocationRelativeTo (null); _menu. setVisible (true);
} static void main (String args []) {. invokeLater (new Runnable () {void run () {menu ();
}}); }
@ Overridevoid actionPerformed (ActionEvent e) {
/ / TODO Auto-generated method stub}}
Файл about_info. java:
package Main; java. awt. Color; java. awt. GridLayout; java. io. BufferedReader; java. io. FileNotFoundException; java. io. FileReader; java. io. IOException; javax. swing. ImageIcon; javax. swing. JFrame; javax. swing. JLabel; javax. swing. JPanel; javax. swing. JTextArea; javax. swing. SwingUtilities; class about_info {_info () {frm_about=new JFrame («Про розробник»); _about. setSize (600,225); _about. setDefaultCloseOperation (JFrame. DISPOSE_ON_CLOSE); panel1=new JPanel ();. setLayout (new GridLayout (1,2));. setBackground (Color. BLACK); path=«images / logo.jpg »;. net. URL imgURL=menu. class. getResource (path); icon=new ImageIcon (imgURL); image1=new JLabel («»);. setIcon (icon); _about. add (image1);. add (image1); about_textarea=new JTextArea (20, 20); contents=new StringBuffer (); reader=null; {= new BufferedReader (new FileReader («resources info_prog. txt»)); text=null; ( (text=reader. readLine ())!=null) {. append (text). append (System. getProperty («line. separator»));
}} (FileNotFoundException e1) {. printStackTrace ();
} catch (IOException e1) {. printStackTrace ();
} finally {{(reader!=null) {. close ();
}} (IOException e1) {. printStackTrace ();
}} _textarea. setText (contents. toString ()); _textarea. setEditable (false);. add (about_textarea); _about. add (panel1); _about. setResizable (false); _about. setLocationRelativeTo (null); _about. setVisible (true);
} static void main (String args []) {. invokeLater (new Runnable () {void run () {about_info ();
}}); }}
Файл home_frank. java:
package Main. Paths; java. awt. Font; java. awt. GridLayout; java. awt. event. MouseEvent; java. awt. event. MouseListener; javax. swing. ImageIcon; javax. swing. JButton; javax. swing. JFrame; javax. swing. JLabel; javax...