< prev index next >
src/java.desktop/share/classes/javax/swing/text/html/HiddenTagView.java
Print this page
*** 154,166 ****
/**
* This resets the text on the text component we created to match
* that of the AttributeSet for the Element we represent.
* <p>If this is invoked on the event dispatching thread, this
! * directly invokes <code>_setTextFromModel</code>, otherwise
! * <code>SwingUtilities.invokeLater</code> is used to schedule execution
! * of <code>_setTextFromModel</code>.
*/
void setTextFromModel() {
if (SwingUtilities.isEventDispatchThread()) {
_setTextFromModel();
}
--- 154,166 ----
/**
* This resets the text on the text component we created to match
* that of the AttributeSet for the Element we represent.
* <p>If this is invoked on the event dispatching thread, this
! * directly invokes {@code _setTextFromModel}, otherwise
! * {@code SwingUtilities.invokeLater} is used to schedule execution
! * of {@code _setTextFromModel}.
*/
void setTextFromModel() {
if (SwingUtilities.isEventDispatchThread()) {
_setTextFromModel();
}
*** 205,217 ****
/**
* This copies the text from the text component we've created
* to the Element's AttributeSet we represent.
* <p>If this is invoked on the event dispatching thread, this
! * directly invokes <code>_updateModelFromText</code>, otherwise
! * <code>SwingUtilities.invokeLater</code> is used to schedule execution
! * of <code>_updateModelFromText</code>.
*/
void updateModelFromText() {
if (!isSettingAttributes) {
if (SwingUtilities.isEventDispatchThread()) {
_updateModelFromText();
--- 205,217 ----
/**
* This copies the text from the text component we've created
* to the Element's AttributeSet we represent.
* <p>If this is invoked on the event dispatching thread, this
! * directly invokes {@code _updateModelFromText}, otherwise
! * {@code SwingUtilities.invokeLater} is used to schedule execution
! * of {@code _updateModelFromText}.
*/
void updateModelFromText() {
if (!isSettingAttributes) {
if (SwingUtilities.isEventDispatchThread()) {
_updateModelFromText();
< prev index next >