jdk/src/share/classes/javax/swing/text/html/FrameView.java
changeset 23697 e556a715949f
parent 5506 202f599c92aa
equal deleted inserted replaced
23696:7deff68428ef 23697:e556a715949f
     1 /*
     1 /*
     2  * Copyright (c) 1998, 2006, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   456     }
   456     }
   457 
   457 
   458     /** Editor pane rendering frame of HTML document
   458     /** Editor pane rendering frame of HTML document
   459      *  It uses the same editor kits classes as outermost JEditorPane
   459      *  It uses the same editor kits classes as outermost JEditorPane
   460      */
   460      */
       
   461     @SuppressWarnings("serial") // Superclass is not serializable across versions
   461     class FrameEditorPane extends JEditorPane implements FrameEditorPaneTag {
   462     class FrameEditorPane extends JEditorPane implements FrameEditorPaneTag {
   462         public EditorKit getEditorKitForContentType(String type) {
   463         public EditorKit getEditorKitForContentType(String type) {
   463             EditorKit editorKit = super.getEditorKitForContentType(type);
   464             EditorKit editorKit = super.getEditorKitForContentType(type);
   464             JEditorPane outerMostJEditorPane = null;
   465             JEditorPane outerMostJEditorPane = null;
   465             if ((outerMostJEditorPane = getOutermostJEditorPane()) != null) {
   466             if ((outerMostJEditorPane = getOutermostJEditorPane()) != null) {