java 中 JTextField 中怎样拒绝复制 java 中 JTextField 中怎样拒绝复制比如说,我单击右键,选择粘贴时,提示,不给粘贴、应该怎么搞啊 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 当鼠标点击文本框的时候,触发事件jTextArea1.setEnabled(false);应该可以吧。 不好意思是JTextField.setEnabled(false); 我发现了,java 中最麻烦的类是swing的类,用处最不好用的也是swing类.看看这个JTextField涉及到类有多少: javax.swing 类 JTextFieldjava.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.text.JTextComponent javax.swing.JTextField所有已实现的接口: ImageObserver, MenuContainer, Serializable, Accessible, Scrollable, SwingConstants 从类 javax.swing.text.JTextComponent 继承的嵌套类/接口 JTextComponent.AccessibleJTextComponent, JTextComponent.DropLocation, JTextComponent.KeyBinding 从类 javax.swing.JComponent 继承的嵌套类/接口 JComponent.AccessibleJComponent 从类 java.awt.Container 继承的嵌套类/接口 Container.AccessibleAWTContainer 从类 java.awt.Component 继承的嵌套类/接口 Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy 上面的嵌套类和接口还没有展开呢. myeclipse8.5编写jsp时光标动不动就消失!? 关于JAVA调用打印机功能的问题 学了好多的软件知识,没工作 一个关于工厂的问题 新手,请教一个简单的问题! 求助:我用applet做的一个线形报表,重绘时,最后一次的线总在上面 大家帮忙看看我写的JDBC连接SQLServer的测试函数,哪里有问题?谢谢!!! RMI中如何调用ResultSet Java程序中能否直接操作本地文件? Java中,Inner class可不可以使用final修饰符? 类加载顺序 <参数> 如何使用?
看看这个JTextField涉及到类有多少:
javax.swing
类 JTextField
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.text.JTextComponent
javax.swing.JTextField
所有已实现的接口:
ImageObserver, MenuContainer, Serializable, Accessible, Scrollable, SwingConstants 从类 javax.swing.text.JTextComponent 继承的嵌套类/接口
JTextComponent.AccessibleJTextComponent, JTextComponent.DropLocation, JTextComponent.KeyBinding
从类 javax.swing.JComponent 继承的嵌套类/接口
JComponent.AccessibleJComponent
从类 java.awt.Container 继承的嵌套类/接口
Container.AccessibleAWTContainer
从类 java.awt.Component 继承的嵌套类/接口
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy 上面的嵌套类和接口还没有展开呢.