添加输入? [英] Adding input?

查看:85
本文介绍了添加输入?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿所有人!


使用Devshed(可能是我遇到过的最糟糕的论坛)之后,我来到这里,提出了有关Java,Python,VB,Basic C ++的问题和答案, HTML,Game Maker和Uni-Gasp。所以,问候!


关于这个问题:我一直在研究Text编辑器,并且停止了。我无法弄清楚如何将文本导入我的程序。我有我认为可以在我的代码中工作,但它似乎似乎没有工作!每次我尝试编译时,都会出错:java.awt.filedialog中的文件不公开;无法从外部包裹访问。下面是代码:

展开 | 选择 | Wrap | 行号

解决方案

为什么不让你的FileDialog公开上线16,看看会发生什么。请记住,如果您没有为atrribute指定访问修饰符,则假设受保护访问。


抱歉,我很愚蠢:(如何将其公开?


抱歉,我很愚蠢:(你如何公开?



在声明前加上单词public?


Hey Everyone!

After using Devshed (possibly the worst forum I have ever encountered) I have come here with my questions and answers about Java, Python, VB, Basic C++, HTML, Game Maker, and Uni-Gasp. So, greetings!

On to the question: I have been working on a Text editor a little bit, and hit a dead halt. I can not figure out how to import text into my program. I have what I thought would work in my code, but it just doesn''t seem to work! Every time I try to compile, it gives an error: "file is not public in java.awt.filedialog; cannot be accessed from outside package". Here is the code:

Expand|Select|Wrap|Line Numbers

解决方案

Why don''t you make your FileDialog public on line 16 and see what happens. Remember that if you don''t specify an access modifier for an atrribute, protected access is assumed.


Sorry, but I am stupid :( How do you make it public?


Sorry, but I am stupid :( How do you make it public?

prefix the declaration with the word public?


这篇关于添加输入?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆