Java Code Examples for java.awt.peer.TextComponentPeer#setEditable()
The following examples show how to use
java.awt.peer.TextComponentPeer#setEditable() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TextComponent.java From jdk8u-jdk with GNU General Public License v2.0 | 3 votes |
/** * Sets the flag that determines whether or not this * text component is editable. * <p> * If the flag is set to <code>true</code>, this text component * becomes user editable. If the flag is set to <code>false</code>, * the user cannot change the text of this text component. * By default, non-editable text components have a background color * of SystemColor.control. This default can be overridden by * calling setBackground. * * @param b a flag indicating whether this text component * is user editable. * @see java.awt.TextComponent#isEditable * @since JDK1.0 */ public synchronized void setEditable(boolean b) { if (editable == b) { return; } editable = b; TextComponentPeer peer = (TextComponentPeer)this.peer; if (peer != null) { peer.setEditable(b); } }
Example 2
Source File: TextComponent.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 3 votes |
/** * Sets the flag that determines whether or not this * text component is editable. * <p> * If the flag is set to <code>true</code>, this text component * becomes user editable. If the flag is set to <code>false</code>, * the user cannot change the text of this text component. * By default, non-editable text components have a background color * of SystemColor.control. This default can be overridden by * calling setBackground. * * @param b a flag indicating whether this text component * is user editable. * @see java.awt.TextComponent#isEditable * @since JDK1.0 */ public synchronized void setEditable(boolean b) { if (editable == b) { return; } editable = b; TextComponentPeer peer = (TextComponentPeer)this.peer; if (peer != null) { peer.setEditable(b); } }
Example 3
Source File: TextComponent.java From jdk-1.7-annotated with Apache License 2.0 | 3 votes |
/** * Sets the flag that determines whether or not this * text component is editable. * <p> * If the flag is set to <code>true</code>, this text component * becomes user editable. If the flag is set to <code>false</code>, * the user cannot change the text of this text component. * By default, non-editable text components have a background color * of SystemColor.control. This default can be overridden by * calling setBackground. * * @param b a flag indicating whether this text component * is user editable. * @see java.awt.TextComponent#isEditable * @since JDK1.0 */ public synchronized void setEditable(boolean b) { if (editable == b) { return; } editable = b; TextComponentPeer peer = (TextComponentPeer)this.peer; if (peer != null) { peer.setEditable(b); } }
Example 4
Source File: TextComponent.java From jdk8u-jdk with GNU General Public License v2.0 | 3 votes |
/** * Sets the flag that determines whether or not this * text component is editable. * <p> * If the flag is set to <code>true</code>, this text component * becomes user editable. If the flag is set to <code>false</code>, * the user cannot change the text of this text component. * By default, non-editable text components have a background color * of SystemColor.control. This default can be overridden by * calling setBackground. * * @param b a flag indicating whether this text component * is user editable. * @see java.awt.TextComponent#isEditable * @since JDK1.0 */ public synchronized void setEditable(boolean b) { if (editable == b) { return; } editable = b; TextComponentPeer peer = (TextComponentPeer)this.peer; if (peer != null) { peer.setEditable(b); } }
Example 5
Source File: TextComponent.java From jdk8u_jdk with GNU General Public License v2.0 | 3 votes |
/** * Sets the flag that determines whether or not this * text component is editable. * <p> * If the flag is set to <code>true</code>, this text component * becomes user editable. If the flag is set to <code>false</code>, * the user cannot change the text of this text component. * By default, non-editable text components have a background color * of SystemColor.control. This default can be overridden by * calling setBackground. * * @param b a flag indicating whether this text component * is user editable. * @see java.awt.TextComponent#isEditable * @since JDK1.0 */ public synchronized void setEditable(boolean b) { if (editable == b) { return; } editable = b; TextComponentPeer peer = (TextComponentPeer)this.peer; if (peer != null) { peer.setEditable(b); } }
Example 6
Source File: TextComponent.java From openjdk-8 with GNU General Public License v2.0 | 3 votes |
/** * Sets the flag that determines whether or not this * text component is editable. * <p> * If the flag is set to <code>true</code>, this text component * becomes user editable. If the flag is set to <code>false</code>, * the user cannot change the text of this text component. * By default, non-editable text components have a background color * of SystemColor.control. This default can be overridden by * calling setBackground. * * @param b a flag indicating whether this text component * is user editable. * @see java.awt.TextComponent#isEditable * @since JDK1.0 */ public synchronized void setEditable(boolean b) { if (editable == b) { return; } editable = b; TextComponentPeer peer = (TextComponentPeer)this.peer; if (peer != null) { peer.setEditable(b); } }
Example 7
Source File: TextComponent.java From openjdk-8-source with GNU General Public License v2.0 | 3 votes |
/** * Sets the flag that determines whether or not this * text component is editable. * <p> * If the flag is set to <code>true</code>, this text component * becomes user editable. If the flag is set to <code>false</code>, * the user cannot change the text of this text component. * By default, non-editable text components have a background color * of SystemColor.control. This default can be overridden by * calling setBackground. * * @param b a flag indicating whether this text component * is user editable. * @see java.awt.TextComponent#isEditable * @since JDK1.0 */ public synchronized void setEditable(boolean b) { if (editable == b) { return; } editable = b; TextComponentPeer peer = (TextComponentPeer)this.peer; if (peer != null) { peer.setEditable(b); } }
Example 8
Source File: TextComponent.java From hottub with GNU General Public License v2.0 | 3 votes |
/** * Sets the flag that determines whether or not this * text component is editable. * <p> * If the flag is set to <code>true</code>, this text component * becomes user editable. If the flag is set to <code>false</code>, * the user cannot change the text of this text component. * By default, non-editable text components have a background color * of SystemColor.control. This default can be overridden by * calling setBackground. * * @param b a flag indicating whether this text component * is user editable. * @see java.awt.TextComponent#isEditable * @since JDK1.0 */ public synchronized void setEditable(boolean b) { if (editable == b) { return; } editable = b; TextComponentPeer peer = (TextComponentPeer)this.peer; if (peer != null) { peer.setEditable(b); } }
Example 9
Source File: TextComponent.java From Java8CN with Apache License 2.0 | 3 votes |
/** * Sets the flag that determines whether or not this * text component is editable. * <p> * If the flag is set to <code>true</code>, this text component * becomes user editable. If the flag is set to <code>false</code>, * the user cannot change the text of this text component. * By default, non-editable text components have a background color * of SystemColor.control. This default can be overridden by * calling setBackground. * * @param b a flag indicating whether this text component * is user editable. * @see java.awt.TextComponent#isEditable * @since JDK1.0 */ public synchronized void setEditable(boolean b) { if (editable == b) { return; } editable = b; TextComponentPeer peer = (TextComponentPeer)this.peer; if (peer != null) { peer.setEditable(b); } }
Example 10
Source File: TextComponent.java From jdk1.8-source-analysis with Apache License 2.0 | 3 votes |
/** * Sets the flag that determines whether or not this * text component is editable. * <p> * If the flag is set to <code>true</code>, this text component * becomes user editable. If the flag is set to <code>false</code>, * the user cannot change the text of this text component. * By default, non-editable text components have a background color * of SystemColor.control. This default can be overridden by * calling setBackground. * * @param b a flag indicating whether this text component * is user editable. * @see java.awt.TextComponent#isEditable * @since JDK1.0 */ public synchronized void setEditable(boolean b) { if (editable == b) { return; } editable = b; TextComponentPeer peer = (TextComponentPeer)this.peer; if (peer != null) { peer.setEditable(b); } }
Example 11
Source File: TextComponent.java From openjdk-jdk9 with GNU General Public License v2.0 | 3 votes |
/** * Sets the flag that determines whether or not this * text component is editable. * <p> * If the flag is set to {@code true}, this text component * becomes user editable. If the flag is set to {@code false}, * the user cannot change the text of this text component. * By default, non-editable text components have a background color * of SystemColor.control. This default can be overridden by * calling setBackground. * * @param b a flag indicating whether this text component * is user editable. * @see java.awt.TextComponent#isEditable * @since 1.0 */ public synchronized void setEditable(boolean b) { if (editable == b) { return; } editable = b; TextComponentPeer peer = (TextComponentPeer)this.peer; if (peer != null) { peer.setEditable(b); } }
Example 12
Source File: TextComponent.java From Bytecoder with Apache License 2.0 | 3 votes |
/** * Sets the flag that determines whether or not this * text component is editable. * <p> * If the flag is set to {@code true}, this text component * becomes user editable. If the flag is set to {@code false}, * the user cannot change the text of this text component. * By default, non-editable text components have a background color * of SystemColor.control. This default can be overridden by * calling setBackground. * * @param b a flag indicating whether this text component * is user editable. * @see java.awt.TextComponent#isEditable * @since 1.0 */ public synchronized void setEditable(boolean b) { if (editable == b) { return; } editable = b; TextComponentPeer peer = (TextComponentPeer)this.peer; if (peer != null) { peer.setEditable(b); } }
Example 13
Source File: TextComponent.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 3 votes |
/** * Sets the flag that determines whether or not this * text component is editable. * <p> * If the flag is set to <code>true</code>, this text component * becomes user editable. If the flag is set to <code>false</code>, * the user cannot change the text of this text component. * By default, non-editable text components have a background color * of SystemColor.control. This default can be overridden by * calling setBackground. * * @param b a flag indicating whether this text component * is user editable. * @see java.awt.TextComponent#isEditable * @since JDK1.0 */ public synchronized void setEditable(boolean b) { if (editable == b) { return; } editable = b; TextComponentPeer peer = (TextComponentPeer)this.peer; if (peer != null) { peer.setEditable(b); } }
Example 14
Source File: TextComponent.java From openjdk-jdk8u with GNU General Public License v2.0 | 3 votes |
/** * Sets the flag that determines whether or not this * text component is editable. * <p> * If the flag is set to <code>true</code>, this text component * becomes user editable. If the flag is set to <code>false</code>, * the user cannot change the text of this text component. * By default, non-editable text components have a background color * of SystemColor.control. This default can be overridden by * calling setBackground. * * @param b a flag indicating whether this text component * is user editable. * @see java.awt.TextComponent#isEditable * @since JDK1.0 */ public synchronized void setEditable(boolean b) { if (editable == b) { return; } editable = b; TextComponentPeer peer = (TextComponentPeer)this.peer; if (peer != null) { peer.setEditable(b); } }
Example 15
Source File: TextComponent.java From JDKSourceCode1.8 with MIT License | 3 votes |
/** * Sets the flag that determines whether or not this * text component is editable. * <p> * If the flag is set to <code>true</code>, this text component * becomes user editable. If the flag is set to <code>false</code>, * the user cannot change the text of this text component. * By default, non-editable text components have a background color * of SystemColor.control. This default can be overridden by * calling setBackground. * * @param b a flag indicating whether this text component * is user editable. * @see java.awt.TextComponent#isEditable * @since JDK1.0 */ public synchronized void setEditable(boolean b) { if (editable == b) { return; } editable = b; TextComponentPeer peer = (TextComponentPeer)this.peer; if (peer != null) { peer.setEditable(b); } }
Example 16
Source File: TextComponent.java From jdk8u60 with GNU General Public License v2.0 | 3 votes |
/** * Sets the flag that determines whether or not this * text component is editable. * <p> * If the flag is set to <code>true</code>, this text component * becomes user editable. If the flag is set to <code>false</code>, * the user cannot change the text of this text component. * By default, non-editable text components have a background color * of SystemColor.control. This default can be overridden by * calling setBackground. * * @param b a flag indicating whether this text component * is user editable. * @see java.awt.TextComponent#isEditable * @since JDK1.0 */ public synchronized void setEditable(boolean b) { if (editable == b) { return; } editable = b; TextComponentPeer peer = (TextComponentPeer)this.peer; if (peer != null) { peer.setEditable(b); } }
Example 17
Source File: TextComponent.java From TencentKona-8 with GNU General Public License v2.0 | 3 votes |
/** * Sets the flag that determines whether or not this * text component is editable. * <p> * If the flag is set to <code>true</code>, this text component * becomes user editable. If the flag is set to <code>false</code>, * the user cannot change the text of this text component. * By default, non-editable text components have a background color * of SystemColor.control. This default can be overridden by * calling setBackground. * * @param b a flag indicating whether this text component * is user editable. * @see java.awt.TextComponent#isEditable * @since JDK1.0 */ public synchronized void setEditable(boolean b) { if (editable == b) { return; } editable = b; TextComponentPeer peer = (TextComponentPeer)this.peer; if (peer != null) { peer.setEditable(b); } }
Example 18
Source File: TextComponent.java From dragonwell8_jdk with GNU General Public License v2.0 | 3 votes |
/** * Sets the flag that determines whether or not this * text component is editable. * <p> * If the flag is set to <code>true</code>, this text component * becomes user editable. If the flag is set to <code>false</code>, * the user cannot change the text of this text component. * By default, non-editable text components have a background color * of SystemColor.control. This default can be overridden by * calling setBackground. * * @param b a flag indicating whether this text component * is user editable. * @see java.awt.TextComponent#isEditable * @since JDK1.0 */ public synchronized void setEditable(boolean b) { if (editable == b) { return; } editable = b; TextComponentPeer peer = (TextComponentPeer)this.peer; if (peer != null) { peer.setEditable(b); } }