2014-09-10 113 views
1

我得到關於「super(」title「)」,構造函數Object(String)未定義。這不僅僅是這段代碼,我創建的每個程序都包含「super」,這個錯誤讓我相信,這個問題具有一般性質(eclipse/missing import)。 感謝構造函數Object(String)未定義

import java.awt.Color; 
import java.awt.FlowLayout;    
import javax.swing.JFrame;    
import javax.swing.JTextField; 
import java.awt.Font;    
import javax.swing.ButtonGroup; 
import javax.swing.JFrame; 
import javax.swing.JButton; 
import javax.swing.Icon; 
import javax.swing.ImageIcon; 
import javax.swing.JLabel; 
import javax.swing.JList; 
import javax.swing.JOptionPane; 
import javax.swing.JCheckBox; 
import javax.swing.JPanel; 
import javax.swing.JScrollPane; 
import javax.swing.ListSelectionModel; 
import java.awt.event.ActionEvent; 
import java.awt.event.ActionListener; 
import java.awt.event.ItemEvent; 
import java.awt.event.ItemListener; 
import javax.swing.JRadioButton; 
import javax.swing.event.ListSelectionListener; 
import javax.swing.JScrollPane; 

public class MouseEventHandling { 
    private JPanel mousepanel; 
    private JLabel statusbar;   

    public MouseEventHandling() { 
     super("title"); 

     mousepanel = new JPanel(); 
     mousepanel.setBackground(Color.WHITE); 

    } 

}  

回答

1

你應該從JFrame中

擴展您的類
相關問題