2 qq 34727409 qq_34727409 于 2016.05.02 21:52 提问

Manage m=new Manage();提示 Multiple markers at this line,Manage can not be resolved to a type,

package com.test;import java.awt.Dimension;import java.awt.Toolkit;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.io.IOException;import javax.swing.ButtonGroup;import javax.swing.JButton;import javax.swing.JFrame;import javax.swing.JLabel;import javax.swing.JOptionPane;import javax.swing.JPanel;import javax.swing.JPasswordField;import javax.swing.JRadioButton;import javax.swing.JTextField;/** * 教 师: * 账号:143821 * 密码:143821 * * 管理员: * 账号:14 * 密码:123 * * 学 生: * 账号:学号 * 密码:学号 */public class Login extends JFrame { public static void main(String[] args) { // TODO Auto-generated method stub final boolean[] rb=new boolean[3]; final String userName = "abc"; final String passwrod = "123"; JFrame jFrame = new JFrame("教务管理系统--登陆界面");// jFrame.setSize(1000,1000); Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize(); jFrame.setBounds(((int)dimension.getWidth() - 200) / 2, ((int)dimension.getHeight() - 300) / 2, 220, 180); //去掉最大化 jFrame.setResizable(false); jFrame.setLayout(null); jFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JLabel label1 = new JLabel("账号"); label1.setBounds(10, 10, 100, 30); jFrame.add(label1); JLabel label2 = new JLabel("密码"); label2.setBounds(10, 40, 100, 30); jFrame.add(label2); final JTextField text1 = new JTextField(); text1.setBounds(50, 15, 150, 20); jFrame.add(text1); final JPasswordField text2 = new JPasswordField(); text2.setBounds(50, 45, 150, 20); jFrame.add(text2); JRadioButton rb1=new JRadioButton("管理员"); JRadioButton rb2=new JRadioButton("老师"); JRadioButton rb3=new JRadioButton("学生"); JPanel jp=new JPanel(); jp.add(rb1); jp.add(rb2); jp.add(rb3); jp.setBounds(0, 75, 220, 40); jFrame.add(jp); ButtonGroup group = new ButtonGroup();// 创建单选按钮组 group.add(rb1);// 将radioButton1增加到单选按钮组中 group.add(rb2);// 将radioButton2增加到单选按钮组中 group.add(rb3);// 将radioButton3增加到单选按钮组中 rb1.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e) { // TODO Auto-generated method stub if("14".equals(text1.getText())&&"123".equals(text2.getText())) rb[0]=true; } }); rb2.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e) { // TODO Auto-generated method stub if("143821".equals(text1.getText())&&"143821".equals(text2.getText())) rb[1]=true; }

2个回答

CSDNXIAOC
CSDNXIAOC   2016.05.02 22:01


be useful  (know your role)
 
understand your boss (priority, working style)
 
Visibility ( The best way is get possitive feedback from other teams)
 
Streatch yourself
 
build good relationship with peers
答案就在这里:how to manage upwards
----------------------你好,人类,我是来自CSDN星球的问答机器人小C,以上是依据我对问题的理解给出的答案,如果解决了你的问题,望采纳。

devmiao
devmiao   Ds   Rxr 2016.05.02 23:53
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!
其他相关推荐
Multiple markers at this line @Override的解决方法
Multiple markers at this line - implements android.view.View.OnClickListener.onClick - The method onClick(View) of type new View.OnClickListener(){} must  override a superclass method 原因
[复制别人的工程报错一]Multiple markers at this line
问题细述 :         - The type java.lang.Object cannot be resolved. It is indirectly referenced from           required .class files         - The type Enum is not generic; it cannot be parameterized wi
MyEclipse报错:Multiple markers at this line - The type java.io.ObjectInputStream cannot be resolved.
1.出错原因网上查了以后,说是因为JDK版本太高的问题2.修改window->preference->Java->Installed JREs->选择低版本的JDK->ok ps:这里由于我只装了JDK1.8,所以选择可以MyEclipse自己的JDK(即Sun JDK 1.6.0_13)3.小结版本兼容问题
Java笔记005_Multiple markers at this line - key cannot be resolved to a variable - Syntax error, ins
MyEclipse中出现Multiple annotations found at this line: - Syntax error, insert "}" to complete 错误解决方法 如上图所示,在JSP页面中遇到的问题!经过折腾后,终于找到了原因,原来是因为少了一个“}”,这时候你可以去查看一下的你插入到JSP页面中的JavaScript代码!肯定有的地方少了个大括号
错误提示:Multiple annotations found at this line: basePath cannot be resolved to a variable
出现以上错误,主要是由下面这句引起的:"> 但这句话似乎又没有任何问题。将这句话删除问题就得到了解决,而且对原来的网站没有影响。 经过在网上一番查找,总结如下:这个错误出现的原因是由自己在做jsp文件引入时引起的,文件加载合并过程中出现了代码加载重复的现象。经过阅读下面的文档则恍然大悟,原来自己删了JSP页面开头的代码,才会出现这样的问题。将源代码进行恢复则问题得到解决。
Type 'JNIEnv' could not be resolved
出现的提示信息如下: Multiple markers at this line   - Syntax error   - Type 'JNIEnv' could not be resolved   - Type 'JNICALL' could not be resolved 是由于没有将jni.h导入的缘故,而这个文件在ndk的目录下面。所以,参照以下步骤: Project Pr
Multiple markers at this line - The type java.lang.Object cannot be resolve
导入androidpn-clien时出现Multiple markers at this line - The type java.lang.Object cannot be resolve错误,解决方式:在package explorer中右键自己的project名,build path,config build path,左边一列中选android,project build target重新
项目错误提示Multiple markers at this line
新安装个Myeclipse,导入以前做的程序后程序里好多错,第一行提示: Multiple markers at this line         - The type java.lang.Object cannot be resolved. It is indirectly referenced from           required .class files
Multiple markers at this line jdk版本 异常处理
Multiple markers at this line The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files The type java.util.Map$Entry cannot be resolved. It is indirectly
DataAccessException cannot be resolved
Multiple markers at this line - The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly referenced from  required .class files 解决方法:导入spring.transaction-3.0.5.