windowbuilder新建项目时出现错误,求各位大神指点迷津

错误内容如下The selected wizard could not be started.
Plug-in org.eclipse.wb.swing was unable to load class org.eclipse.wb.internal.swing.wizards.application.NewSwingApplicationWizard.
An error occurred while automatically activating bundle org.eclipse.wb.swing (482).

1个回答

package swing;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.JPasswordField;

import java.awt.SystemColor;

import javax.swing.JButton;
import javax.swing.LayoutStyle.ComponentPlacement;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.Font;

public class LogIn {

private JFrame frame;
private JTextField textField;
private JPasswordField passwordField;
/*adminclass a1 = new adminclass("123", 666666);
salerclass s1 = new salerclass(001, 666666, 0, 0);
salerclass s2 = new salerclass(002, 666666, 0, 0);
salerclass s3 = new salerclass(003, 666666, 0, 0);
salerclass s4 = new salerclass(004, 666666, 0, 0);
salerclass s5 = new salerclass(005, 666666, 0, 0);*/

/**
 * Launch the application.
 */
public static void main(String[] args) {
    EventQueue.invokeLater(new Runnable() {
        public void run() {
            try {
                LogIn window = new LogIn();
                window.frame.setVisible(true);
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    });
}

/**
 * Create the application.
 */
public LogIn() {
    initialize();
}

/**
 * Initialize the contents of the frame.
 */
private void initialize() {
    frame = new JFrame();
    frame.setBounds(100, 100, 450, 300);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

    JTextArea textArea = new JTextArea();
    textArea.setFont(new Font("新宋体", Font.BOLD, 18));
    textArea.setBackground(SystemColor.control);
    textArea.setText("\u82F9\u679C\u9500\u552E\u7BA1\u7406\u8F6F\u4EF6");

    JTextArea textArea_1 = new JTextArea();
    textArea_1.setFont(new Font("新宋体", Font.PLAIN, 13));
    textArea_1.setBackground(SystemColor.control);
    textArea_1.setText("\u7528\u6237\u540D\uFF1A");

    JTextArea textArea_2 = new JTextArea();
    textArea_2.setFont(new Font("新宋体", Font.PLAIN, 13));
    textArea_2.setBackground(SystemColor.control);
    textArea_2.setText("\u5BC6\u7801\uFF1A");

    textField = new JTextField();
    textField.setColumns(10);

    passwordField = new JPasswordField();

    JButton button = new JButton("\u767B\u5F55");
    button.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent arg0) {
            System.out.println("chenggong");

            admin ai = new admin();
            frame.dispose();//看这里,一点建议,建议你还是手写,看API,这个生成的真心不怎么好,还有建议把frame封装构造方法中

        }
    });

    JButton button_1 = new JButton("\u6E05\u7A7A");
    button_1.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent arg0) {
            textField.setText(null);
            passwordField.setText(null);
        }
    });
    GroupLayout groupLayout = new GroupLayout(frame.getContentPane());
    groupLayout
            .setHorizontalGroup(groupLayout
                    .createParallelGroup(Alignment.LEADING)
                    .addGroup(
                            groupLayout
                                    .createSequentialGroup()
                                    .addGroup(
                                            groupLayout
                                                    .createParallelGroup(
                                                            Alignment.LEADING)
                                                    .addGroup(
                                                            groupLayout
                                                                    .createSequentialGroup()
                                                                    .addGap(114)
                                                                    .addComponent(
                                                                            textArea,
                                                                            GroupLayout.PREFERRED_SIZE,
                                                                            186,
                                                                            GroupLayout.PREFERRED_SIZE))
                                                    .addGroup(
                                                            groupLayout
                                                                    .createSequentialGroup()
                                                                    .addGap(57)
                                                                    .addGroup(
                                                                            groupLayout
                                                                                    .createParallelGroup(
                                                                                            Alignment.TRAILING,
                                                                                            false)
                                                                                    .addComponent(
                                                                                            textArea_2,
                                                                                            Alignment.LEADING)
                                                                                    .addComponent(
                                                                                            textArea_1,
                                                                                            Alignment.LEADING,
                                                                                            GroupLayout.DEFAULT_SIZE,
                                                                                            80,
                                                                                            Short.MAX_VALUE))
                                                                    .addGap(53)
                                                                    .addGroup(
                                                                            groupLayout
                                                                                    .createParallelGroup(
                                                                                            Alignment.LEADING)
                                                                                    .addComponent(
                                                                                            passwordField,
                                                                                            GroupLayout.PREFERRED_SIZE,
                                                                                            112,
                                                                                            GroupLayout.PREFERRED_SIZE)
                                                                                    .addComponent(
                                                                                            textField)))
                                                    .addGroup(
                                                            Alignment.TRAILING,
                                                            groupLayout
                                                                    .createSequentialGroup()
                                                                    .addContainerGap()
                                                                    .addComponent(
                                                                            button)
                                                                    .addGap(18)
                                                                    .addComponent(
                                                                            button_1)))
                                    .addContainerGap(130, Short.MAX_VALUE)));
    groupLayout
            .setVerticalGroup(groupLayout
                    .createParallelGroup(Alignment.LEADING)
                    .addGroup(
                            groupLayout
                                    .createSequentialGroup()
                                    .addGap(31)
                                    .addComponent(textArea,
                                            GroupLayout.PREFERRED_SIZE, 31,
                                            GroupLayout.PREFERRED_SIZE)
                                    .addGap(18)
                                    .addGroup(
                                            groupLayout
                                                    .createParallelGroup(
                                                            Alignment.BASELINE)
                                                    .addComponent(
                                                            textArea_1,
                                                            GroupLayout.PREFERRED_SIZE,
                                                            GroupLayout.DEFAULT_SIZE,
                                                            GroupLayout.PREFERRED_SIZE)
                                                    .addComponent(
                                                            textField,
                                                            GroupLayout.PREFERRED_SIZE,
                                                            GroupLayout.DEFAULT_SIZE,
                                                            GroupLayout.PREFERRED_SIZE))
                                    .addGap(33)
                                    .addGroup(
                                            groupLayout
                                                    .createParallelGroup(
                                                            Alignment.BASELINE)
                                                    .addComponent(
                                                            textArea_2,
                                                            GroupLayout.PREFERRED_SIZE,
                                                            26,
                                                            GroupLayout.PREFERRED_SIZE)
                                                    .addComponent(
                                                            passwordField,
                                                            GroupLayout.PREFERRED_SIZE,
                                                            25,
                                                            GroupLayout.PREFERRED_SIZE))
                                    .addGap(18)
                                    .addGroup(
                                            groupLayout
                                                    .createParallelGroup(
                                                            Alignment.BASELINE)
                                                    .addComponent(button_1)
                                                    .addComponent(button))
                                    .addContainerGap(45, Short.MAX_VALUE)));
    frame.getContentPane().setLayout(groupLayout);
}

}

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
求各位大神指点迷津
我写了一个自定义控件,就是在时钟加一个倒影的rn当我在Manifest.xml里面加了这句时rn rnrn rnrn就会报如下错误:rn1-25 10:02:40.907: E/AndroidRuntime(8411): java.lang.StackOverflowErrorrn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.text.TextLine.handleText(TextLine.java:930)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.text.TextLine.handleRun(TextLine.java:1153)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.text.TextLine.measureRun(TextLine.java:589)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.text.TextLine.measure(TextLine.java:453)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.text.TextLine.metrics(TextLine.java:427)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.text.Layout.getLineExtent(Layout.java:943)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.text.Layout.draw(Layout.java:406)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.text.BoringLayout.draw(BoringLayout.java:400)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.widget.TextView.onDraw(TextView.java:5296)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at com.alex.bluerabbit.ReflectTextView.onDraw(ReflectTextView.java:37)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.draw(View.java:11038)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.buildDrawingCache(View.java:10755)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.getDrawingCache(View.java:10536)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.getDrawingCache(View.java:10501)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at com.alex.bluerabbit.ReflectTextView.onDraw(ReflectTextView.java:41)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.draw(View.java:11038)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.buildDrawingCache(View.java:10755)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.getDrawingCache(View.java:10536)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.getDrawingCache(View.java:10501)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at com.alex.bluerabbit.ReflectTextView.onDraw(ReflectTextView.java:41)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.draw(View.java:11038)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.buildDrawingCache(View.java:10755)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.getDrawingCache(View.java:10536)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.getDrawingCache(View.java:10501)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at com.alex.bluerabbit.ReflectTextView.onDraw(ReflectTextView.java:41)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.draw(View.java:11038)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.buildDrawingCache(View.java:10755)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.getDrawingCache(View.java:10536)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.getDrawingCache(View.java:10501)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at com.alex.bluerabbit.ReflectTextView.onDraw(ReflectTextView.java:41)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.draw(View.java:11038)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.buildDrawingCache(View.java:10755)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.getDrawingCache(View.java:10536)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.getDrawingCache(View.java:10501)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at com.alex.bluerabbit.ReflectTextView.onDraw(ReflectTextView.java:41)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.draw(View.java:11038)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.buildDrawingCache(View.java:10755)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.getDrawingCache(View.java:10536)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.getDrawingCache(View.java:10501)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at com.alex.bluerabbit.ReflectTextView.onDraw(ReflectTextView.java:41)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.draw(View.java:11038)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.buildDrawingCache(View.java:10755)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.getDrawingCache(View.java:10536)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.getDrawingCache(View.java:10501)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at com.alex.bluerabbit.ReflectTextView.onDraw(ReflectTextView.java:41)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.draw(View.java:11038)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.buildDrawingCache(View.java:10755)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.getDrawingCache(View.java:10536)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.getDrawingCache(View.java:10501)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at com.alex.bluerabbit.ReflectTextView.onDraw(ReflectTextView.java:41)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.draw(View.java:11038)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.buildDrawingCache(View.java:10755)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.getDrawingCache(View.java:10536)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.getDrawingCache(View.java:10501)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at com.alex.bluerabbit.ReflectTextView.onDraw(ReflectTextView.java:41)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.draw(View.java:11038)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.buildDrawingCache(View.java:10755)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.getDrawingCache(View.java:10536)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.getDrawingCache(View.java:10501)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at com.alex.bluerabbit.ReflectTextView.onDraw(ReflectTextView.java:41)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.draw(View.java:11038)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.buildDrawingCache(View.java:10755)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.getDrawingCache(View.java:10536)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.getDrawingCache(View.java:10501)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at com.alex.bluerabbit.ReflectTextView.onDraw(ReflectTextView.java:41)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.draw(View.java:11038)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.buildDrawingCache(View.java:10755)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.getDrawingCache(View.java:10536)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.getDrawingCache(View.java:10501)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at com.alex.bluerabbit.ReflectTextView.onDraw(ReflectTextView.java:41)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at android.view.View.draw(View.java:11038)rn11-25 10:02:40.907: E/AndroidRuntime(8411): at andrrn11-25 10:02:40.988: E/MP-Decision(1261): mpdecision_server(): New Decision parameters Nw=1.990000, Tw=140, Ns=1.100000, Ts=190, DI=50, poll=9, util_h=70, util_l=60rnrnrn自定义控件我重写了ondraw方法rnrn求大神指点迷津!!!rnrn在线等。
打包时出现错误,求大神指导
如图,求大神指导是哪里错误了,附上app/build.gradlernrnrn图好像上传不了。二楼重新上传rnrnapply plugin: 'com.android.application'rnrnandroid rn compileSdkVersion 25rn buildToolsVersion "25.0.3"rnrn useLibrary 'org.apache.http.legacy'//Bmobrnrnrn defaultConfig rn applicationId "com.example.administrator.myone"rn minSdkVersion 24rn targetSdkVersion 25rn versionCode 1rn versionName "1.0"rn testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"rn rn buildTypes rn release rn minifyEnabled falsern proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'rn rn rnrn sourceSets rn main rn jniLibs.srcDir 'libs'rn rn rnrnrndependencies rn compile fileTree(include: ['*.jar'], dir: 'libs')rn androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', rn exclude group: 'com.android.support', module: 'support-annotations'rn )rn compile 'com.android.support:appcompat-v7:25.3.1'rn testCompile 'junit:junit:4.12'rn compile 'com.android.support:design:25.3.1'rn compile 'de.hdodenhof:circleimageview:2.1.0'rn compile 'com.android.support:recyclerview-v7:25.3.1'rn compile 'com.android.support:cardview-v7:25.3.1'rn compile 'com.android.support:percent:25.3.1'rn //compile 'com.android.support:recyclerview-v7:25.3.1'rn compile 'com.github.bumptech.glide:glide:3.7.0'rn compile files('libs/alipaySdk-20170623-proguard.jar')rn compile 'cn.bmob.android:bmob-sdk:3.5.6'rn //Bmobrn compile 'cn.bmob.android:http-legacy:1.0'rn //Bmobrn compile files('libs/BmobSDK_3.5.6_20170705.jar')rn compile 'cn.bmob.android:bmob-push:1.0.0'rn compile 'cn.bmob.android:bmob-sms:1.0.1'rnrn
vs2012新建项目时出现错误提示框解决办法
错误提示如图所示: 解决办法: 在扩展与更新中下载NuGet Package Manager安装并重启vs即可 
错误 CS0012: 类型“”求大神指点迷津
错误 CS0012: 类型“”在未被引用的程序集中定义。必须添加对程序集"xxx.xxxx.xxxx, Version=x.x.xxxxx.xx, Culture=neutral, PublicKeyToken=xxxxxxxxxxx”的引用。rnC#反编译了两个dll文件,其中一个成功反编译后重新生成dll,另一个引用己反编译的dll函数时出来这个错误,求大神指点,应该怎么解决,谢谢!!
求大神指点迷津
(C#)在textbox输入邮编号(真实的邮编号),再按Button键,然后在另一个textbox框里显示这个邮编号的地址(是日本的邮编)
求大神们指点迷津
在上大二,以前学过C语言和C++rn这学期有一门计算机实习课rn要求可视化的编程,留了几道题rn包括统计文档数据,有声音和图片提示的倒计时器等等rn时间比较紧,准备着手学C#,却发现无从下手rnrn不知道该怎么办惹,求大神们指教
求大神指点迷津!
[img=https://img-bbs.csdn.net/upload/201510/23/1445530482_839698.png][/img] 哪一位大神能帮我 设置一个编程 让这三个箭头连贯起来! 1 ,抓取关键字 如 深圳市南山区爱情海服饰有限公司 把 爱情海服饰 放到 1处的空格里面 然后 自动点击 2 搜索 出现箭头3 如果可以挑选,就自动挑选进来,挑选界面如下 [img=https://img-bbs.csdn.net/upload/201510/23/1445530667_759190.jpg][/img] 求大神指点迷津 必有重谢!(能写出代码肯定重金) 谢谢啦
求c#大神指点迷津
c#程序设计与案例教程第五章习题5.1rn是建立一个windows程序,能够对课程数据进行浏览、添加、修改和删除rn做成实践报告用邮件邮寄给我,把数据库都放进去rnabcqingchen911@163.com
求js大神指点迷津!
[size=14px][size=16px][size=14px]rnrn    rnrnrn    rn     rnrn[/size][/size][/size]rnrn这是一个js时间自动跳秒的代码,其他的我都能看懂,就是上面加红的那段代码不明白,为什么要那样写?rnrn因为动画不是setInterval方法吗? 怎么是setTimeout了?rnrn并且重点解释一下function()show_date.call(this,dateEle); 这个是什么意思?
求大神指点迷津。。
[img=http://img.my.csdn.net/uploads/201211/26/1353899892_6366.jpg][/img][img=http://img.my.csdn.net/uploads/201211/26/1353899882_3279.jpg][/img] 我是个刚入行没多久新手,做了一个压缩文件的小程序 , 但是有问题, 不能压缩中文名称的文件(这还好说点),还有就是,文件能够压缩成功,但是打开压缩后的文件里面没有东西,都是空字节 ,附图两张 , 求解决!
求大神指点迷津啦~~~
这两个月看了无数本关于AVR的书了;rn之中看中了atmega16还有128;rn我就想问问这两个编程的语言,语法是不是完全相同啊?rn也就是说用在16上面学到的知识用在128上能不能成功a。。。。rn我已经蒙圈了。。。。
大神们,求指点迷津
(C#)在textbox输入邮编号(真实的邮编号),再按Button键,然后在另一个textbox框里显示这个邮编号的地址(是日本的邮编)
新建项目时的错误
刚分别装好iis和.net,新建项目时就出错,见图,谢谢了rnhttp://www.chinaspx.com/comm/dotnetbbs/Showtopic.aspx?Forum_ID=5&Id=86828&PPage=1&Page=1
求各位前辈指点迷津!!!!
我是一名即将毕业的应届毕业生,我这段时间一直在联系软件公司、参加招聘会,但是公司一看我是应届毕业生对我要不就是敷衍下,要不就是直接不给机会。我很喜欢开发这行,除了找工作的时间我每天都在寝室看C++技术书,这两天我的辅导员一直催我去找工作,一直给我说让我先就业再择业,让我先找个工作干着不能这样一直呆到毕业。我现在很迷茫,求各位前辈指点下,我是继续在学校专技术?还是先找个工作做着边工作边专技术?求各位过来的前辈们给点意见,万分感谢!
求各位大侠指点迷津
小弟我主攻.NET方向。ASP.NET,C#有一定的基础,会基本的使用SQL SERVER数据库和html,js等技术。也曾经尝试开发过一些系统比如BBS,电子商务网站,信息管理系统等。现在比较迷茫的是不知道下一步该学什么了?或者是该把哪项技术弄得更强大些?再或者继续努力实践,在实践中发现问题解决问题?还有要不要再系统的学习下Ajax呢?求各位大侠指点,必有重谢!rnrnPS:我不想只是单纯的学习做网页,我更想做基于WEB的系统或者应用软件,那么下面应该怎么发展呢?现在真的有点迷茫了,迫切需求大家指点!!!
Myeclipse6.0新建项目出现错误符号
我的Myeclipse6.0新建一个项目就会在项目名称上显示一个红叉!!项目内部完全正常!当我在项目上单击右键选择rn Myeclipse -> Exdude from validation 后红叉就会消失,请问这是什么原因?Myeclipse已经重新装过了问题依然rn存在,请各位帮帮忙解决一下,小弟在此谢过了!!!!
求各位大佬指点迷津!
dspC601在往sdram中写数据时出现只往一个地址中写数据时,结果多个地址被写入此数据的问题,例如往0x02000000中写入一个32bit的数据5,结果在0x02200000、0x02400000、0x02600000、0x02800000等地址都被写入5这个数。rn求指点会是什么导致的!
VS2010装完新建项目,出现错误
VS2010装完新建项目,出现错误,报的是'D:\visit demo Beta\visit demo\obj\x86\Debug\CSC199F.tmp' 不是有效的资源文件这个错误,求指教
VS2003新建项目出现以下错误!
尝试创建Web项目或打开位于URL"http://localhost/WebApplication1"的Web项目时,Web服务器报告了以下错误。“Http/1.1 500 Server Error。”
求各位前辈指点迷津!!
我是一名即将毕业的应届毕业生,我这段时间一直在联系软件公司、参加招聘会,但是公司一看我是应届毕业生对我要不就是敷衍下,要不就是直接不给机会。我很喜欢开发这行,除了找工作的时间我每天都在寝室看C++技术书,这两天我的辅导员一直催我去找工作,一直给我说让我先就业再择业,让我先找个工作干着不能这样一直呆到毕业。我现在很迷茫,求各位前辈指点下,我是继续在学校专技术?还是先找个工作做着边工作边专技术?求各位过来的前辈们给点意见,万分感谢!
求各位大侠指点迷津?
怎样实现正确查询库存量:rn select a.id, a.name,rn (select nvl(sum(b.num),0) from tab_2 b where b.trans='入' and a.name = b.name) as intput,rn (select nvl(sum(b.num),0) from tab_2 b where b.trans='出' and a.name = b.name) as output,rn (select nvl(sum(rn (select nvl(sum(b.num),0) from tab_2 b where b.trans='入' and a.name = b.name) - rn (select nvl(sum(b.num),0) from tab_2 b where b.trans='出' and a.name = b.name)),0) from tab_2 b rnrn=== intput -output = count // input:某物品总入库,output:某物品总出库,cout:库存;rnrn where a.name=b.name ) as countrn from tab_1 a rn left join tab_2 b on a.name=b.name rn group by a.id, a.namern order by id;rnrn下面是tab_1表:rn[img=https://img-bbs.csdn.net/upload/201305/28/1369729161_338793.jpg][/img]rnrn下面是tab_2表:rn[img=https://img-bbs.csdn.net/upload/201305/28/1369729363_608728.jpg][/img]rnrn下面是上面SQL运行的结果: //明显不对..rn[img=https://img-bbs.csdn.net/upload/201305/28/1369729459_560981.jpg][/img]rnrn
求各位前辈指点迷津
小弟已经学习了C++,原本打算接下去学习MFC,但是由于小弟也学习C#,感到很多东西还是C#简单,而且.net平台也很强大,所以不想去学MFC,那关于C++,我接下去去学什么好呢?
求JS(Jquery)大神指点迷津
[img=https://img-bbs.csdn.net/upload/201408/20/1408518664_21448.jpg][/img]rn在循环中执行这两行代码,rn已经确认js[0].UserId与js[1].UserId完全相等rn但是第一次alert出来的是nullrn第二次却出来了正确结果rn什么原因导致的????
求大神指点迷津,创建单链表!
#include rn#include rnstruct node *creat(struct node*head);rnvoid Output(struct node*temp);rnstruct nodernrnrn int date;rn struct node *next;rn;rnint main()rn rn struct node*head;rn head=NULL;rn struct node *creat(struct node*head);rn void Output(struct node*temp);rnrnstruct node *creat(struct node *head)rnrn int i,LEN;rn printf("请输入链表长度LEN:");rn scanf("%d",&LEN);rn struct node*p,*s; rn p=(struct node *)malloc(sizeof(struct node) );rn printf("p=%d",p);rn printf("请输入结点中的数据:%d");rn scanf("%d",p->date);rn head=p;rn for(i=0;idate); rn s->next=p; rn rn return(head);rnrnrnvoid Output(struct node*head)rnrn struct node*temp;rn temp=head;rn if(temp!=NULL)rn rn printf("%d\t",temp->date);rn rnrn 通过输入变量LEN来控制链表的长度。新手,求指导!
linux驱动入门,求大神指点迷津
最近学习浏览了LDD3,晕乎乎的,对linux驱动有了大概的了解。rnrn对其中的DMA驱动这块比较感兴趣,手中有X86平台的板子,想试着做一下SATA或者PCIE DMA的实验。比如MEM→SATA,rn我也浏览了一些linux驱动的相关书籍,发现大多数都是将函数,概念。并没有实际完整的例子代码,rn请问大牛,网上可否有相关代码的框架?或者有哪本书籍资料可以让我快速入门?rn
error lnk2019, 求大神指点迷津。
1>FromViewMain.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class CXTPTabManagerItem * __thiscall CXTPTabControl::InsertItem(int,wchar_t const *,struct HWND__ *,int)" (__imp_?InsertItem@CXTPTabControl@@QAEPAVCXTPTabManagerItem@@HPB_WPAUHWND__@@H@Z) referenced in function __catch$?AddView@CFromViewMain@@QAEHPAUCRuntimeClass@@PB_WH@Z$0rn1>MainFrm.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class CXTPMenuBar * __thiscall CXTPCommandBars::SetMenu (class ATL::CStringT > >,unsigned int)" (__imp_?SetMenu@CXTPCommandBars@@QAEPAVCXTPMenuBar@@V?$CStringT@_WV?$StrTraitMFC_DLL@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@I@Z) referenced in function "public: void __thiscall CMainFrame::FullscreenMode(void)" (?FullscreenMode@CMainFrame@@QAEXXZ)rn1>MainFrm.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static struct CRuntimeClass * __stdcall CXTPCommandBars::GetThisClass(void)" (__imp_?GetThisClass@CXTPCommandBars@@SGPAUCRuntimeClass@@XZ) referenced in function "public: virtual void __thiscall CMainFrame::Dump(class CDumpContext &)const " (?Dump@CMainFrame@@UBEXAAVCDumpContext@@@Z)rn1>MainFrm.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static struct CRuntimeClass * __stdcall CXTPEdit::GetThisClass(void)" (__imp_?GetThisClass@CXTPEdit@@SGPAUCRuntimeClass@@XZ) referenced in function "protected: virtual int __thiscall CXTPFrameWndBase::PreTranslateMessage(struct tagMSG *)" (?PreTranslateMessage@?$CXTPFrameWndBase@VCFrameWnd@@@@MAEHPAUtagMSG@@@Z)rn1>MainFrm.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CXTPDockingPane::SetTitle(wchar_t const *)" (__imp_?SetTitle@CXTPDockingPane@@QAEXPB_W@Z) referenced in function "public: virtual void __thiscall CMainFrame::Dump(class CDumpContext &)const " (?Dump@CMainFrame@@UBEXAAVCDumpContext@@@Z)rnrn1>E:\Cpp_Study\AlarmDemo_DW_20160926\Debug\AlarmDemo.exe : fatal error LNK1120: 5 unresolved externals
SSM新建项目时,出现错误解决方案
1.org.eclipse.wst.common.project.facet.core.xml <?xml version="1.0" encoding="UTF-8"?> <faceted-project> <fixed facet="jst.java"/> <fixed facet="jst.web"/> <installed facet="jst.web"
新建项目时AAPT2错误解决方法
gradle.properties中最后一行添加 andriod.enableAapt2=false syn now 立刻解决 应用: android.enableAapt2=false
在make sdk时出现的错误 望各位大神指导~
target Prelink: libdl (out/target/product/generic/symbols/system/lib/libdl.so)rnbuild/tools/apriori/prelinkmap.c(100): build/core/prelink-linux-arm.map:26 base 0xaff00000 out of range.rnmake: *** [out/target/product/generic/symbols/system/lib/libdl.so] 错误4411518)rnrn在make sdk的时候出现的错误 不知道是什么原因~
oracle job 定义错误报错,请各位大神指点迷津
我定义了一个存储过程createnewstaff,现在想通过job自动执行以下,可是代码总是报错。请大神指点,存储过程如下:rncreate or replace procedure proc_auto_exec_job asrnbeginrn declarern job number;rn beginrn dbms_job.submit(job,'createnewstaff',sysdate,'trunc(sysdate,''mi'')+1/1440');rn commit;rn DBMS_JOB.RUN(job); rnend; rn 报错如下:rnPROCEDURE SDICECS.PROC_AUTO_EXEC_JOB 编译错误rnrn错误:PLS-00103: 出现符号 "end-of-file"在需要下列之一时:rn (rn begin case declare end exception exit for goto if loop modrn null pragma raise return select update while withrn rn << continue close current delete fetch lockrn insert open rollback savepoint set sql execute commit forallrn merge pipe purgern行:10
测试时,出现的错误改不来,大神求帮助
写自定义函数求3×4矩阵中每一行的最大值,编写相应的主函数测试。rn函数原型为: void Max(int a[3][4], int b[3])rnrnrn[img=https://img-bbs.csdn.net/upload/201511/29/1448796802_325153.png][/img]#includernvoid Max(int a[3][4],int b[3])rnrn for(int i=0,mid=0;i<3;i++)rn rn for(int j=1;j<4;j++)rn rn if(a[i][j-1]>a[i][j])rn mid=a[i][j-1];rn else mid=a[i][j];rn rn rn printf("%d",b);rnrnint main()rnrn int a[3][4],b[3];rn printf("请输入一个3*4的矩阵\n");rn for(int i=0;i<3;i++)rn for(int j=0;j<4;j++)rn scanf("%d",&a[i][j]);rn Max(a,b);rn return 0;rn
打开uiautomatorviewer.bat时出现图示错误,求大神帮助
    刚开始学Android 现在却被打开uiautomatorviewer.bat,还望各路大神帮帮我把
SSD网络训练数据时出现错误求大神解答
在训练数据时,运行ssd_pascal.bat文件在cmd命令窗口中出现如图中[img=https://img-bbs.csdn.net/upload/201806/11/1528710775_811598.png][/img]所示的错误,也就是这个Error:flag'--solver'is missing its argument;flag description:The solver definition protocol buffer text file请问有没有大神知道怎么解答?
mySQL安装时配置错误,快绝望了,求各位大神指导
configuration file template :(路径啊)\my-template.ini could not be processed and written to (路径)\mySQL Server 5.5\my.ini.Error code-1rnrnrn配置的时候最后按下Execute时出现这个错误,错误页面中有4行第一行是对号,第二行是红叉,求指导
使用windowbuilder出现的问题
报错:Eclipse is running under 0, but this Java project has a 1.8 Java compliance 我的eclipse版本是4.7,一开始载的事4.7版本的windowbuilder如图对应的Oxygen,结果报上面的错误,还以为是jdk版本太高了,调低了版本还是不行,然后找了一些资料,将windowbuilder的版本改为4.8的就可以...
spring整合shiro出现错误,求大神指导
有文件 链接:https://pan.baidu.com/s/1Mz6DZpA3hIXwF4uqEdHUYQ 密码:0fhfrn 异常如下rn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroFilter' defined in class path resource [spring-shiro.xml]: Cannot resolve reference to bean 'securityManager' while setting bean property 'securityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in class path resource [spring-shiro.xml]: Cannot resolve reference to bean 'myRealm' while setting bean property 'realm'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'myRealm': Unsatisfied dependency expressed through field 'userService'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'cn.dong.service.UserService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: @org.springframework.beans.factory.annotation.Autowired(required=true)rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)rn at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:235)rn at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:703)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:528)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in class path resource [spring-shiro.xml]: Cannot resolve reference to bean 'myRealm' while setting bean property 'realm'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'myRealm': Unsatisfied dependency expressed through field 'userService'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'cn.dong.service.UserService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: @org.springframework.beans.factory.annotation.Autowired(required=true)rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)rn ... 24 morernCaused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'myRealm': Unsatisfied dependency expressed through field 'userService'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'cn.dong.service.UserService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: @org.springframework.beans.factory.annotation.Autowired(required=true)rn at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:588)rn at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)rn at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)rn ... 34 morern
hadoop jar出现错误,求大神
错误如图,classpath什么都配置好了,可以运行wordcount,现在有个程序运行不了。[img=https://img-bbs.csdn.net/upload/201612/09/1481282311_452029.png][/img]
struts2和spring整合出现错误,求大神解答
一月 09, 2015 9:59:52 下午 org.apache.catalina.core.StandardContext listenerStartrnSEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnjava.lang.NoSuchMethodError: org.springframework.beans.factory.annotation.InjectionMetadata.(Ljava/lang/Class;)Vrn at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findPersistenceMetadata(PersistenceAnnotationBeanPostProcessor.java:350)rn at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(PersistenceAnnotationBeanPostProcessor.java:296)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:798)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:493)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at org.apache.catalina.core.StandardService.start(StandardService.java:525)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:595)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:606)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rn一月 09, 2015 9:59:52 下午 org.apache.catalina.core.StandardContext startrnSEVERE: Error listenerStartrn一月 09, 2015 9:59:52 下午 org.apache.catalina.core.StandardContext startrnSEVERE: Context [/MyOA] startup failed due to previous errorsrnrn以上是错误提示。rn我的监听器配置如下:rn[img=https://img-bbs.csdn.net/upload/201501/09/1420812144_769869.png][/img]rn我的路径如下:rn[img=https://img-bbs.csdn.net/upload/201501/09/1420812215_538155.png][/img]rnrn百度了好久都没解答出来,包也导入了。
运行时出现错误,求大神指点!
import java.awt.FlowLayout;rnimport java.awt.event.FocusEvent;rnimport java.awt.event.FocusListener;rnimport javax.swing.*;rnpublic class exp6_13 rn public static void main(String[] args)rn rn new FocusTest();rn rnrnrnclass FocusTest extends JFrame rnrn JTextField txt1,txt2;rn rn public FocusTest()rn rn setTitle("焦点事件示例");rn setBounds(300,200,350,200);rn setVisible(true);rn setLayout(new FlowLayout());rn setDefaultCloseOperation(EXIT_ON_CLOSE);rn txt1=new JTextField("",10);rn txt2=new JTextField("",10);rn txt1.addFocusListener(new txtFocus());rn txt2.addFocusListener(new txtFocus());rn add(txt1);rn add(txt2);rn add(new JButton("确定"));rn add(new JLabel("使用Tab键改变组件的焦点"));rn validate();rn rn class txtFocus implements FocusListenerrn rn public void focusGained(FocusGained(FocusEvent e))rn rn if(e.getSource()==txt1)txt1.setText("得到焦点");rn elsern txt2.setText("得到焦点");rn rn public void focusLost(FocusEvent e)rn rn if(e.getSource()==txt1)txt1.setText("失去焦点");rn elsern txt2.setText("失去焦点");rn rn rn rn rn
openCV2.4.2+VS2010出现的错误,求大神指导。
c:\program files\microsoft visual studio 10.0\vc\include\complex(429): error C2628: “_Ty”后面接“float”是非法的(是否忘记了“;”?)rn1> c:\program files\microsoft visual studio 10.0\vc\include\complex(533): 参见对正在编译的类 模板 实例化“std::_Complex_base<_Ty,_Valbase>”的引用rn1>c:\program files\microsoft visual studio 10.0\vc\include\complex(429): error C2059: 语法错误:“”rn1>c:\program files\microsoft visual studio 10.0\vc\include\complex(429): error C2334: “”的前面有意外标记;跳过明显的函数体rn1>c:\program files\microsoft visual studio 10.0\vc\include\complex(439): error C2628: “_Ty”后面接“float”是非法的(是否忘记了“;”?)rn1>c:\program files\microsoft visual studio 10.0\vc\include\complex(439): error C2059: 语法错误:“”rn1>c:\program files\microsoft visual studio 10.0\vc\include\complex(439): error C2334: “”的前面有意外标记;跳过明显的函数体rn1>c:\program files\microsoft visual studio 10.0\vc\include\complex(429): error C2628: “_Ty”后面接“float”是非法的(是否忘记了“;”?)rn1> c:\program files\microsoft visual studio 10.0\vc\include\complex(538): 参见对正在编译的类 模板 实例化“std::_Complex_base<_Ty,_Valbase>”的引用rn1> withrn1> [rn1> _Ty=float,rn1> _Valbase=std::_Fcomplex_valuern1> ]rn1>c:\program files\microsoft visual studio 10.0\vc\include\complex(429): error C2059: 语法错误:“”rn1>c:\program files\microsoft visual studio 10.0\vc\include\complex(429): error C2334: “”的前面有意外标记;跳过明显的函数体rn1>c:\program files\microsoft visual studio 10.0\vc\include\complex(439): error C2628: “_Ty”后面接“float”是非法的(是否忘记了“;”?)rn1>c:\program files\microsoft visual studio 10.0\vc\include\complex(439): error C2059: 语法错误:“”rn1>c:\program files\microsoft visual studio 10.0\vc\include\complex(439): error C2334: “”的前面有意外标记;跳过明显的函数体rn1>c:\program files\microsoft visual studio 10.0\vc\include\complex(429): error C2628: “_Ty”后面接“float”是非法的(是否忘记了“;”?)rn1> c:\program files\microsoft visual studio 10.0\vc\include\complex(669): 参见对正在编译的类 模板 实例化“std::_Complex_base<_Ty,_Valbase>”的引用rn1> withrn1> [rn1> _Ty=double,rn1> _Valbase=std::_Dcomplex_valuern1> ]rn1>c:\program files\microsoft visual studio 10.0\vc\include\complex(429): error C2059: 语法错误:“”rn1>c:\program files\microsoft visual studio 10.0\vc\include\complex(429): error C2334: “”的前面有意外标记;跳过明显的函数体rn1>c:\program files\microsoft visual studio 10.0\vc\include\complex(439): error C2628: “_Ty”后面接“float”是非法的(是否忘记了“;”?)rn1>c:\program files\microsoft visual studio 10.0\vc\include\complex(439): error C2059: 语法错误:“”rn1>c:\program files\microsoft visual studio 10.0\vc\include\complex(439): error C2334: “”的前面有意外标记;跳过明显的函数体rn1>c:\program files\microsoft visual studio 10.0\vc\include\complex(429): error C2628: “_Ty”后面接“float”是非法的(是否忘记了“;”?)rn1> c:\program files\microsoft visual studio 10.0\vc\include\complex(794): 参见对正在编译的类 模板 实例化“std::_Complex_base<_Ty,_Valbase>”的引用rn1> withrn1> [rn1> _Ty=long double,rn1> _Valbase=std::_Lcomplex_valuern1> ]rn1>c:\program files\microsoft visual studio 10.0\vc\include\complex(429): error C2059: 语法错误:“”rn1>c:\program files\microsoft visual studio 10.0\vc\include\complex(429): error C2334: “”的前面有意外标记;跳过明显的函数体rn1>c:\program files\microsoft visual studio 10.0\vc\include\complex(439): error C2628: “_Ty”后面接“float”是非法的(是否忘记了“;”?)rn1>c:\program files\microsoft visual studio 10.0\vc\include\complex(439): error C2059: 语法错误:“”rn1>c:\program files\microsoft visual studio 10.0\vc\include\complex(439): error C2334: “”的前面有意外标记;跳过明显的函数体rn1>c:\program files\microsoft visual studio 10.0\vc\include\complex(914): error C2274: “函数样式转换”: 位于“.”运算符右边时非法rn1>c:\program files\microsoft visual studio 10.0\vc\include\complex(921): error C2274: “函数样式转换”: 位于“.”运算符右边时非法rn1>c:\program files\microsoft visual studio 10.0\vc\include\complex(928): error C2274: “函数样式转换”: 位于“.”运算符右边时非法rn1>c:\program files\microsoft visual studio 10.0\vc\include\complex(935): error C2274: “函数样式转换”: 位于“.”运算符右边时非法rn1>c:\program files\microsoft visual studio 10.0\vc\include\complex(942): error C2274: “函数样式转换”: 位于“.”运算符右边时非法rn1>c:\program files\microsoft visual studio 10.0\vc\include\complex(949): error C2274: “函数样式转换”: 位于“.”运算符右边时非法rn1>c:\program files\microsoft visual studio 10.0\vc\include\xcomplex(183): error C2628: “_Ty”后面接“float”是非法的(是否忘记了“;”?)rn1>c:\program files\microsoft visual studio 10.0\vc\include\xcomplex(183): error C2027: 使用了未定义类型“_Ty”rn1>c:\program files\microsoft visual studio 10.0\vc\include\xcomplex(183): error C2226: 语法错误 : 意外的“std::complex<_Other>”类型rn1>c:\program files\microsoft visual studio 10.0\vc\include\xcomplex(190): error C2065: “_Ty”: 未声明的标识符rn1>c:\program files\microsoft visual studio 10.0\vc\include\xcomplex(191): error C2143: 语法错误 : 缺少“;”(在“”的前面)
相关热词 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池 c#5.0 安装程序 c# 分页算法