请问要精通java都需要学什么呀,我看java有半个多学期了,但到后来总是感觉许多东西都是要背的,我该怎么办呀?

求助
我想在主类中调用另外一个类
怎么实现啊
下是我的代码:import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.io.*;
public class InfManger extends JFrame implements ActionListener
{ JMenuItem 录入,修改,查询,删除,文本;
 public InfManger(){
   super("信息管理系统");
   setSize(300,200);
JMenuBar   bar=new JMenuBar();
JMenuItem   录入=new JMenuItem("录入学生基本信息");
 JMenuItem  修改=new JMenuItem("修改学生基本信息");
 JMenuItem  查询=new JMenuItem("查询学生基本信息");
 JMenuItem  删除=new JMenuItem("删除学生基本信息");
 JMenuItem  文本=new JMenuItem("文本信息");
  JMenu   fileMenu=new JMenu("选项");
  JMenu   other=new JMenu("其他");
  //JPanel panel=new JPanel();
     fileMenu.add(录入);
     fileMenu.add(修改);
     fileMenu.add(查询);
     fileMenu.add(删除);
     other.add(文本);
     bar.add(fileMenu);
     bar.add(other);
     setJMenuBar(bar);
     //panel.add(label);
   JLabel label=new JLabel("欢迎使用学生基本信息管理系统",JLabel.CENTER);
     label.setFont(new Font("TimesRoman",Font.BOLD,24));
     label.setForeground(Color.red);
     //panel.add(label);
     录入.addActionListener(this);
     修改.addActionListener(this);
     查询.addActionListener(this);
     删除.addActionListener(this);
     addWindowListener(new WindowAdapter()
                    { public void windowClosing(WindowEvent e)
                       {
                          System.exit(0);
                         }
                    });
    setVisible(true);
    setBounds(100,50,420,380);
    validate();
    }
 public void actionPerformed(ActionEvent e)
   {
     if(e.getSource()==录入)
     {
         new InFormation();
     }
       /*{
         card.show(pCenter,"录入界面");
       }
     else if(e.getSource()==修改)
       {
         card.show(pCenter,"修改界面");
       }
     else if(e.getSource()==查询)
      {
         基本信息查询.setVisible(true);
      }
     else if(e.getSource()==删除)
      {
         card.show(pCenter,"删除界面");
      }
   }*/
   }
  public static void main(String args[])
   {
     new InfManger();
   }
}
另外一个类;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.io.*;
public class InFormation extends JFrame implements ActionListener
{
  JTextField 学号,姓名,专业,年级,出生;                 
  JRadioButton 男,女;
  JButton 录入,重置;
public InFormation()
{
 super("录入信息");
 setSize(300,200);
 JPanel Pane1=new JPanel();
 学号=new JTextField(10);
 姓名=new JTextField(10);
 专业=new JTextField(10);
 年级=new JTextField(10);
 出生=new JTextField(10);
 ButtonGroup group=new ButtonGroup();
 男=new JRadioButton("男",true);
 女=new JRadioButton("女",false);
 group.add(男);
 group.add(女);
 录入=new JButton("录入");
 重置=new JButton("重置");
 录入.addActionListener(this);
 重置.addActionListener(this);
 Pane1.add(学号);
 Pane1.add(姓名);
 Pane1.add(专业);
 Pane1.add(年级);
 Pane1.add(出生);
 Pane1.add(男);
 Pane1.add(女);
 Pane1.add(录入);
 Pane1.add(重置);
 addWindowListener(new WindowAdapter()
                    { public void windowClosing(WindowEvent e)
                       {
                          System.exit(0);
                         }
                    });
   Container contentPane=getContentPane();
   contentPane.add(Pane1);                 
    setVisible(true);
    setBounds(100,50,420,380);
    validate();
 //validate();
}
// public static void main(String args[])
 //  {
 //    new InFormation();
 //  }
public void actionPerformed(ActionEvent e)
{
}
}





